提交 97a41e26 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

[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: NAdrian Bunk <bunk@stusta.de>
Acked-by: N"Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 b7b4d7a4
...@@ -267,7 +267,7 @@ static int audit_set_failure(int state, uid_t loginuid) ...@@ -267,7 +267,7 @@ static int audit_set_failure(int state, uid_t loginuid)
return old; return old;
} }
int kauditd_thread(void *dummy) static int kauditd_thread(void *dummy)
{ {
struct sk_buff *skb; struct sk_buff *skb;
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include "internals.h"
static struct proc_dir_entry *root_irq_dir, *irq_dir[NR_IRQS]; static struct proc_dir_entry *root_irq_dir, *irq_dir[NR_IRQS];
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
......
...@@ -103,7 +103,7 @@ atomic_t n_rcu_torture_error; ...@@ -103,7 +103,7 @@ atomic_t n_rcu_torture_error;
/* /*
* Allocate an element from the rcu_tortures pool. * Allocate an element from the rcu_tortures pool.
*/ */
struct rcu_torture * static struct rcu_torture *
rcu_torture_alloc(void) rcu_torture_alloc(void)
{ {
struct list_head *p; struct list_head *p;
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <linux/posix-timers.h> #include <linux/posix-timers.h>
#include <linux/cpu.h> #include <linux/cpu.h>
#include <linux/syscalls.h> #include <linux/syscalls.h>
#include <linux/delay.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/unistd.h> #include <asm/unistd.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册