Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

uml: make three functions static

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>

authored by

WANG Cong and committed by
Linus Torvalds
1605ec04 02d324b1

+3 -3
+1 -1
arch/um/drivers/mcast_kern.c
··· 58 58 .write = mcast_write, 59 59 }; 60 60 61 - int mcast_setup(char *str, char **mac_out, void *data) 61 + static int mcast_setup(char *str, char **mac_out, void *data) 62 62 { 63 63 struct mcast_init *init = data; 64 64 char *port_str = NULL, *ttl_str = NULL, *remain;
+1 -1
arch/um/drivers/mconsole_user.c
··· 39 39 /* Initialized in mconsole_init, which is an initcall */ 40 40 char mconsole_socket_name[256]; 41 41 42 - int mconsole_reply_v0(struct mc_request *req, char *reply) 42 + static int mconsole_reply_v0(struct mc_request *req, char *reply) 43 43 { 44 44 struct iovec iov; 45 45 struct msghdr msg;
+1 -1
arch/um/drivers/port_user.c
··· 153 153 int pipe_fd; 154 154 }; 155 155 156 - void port_pre_exec(void *arg) 156 + static void port_pre_exec(void *arg) 157 157 { 158 158 struct port_pre_exec_data *data = arg; 159 159