Skip to content

Commit

Permalink
Remove unnecessary includes of spinlock.h under include/linux
Browse files Browse the repository at this point in the history
Remove the obviously unnecessary includes of <linux/spinlock.h> 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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed Jul 16, 2007
1 parent 9aacd59 commit 0a3021f
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 12 deletions.
1 change: 0 additions & 1 deletion include/linux/attribute_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <linux/device.h>
#include <linux/list.h>
#include <linux/klist.h>
#include <linux/spinlock.h>

struct attribute_container {
struct list_head node;
Expand Down
1 change: 0 additions & 1 deletion include/linux/capability.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ typedef struct __user_cap_data_struct {

#ifdef __KERNEL__

#include <linux/spinlock.h>
#include <asm/current.h>

/* #define STRICT_CAP_T_TYPECHECKS */
Expand Down
1 change: 0 additions & 1 deletion include/linux/console.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define _LINUX_CONSOLE_H_ 1

#include <linux/types.h>
#include <linux/spinlock.h>

struct vc_data;
struct console_font_op;
Expand Down
1 change: 0 additions & 1 deletion include/linux/ds17287rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#define __LINUX_DS17287RTC_H

#include <linux/rtc.h> /* get the user-level API */
#include <linux/spinlock.h> /* spinlock_t */
#include <linux/mc146818rtc.h>

/* Register A */
Expand Down
1 change: 1 addition & 0 deletions include/linux/ipc.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ struct ipc_perm
#ifdef __KERNEL__

#include <linux/kref.h>
#include <linux/spinlock.h>

#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */

Expand Down
1 change: 0 additions & 1 deletion include/linux/leds.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#define __LINUX_LEDS_H_INCLUDED

#include <linux/list.h>
#include <linux/spinlock.h>

struct device;
struct class_device;
Expand Down
1 change: 0 additions & 1 deletion include/linux/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* Rewritten by Richard Henderson <[email protected]> Dec 1996
* Rewritten again by Rusty Russell, 2002
*/
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/stat.h>
#include <linux/compiler.h>
Expand Down
2 changes: 1 addition & 1 deletion include/linux/percpu.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __LINUX_PERCPU_H
#define __LINUX_PERCPU_H

#include <linux/spinlock.h> /* For preempt_disable() */
#include <linux/preempt.h>
#include <linux/slab.h> /* For kmalloc() */
#include <linux/smp.h>
#include <linux/string.h> /* For memset() */
Expand Down
2 changes: 0 additions & 2 deletions include/linux/scx200_gpio.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include <linux/spinlock.h>

u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear);

extern unsigned scx200_gpio_base;
Expand Down
1 change: 0 additions & 1 deletion include/linux/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#ifdef __KERNEL__
#include <linux/list.h>
#include <linux/spinlock.h>

/*
* Real Time signals may be queued.
Expand Down
1 change: 0 additions & 1 deletion include/linux/smp_lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#ifdef CONFIG_LOCK_KERNEL
#include <linux/sched.h>
#include <linux/spinlock.h>

#define kernel_locked() (current->lock_depth >= 0)

Expand Down
1 change: 0 additions & 1 deletion include/linux/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <linux/list.h>
#include <linux/ktime.h>
#include <linux/spinlock.h>
#include <linux/stddef.h>

struct tvec_t_base_s;
Expand Down

0 comments on commit 0a3021f

Please sign in to comment.