Skip to content

Commit

Permalink
[PATCH] kernel/: small cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jan 9, 2006
1 parent b7b4d7a commit 97a41e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static int audit_set_failure(int state, uid_t loginuid)
return old;
}

int kauditd_thread(void *dummy)
static int kauditd_thread(void *dummy)
{
struct sk_buff *skb;

Expand Down
2 changes: 2 additions & 0 deletions kernel/irq/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <linux/proc_fs.h>
#include <linux/interrupt.h>

#include "internals.h"

static struct proc_dir_entry *root_irq_dir, *irq_dir[NR_IRQS];

#ifdef CONFIG_SMP
Expand Down
2 changes: 1 addition & 1 deletion kernel/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ atomic_t n_rcu_torture_error;
/*
* Allocate an element from the rcu_tortures pool.
*/
struct rcu_torture *
static struct rcu_torture *
rcu_torture_alloc(void)
{
struct list_head *p;
Expand Down
1 change: 1 addition & 0 deletions kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/posix-timers.h>
#include <linux/cpu.h>
#include <linux/syscalls.h>
#include <linux/delay.h>

#include <asm/uaccess.h>
#include <asm/unistd.h>
Expand Down

0 comments on commit 97a41e2

Please sign in to comment.