Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97a41e26 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

[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: default avatarAdrian Bunk <bunk@stusta.de>
Acked-by: default avatar"Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b7b4d7a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

+2 −0
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -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>