Commit 97a41e26124330e41aa10ef88cd1711bc3d17460

Authored by Adrian Bunk
Committed by Linus Torvalds
1 parent b7b4d7a466

[PATCH] kernel/: small cleanups

This patch contains the following cleanups:
- make needlessly global functions static
- every file should include the headers containing the prototypes for
  it's global functions

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: "Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 4 changed files with 5 additions and 2 deletions Side-by-side Diff

... ... @@ -267,7 +267,7 @@
267 267 return old;
268 268 }
269 269  
270   -int kauditd_thread(void *dummy)
  270 +static int kauditd_thread(void *dummy)
271 271 {
272 272 struct sk_buff *skb;
273 273  
... ... @@ -10,6 +10,8 @@
10 10 #include <linux/proc_fs.h>
11 11 #include <linux/interrupt.h>
12 12  
  13 +#include "internals.h"
  14 +
13 15 static struct proc_dir_entry *root_irq_dir, *irq_dir[NR_IRQS];
14 16  
15 17 #ifdef CONFIG_SMP
... ... @@ -103,7 +103,7 @@
103 103 /*
104 104 * Allocate an element from the rcu_tortures pool.
105 105 */
106   -struct rcu_torture *
  106 +static struct rcu_torture *
107 107 rcu_torture_alloc(void)
108 108 {
109 109 struct list_head *p;
... ... @@ -33,6 +33,7 @@
33 33 #include <linux/posix-timers.h>
34 34 #include <linux/cpu.h>
35 35 #include <linux/syscalls.h>
  36 +#include <linux/delay.h>
36 37  
37 38 #include <asm/uaccess.h>
38 39 #include <asm/unistd.h>