From 0a3021f4e249fbdb5f30d614707b5e02022e4c9b Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Sun, 15 Jul 2007 23:39:57 -0700 Subject: [PATCH] Remove unnecessary includes of spinlock.h under include/linux Remove the obviously unnecessary includes of under the include/linux/ directory, and fix the couple errors that are introduced as a result of that. Signed-off-by: Robert P. J. Day Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/attribute_container.h | 1 - include/linux/capability.h | 1 - include/linux/console.h | 1 - include/linux/ds17287rtc.h | 1 - include/linux/ipc.h | 1 + include/linux/leds.h | 1 - include/linux/module.h | 1 - include/linux/percpu.h | 2 +- include/linux/scx200_gpio.h | 2 -- include/linux/signal.h | 1 - include/linux/smp_lock.h | 1 - include/linux/timer.h | 1 - 12 files changed, 2 insertions(+), 12 deletions(-) diff --git a/include/linux/attribute_container.h b/include/linux/attribute_container.h index 93bfb0beb6..8ff2749339 100644 --- a/include/linux/attribute_container.h +++ b/include/linux/attribute_container.h @@ -12,7 +12,6 @@ #include #include #include -#include struct attribute_container { struct list_head node; diff --git a/include/linux/capability.h b/include/linux/capability.h index bbf8df7de2..2dfa585559 100644 --- a/include/linux/capability.h +++ b/include/linux/capability.h @@ -44,7 +44,6 @@ typedef struct __user_cap_data_struct { #ifdef __KERNEL__ -#include #include /* #define STRICT_CAP_T_TYPECHECKS */ diff --git a/include/linux/console.h b/include/linux/console.h index c44d3dfde7..56a7bcda49 100644 --- a/include/linux/console.h +++ b/include/linux/console.h @@ -15,7 +15,6 @@ #define _LINUX_CONSOLE_H_ 1 #include -#include struct vc_data; struct console_font_op; diff --git a/include/linux/ds17287rtc.h b/include/linux/ds17287rtc.h index c281ba42e2..d85d3f497b 100644 --- a/include/linux/ds17287rtc.h +++ b/include/linux/ds17287rtc.h @@ -11,7 +11,6 @@ #define __LINUX_DS17287RTC_H #include /* get the user-level API */ -#include /* spinlock_t */ #include /* Register A */ diff --git a/include/linux/ipc.h b/include/linux/ipc.h index 1980867a64..7c8c6d8d09 100644 --- a/include/linux/ipc.h +++ b/include/linux/ipc.h @@ -52,6 +52,7 @@ struct ipc_perm #ifdef __KERNEL__ #include +#include #define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */ diff --git a/include/linux/leds.h b/include/linux/leds.h index 88afceffb7..494bed7c2f 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -13,7 +13,6 @@ #define __LINUX_LEDS_H_INCLUDED #include -#include struct device; struct class_device; diff --git a/include/linux/module.h b/include/linux/module.h index e6e0f86ef5..b6a646cea1 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -6,7 +6,6 @@ * Rewritten by Richard Henderson Dec 1996 * Rewritten again by Rusty Russell, 2002 */ -#include #include #include #include diff --git a/include/linux/percpu.h b/include/linux/percpu.h index b72be2f79e..926adaae0f 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -1,7 +1,7 @@ #ifndef __LINUX_PERCPU_H #define __LINUX_PERCPU_H -#include /* For preempt_disable() */ +#include #include /* For kmalloc() */ #include #include /* For memset() */ diff --git a/include/linux/scx200_gpio.h b/include/linux/scx200_gpio.h index 1a82d30c4b..d2b058130e 100644 --- a/include/linux/scx200_gpio.h +++ b/include/linux/scx200_gpio.h @@ -1,5 +1,3 @@ -#include - u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear); extern unsigned scx200_gpio_base; diff --git a/include/linux/signal.h b/include/linux/signal.h index 9a5eac508e..ea91abe740 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h @@ -6,7 +6,6 @@ #ifdef __KERNEL__ #include -#include /* * Real Time signals may be queued. diff --git a/include/linux/smp_lock.h b/include/linux/smp_lock.h index cf715a40d8..58962c51de 100644 --- a/include/linux/smp_lock.h +++ b/include/linux/smp_lock.h @@ -3,7 +3,6 @@ #ifdef CONFIG_LOCK_KERNEL #include -#include #define kernel_locked() (current->lock_depth >= 0) diff --git a/include/linux/timer.h b/include/linux/timer.h index c661710d36..2b59e6d421 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h @@ -3,7 +3,6 @@ #include #include -#include #include struct tvec_t_base_s; -- 2.39.5