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

uml: make several things static

Make several things static, because they no longer need to be global.

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
074a0db8 1605ec04

+7 -7
+3 -3
arch/um/drivers/net_kern.c
··· 116 116 dev_close(lp->dev); 117 117 } 118 118 119 - irqreturn_t uml_net_interrupt(int irq, void *dev_id) 119 + static irqreturn_t uml_net_interrupt(int irq, void *dev_id) 120 120 { 121 121 struct net_device *dev = dev_id; 122 122 struct uml_net_private *lp = dev->priv; ··· 296 296 .get_link = ethtool_op_get_link, 297 297 }; 298 298 299 - void uml_net_user_timer_expire(unsigned long _conn) 299 + static void uml_net_user_timer_expire(unsigned long _conn) 300 300 { 301 301 #ifdef undef 302 302 struct connection *conn = (struct connection *)_conn; ··· 786 786 } 787 787 788 788 /* uml_net_init shouldn't be called twice on two CPUs at the same time */ 789 - struct notifier_block uml_inetaddr_notifier = { 789 + static struct notifier_block uml_inetaddr_notifier = { 790 790 .notifier_call = uml_inetaddr_event, 791 791 }; 792 792
+2 -2
arch/um/drivers/slip_kern.c
··· 13 13 char *gate_addr; 14 14 }; 15 15 16 - void slip_init(struct net_device *dev, void *data) 16 + static void slip_init(struct net_device *dev, void *data) 17 17 { 18 18 struct uml_net_private *private; 19 19 struct slip_data *spri; ··· 57 57 (struct slip_data *) &lp->user); 58 58 } 59 59 60 - const struct net_kern_info slip_kern_info = { 60 + static const struct net_kern_info slip_kern_info = { 61 61 .init = slip_init, 62 62 .protocol = slip_protocol, 63 63 .read = slip_read,
+2 -2
arch/um/drivers/stdio_console.c
··· 34 34 35 35 static struct tty_driver *console_driver; 36 36 37 - void stdio_announce(char *dev_name, int dev) 37 + static void stdio_announce(char *dev_name, int dev) 38 38 { 39 39 printk(KERN_INFO "Virtual console %d assigned device '%s'\n", dev, 40 40 dev_name); ··· 158 158 .index = -1, 159 159 }; 160 160 161 - int stdio_init(void) 161 + static int stdio_init(void) 162 162 { 163 163 char *new_title; 164 164