aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-05-08 03:28:08 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-08 14:15:07 -0400
commite63340ae6b6205fef26b40a75673d1c9c0c8bb90 (patch)
tree8d3212705515edec73c3936bb9e23c71d34a7b41 /security
parent04c9167f91e309c9c4ea982992aa08e83b2eb42e (diff)
header cleaning: don't include smp_lock.h when not used
Remove includes of <linux/smp_lock.h> where it is not used/needed. Suggested by Al Viro. Builds cleanly on x86_64, i386, alpha, ia64, powerpc, sparc, sparc64, and arm (all 59 defconfigs). Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security')
-rw-r--r--security/capability.c1
-rw-r--r--security/commoncap.c1
-rw-r--r--security/selinux/hooks.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/security/capability.c b/security/capability.c
index b868e7eda5f0..38296a005465 100644
--- a/security/capability.c
+++ b/security/capability.c
@@ -17,7 +17,6 @@
17#include <linux/mman.h> 17#include <linux/mman.h>
18#include <linux/pagemap.h> 18#include <linux/pagemap.h>
19#include <linux/swap.h> 19#include <linux/swap.h>
20#include <linux/smp_lock.h>
21#include <linux/skbuff.h> 20#include <linux/skbuff.h>
22#include <linux/netlink.h> 21#include <linux/netlink.h>
23#include <linux/ptrace.h> 22#include <linux/ptrace.h>
diff --git a/security/commoncap.c b/security/commoncap.c
index 5a5ef5ca7ea9..384379ede4fd 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -17,7 +17,6 @@
17#include <linux/mman.h> 17#include <linux/mman.h>
18#include <linux/pagemap.h> 18#include <linux/pagemap.h>
19#include <linux/swap.h> 19#include <linux/swap.h>
20#include <linux/smp_lock.h>
21#include <linux/skbuff.h> 20#include <linux/skbuff.h>
22#include <linux/netlink.h> 21#include <linux/netlink.h>
23#include <linux/ptrace.h> 22#include <linux/ptrace.h>
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index fa9dbb6b110d..ad8dd4e8657e 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -35,7 +35,6 @@
35#include <linux/slab.h> 35#include <linux/slab.h>
36#include <linux/pagemap.h> 36#include <linux/pagemap.h>
37#include <linux/swap.h> 37#include <linux/swap.h>
38#include <linux/smp_lock.h>
39#include <linux/spinlock.h> 38#include <linux/spinlock.h>
40#include <linux/syscalls.h> 39#include <linux/syscalls.h>
41#include <linux/file.h> 40#include <linux/file.h>