Skip to content

Commit

Permalink
include: Remove unnecessary inclusions of asm/semaphore.h
Browse files Browse the repository at this point in the history
None of these files use any of the functionality promised by
asm/semaphore.h.  It's possible that they (or some user of them) rely
on it dragging in some unrelated header file, but I can't build all
these files, so we'll have to fix any build failures as they come up.

Signed-off-by: Matthew Wilcox <[email protected]>
  • Loading branch information
Matthew Wilcox authored and Matthew Wilcox committed Apr 19, 2008
1 parent cb68837 commit 5a6483f
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion include/asm-blackfin/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <linux/slab.h>
#include <asm/irq.h>
#include <asm/signal.h>
#include <asm/semaphore.h>

#include <linux/kernel.h>
#include <asm/mach/dma.h>
Expand Down
1 change: 0 additions & 1 deletion include/asm-ia64/sn/nodepda.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#define _ASM_IA64_SN_NODEPDA_H


#include <asm/semaphore.h>
#include <asm/irq.h>
#include <asm/sn/arch.h>
#include <asm/sn/intr.h>
Expand Down
1 change: 0 additions & 1 deletion include/asm-ppc/ocp.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

#include <asm/mmu.h>
#include <asm/ocp_ids.h>
#include <asm/semaphore.h>

#ifdef CONFIG_PPC_OCP

Expand Down
1 change: 0 additions & 1 deletion include/linux/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <linux/node.h>
#include <linux/compiler.h>
#include <linux/cpumask.h>
#include <asm/semaphore.h>
#include <linux/mutex.h>

struct cpu {
Expand Down
1 change: 0 additions & 1 deletion include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <asm/byteorder.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/semaphore.h>
#include <asm/mutex.h>

#if defined(CONFIG_CRIS) || defined(CONFIG_FRV)
Expand Down
1 change: 0 additions & 1 deletion include/linux/if_pppox.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <linux/if_ether.h>
#include <linux/if.h>
#include <linux/netdevice.h>
#include <asm/semaphore.h>
#include <linux/ppp_channel.h>
#endif /* __KERNEL__ */
#include <linux/if_pppol2tp.h>
Expand Down
2 changes: 0 additions & 2 deletions include/linux/jbd.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include <linux/timer.h>
#include <linux/lockdep.h>

#include <asm/semaphore.h>

#define journal_oom_retry 1

/*
Expand Down
2 changes: 0 additions & 2 deletions include/linux/jbd2.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#include <linux/bit_spinlock.h>
#include <linux/mutex.h>
#include <linux/timer.h>

#include <asm/semaphore.h>
#endif

#define journal_oom_retry 1
Expand Down
1 change: 0 additions & 1 deletion include/linux/kernelcapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ typedef struct kcapi_carddef {
#include <linux/list.h>
#include <linux/skbuff.h>
#include <linux/workqueue.h>
#include <asm/semaphore.h>

#define KCI_CONTRUP 0 /* arg: struct capi_profile */
#define KCI_CONTRDOWN 1 /* arg: NULL */
Expand Down
1 change: 0 additions & 1 deletion include/linux/raid/md.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define _MD_H

#include <linux/blkdev.h>
#include <asm/semaphore.h>
#include <linux/major.h>
#include <linux/ioctl.h>
#include <linux/types.h>
Expand Down
1 change: 0 additions & 1 deletion include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ struct sched_param {
#include <linux/mm_types.h>

#include <asm/system.h>
#include <asm/semaphore.h>
#include <asm/page.h>
#include <asm/ptrace.h>
#include <asm/cputime.h>
Expand Down
1 change: 0 additions & 1 deletion include/linux/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ struct getcpu_cache;
#include <linux/capability.h>
#include <linux/list.h>
#include <linux/sem.h>
#include <asm/semaphore.h>
#include <asm/siginfo.h>
#include <asm/signal.h>
#include <linux/quota.h>
Expand Down
1 change: 0 additions & 1 deletion include/scsi/libsas.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <scsi/sas.h>
#include <linux/libata.h>
#include <linux/list.h>
#include <asm/semaphore.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_transport_sas.h>
Expand Down

0 comments on commit 5a6483f

Please sign in to comment.