Skip to content

Commit

Permalink
uml: make three functions static
Browse files Browse the repository at this point in the history
Make the following three functions static, since they don't need to be global.

arch/um/drivers/mcast_kern.c::mcast_setup()
arch/um/drivers/mconsole_user.c::mconsole_reply_v0()
arch/um/drivers/port_user.c::port_pre_exec()

Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: WANG Cong <wangcong@zeuux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
WANG Cong authored and Linus Torvalds committed Apr 28, 2008
1 parent 02d324b commit 1605ec0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/um/drivers/mcast_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static const struct net_kern_info mcast_kern_info = {
.write = mcast_write,
};

int mcast_setup(char *str, char **mac_out, void *data)
static int mcast_setup(char *str, char **mac_out, void *data)
{
struct mcast_init *init = data;
char *port_str = NULL, *ttl_str = NULL, *remain;
Expand Down
2 changes: 1 addition & 1 deletion arch/um/drivers/mconsole_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static struct mconsole_command commands[] = {
/* Initialized in mconsole_init, which is an initcall */
char mconsole_socket_name[256];

int mconsole_reply_v0(struct mc_request *req, char *reply)
static int mconsole_reply_v0(struct mc_request *req, char *reply)
{
struct iovec iov;
struct msghdr msg;
Expand Down
2 changes: 1 addition & 1 deletion arch/um/drivers/port_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ struct port_pre_exec_data {
int pipe_fd;
};

void port_pre_exec(void *arg)
static void port_pre_exec(void *arg)
{
struct port_pre_exec_data *data = arg;

Expand Down

0 comments on commit 1605ec0

Please sign in to comment.