Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch: Remove unnecessary inclusions of asm/semaphore.h

None of these files use any of the functionality promised by
asm/semaphore.h. It's possible that they rely on it dragging in some
unrelated header file, but I can't build all these files, so we'll have
fix any build failures as they come up.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>

authored by

Matthew Wilcox and committed by
Matthew Wilcox
950e4da3 3925e6fc

-29
-1
arch/arm/common/rtctime.c
··· 22 22 #include <linux/mutex.h> 23 23 24 24 #include <asm/rtc.h> 25 - #include <asm/semaphore.h> 26 25 27 26 static DECLARE_WAIT_QUEUE_HEAD(rtc_wait); 28 27 static struct fasync_struct *rtc_async_queue;
-2
arch/arm/mach-aaec2000/clock.c
··· 18 18 #include <linux/clk.h> 19 19 #include <linux/mutex.h> 20 20 21 - #include <asm/semaphore.h> 22 - 23 21 #include "clock.h" 24 22 25 23 static LIST_HEAD(clocks);
-1
arch/arm/mach-at91/clock.c
··· 23 23 #include <linux/delay.h> 24 24 #include <linux/clk.h> 25 25 26 - #include <asm/semaphore.h> 27 26 #include <asm/io.h> 28 27 #include <asm/mach-types.h> 29 28
-1
arch/arm/mach-integrator/clock.c
··· 17 17 #include <linux/clk.h> 18 18 #include <linux/mutex.h> 19 19 20 - #include <asm/semaphore.h> 21 20 #include <asm/hardware/icst525.h> 22 21 23 22 #include "clock.h"
-1
arch/arm/mach-pnx4008/clock.c
··· 21 21 #include <linux/err.h> 22 22 #include <linux/delay.h> 23 23 24 - #include <asm/semaphore.h> 25 24 #include <asm/hardware.h> 26 25 #include <asm/io.h> 27 26
-1
arch/arm/mach-pnx4008/gpio.c
··· 17 17 #include <linux/types.h> 18 18 #include <linux/kernel.h> 19 19 #include <linux/module.h> 20 - #include <asm/semaphore.h> 21 20 #include <asm/io.h> 22 21 #include <asm/arch/platform.h> 23 22 #include <asm/arch/gpio.h>
-1
arch/arm/mach-realview/clock.c
··· 16 16 #include <linux/clk.h> 17 17 #include <linux/mutex.h> 18 18 19 - #include <asm/semaphore.h> 20 19 #include <asm/hardware/icst307.h> 21 20 22 21 #include "clock.h"
-1
arch/arm/mach-versatile/clock.c
··· 17 17 #include <linux/clk.h> 18 18 #include <linux/mutex.h> 19 19 20 - #include <asm/semaphore.h> 21 20 #include <asm/hardware/icst307.h> 22 21 23 22 #include "clock.h"
-1
arch/arm/plat-omap/clock.c
··· 23 23 #include <linux/platform_device.h> 24 24 25 25 #include <asm/io.h> 26 - #include <asm/semaphore.h> 27 26 28 27 #include <asm/arch/clock.h> 29 28
-1
arch/ia64/sn/kernel/sn2/sn_hwperf.c
··· 37 37 38 38 #include <asm/processor.h> 39 39 #include <asm/topology.h> 40 - #include <asm/semaphore.h> 41 40 #include <asm/uaccess.h> 42 41 #include <asm/sal.h> 43 42 #include <asm/sn/io.h>
-1
arch/m68k/atari/stram.c
··· 29 29 #include <asm/atarihw.h> 30 30 #include <asm/atari_stram.h> 31 31 #include <asm/io.h> 32 - #include <asm/semaphore.h> 33 32 34 33 #undef DEBUG 35 34
-1
arch/m68k/sun3/intersil.c
··· 15 15 16 16 #include <asm/errno.h> 17 17 #include <asm/system.h> 18 - #include <asm/semaphore.h> 19 18 #include <asm/rtc.h> 20 19 #include <asm/intersil.h> 21 20
-1
arch/mips/sgi-ip27/ip27-console.c
··· 8 8 #include <linux/init.h> 9 9 10 10 #include <asm/page.h> 11 - #include <asm/semaphore.h> 12 11 #include <asm/sn/addrs.h> 13 12 #include <asm/sn/sn0/hub.h> 14 13 #include <asm/sn/klconfig.h>
-1
arch/parisc/kernel/sys_parisc32.c
··· 49 49 50 50 #include <asm/types.h> 51 51 #include <asm/uaccess.h> 52 - #include <asm/semaphore.h> 53 52 #include <asm/mmu_context.h> 54 53 55 54 #include "sys32.h"
-1
arch/powerpc/kernel/rtas.c
··· 26 26 #include <asm/prom.h> 27 27 #include <asm/rtas.h> 28 28 #include <asm/hvcall.h> 29 - #include <asm/semaphore.h> 30 29 #include <asm/machdep.h> 31 30 #include <asm/firmware.h> 32 31 #include <asm/page.h>
-1
arch/powerpc/kernel/sys_ppc32.c
··· 47 47 #include <asm/types.h> 48 48 #include <asm/uaccess.h> 49 49 #include <asm/unistd.h> 50 - #include <asm/semaphore.h> 51 50 #include <asm/time.h> 52 51 #include <asm/mmu_context.h> 53 52 #include <asm/ppc-pci.h>
-1
arch/powerpc/kernel/syscalls.c
··· 38 38 #include <linux/personality.h> 39 39 40 40 #include <asm/uaccess.h> 41 - #include <asm/semaphore.h> 42 41 #include <asm/syscalls.h> 43 42 #include <asm/time.h> 44 43 #include <asm/unistd.h>
-1
arch/powerpc/platforms/cell/spufs/file.c
··· 32 32 #include <linux/marker.h> 33 33 34 34 #include <asm/io.h> 35 - #include <asm/semaphore.h> 36 35 #include <asm/spu.h> 37 36 #include <asm/spu_info.h> 38 37 #include <asm/uaccess.h>
-1
arch/powerpc/platforms/cell/spufs/inode.c
··· 35 35 #include <linux/parser.h> 36 36 37 37 #include <asm/prom.h> 38 - #include <asm/semaphore.h> 39 38 #include <asm/spu.h> 40 39 #include <asm/spu_priv1.h> 41 40 #include <asm/uaccess.h>
-1
arch/powerpc/platforms/powermac/pfunc_core.c
··· 12 12 #include <linux/module.h> 13 13 #include <linux/mutex.h> 14 14 15 - #include <asm/semaphore.h> 16 15 #include <asm/prom.h> 17 16 #include <asm/pmac_pfunc.h> 18 17
-1
arch/ppc/syslib/ocp.c
··· 49 49 #include <asm/io.h> 50 50 #include <asm/ocp.h> 51 51 #include <asm/errno.h> 52 - #include <asm/semaphore.h> 53 52 54 53 //#define DBG(x) printk x 55 54 #define DBG(x)
-1
arch/s390/kernel/compat_linux.c
··· 62 62 63 63 #include <asm/types.h> 64 64 #include <asm/uaccess.h> 65 - #include <asm/semaphore.h> 66 65 67 66 #include <net/scm.h> 68 67 #include <net/sock.h>
-1
arch/s390/kernel/debug.c
··· 17 17 #include <linux/ctype.h> 18 18 #include <linux/sysctl.h> 19 19 #include <asm/uaccess.h> 20 - #include <asm/semaphore.h> 21 20 #include <linux/module.h> 22 21 #include <linux/init.h> 23 22 #include <linux/fs.h>
-1
arch/sparc64/kernel/sys_sparc32.c
··· 55 55 #include <asm/types.h> 56 56 #include <asm/uaccess.h> 57 57 #include <asm/fpumacro.h> 58 - #include <asm/semaphore.h> 59 58 #include <asm/mmu_context.h> 60 59 #include <asm/compat_signal.h> 61 60
-1
arch/v850/kernel/syscalls.c
··· 30 30 #include <linux/file.h> 31 31 32 32 #include <asm/uaccess.h> 33 - #include <asm/semaphore.h> 34 33 #include <asm/unistd.h> 35 34 36 35 /*
-1
arch/x86/ia32/sys_ia32.c
··· 43 43 #include <asm/mman.h> 44 44 #include <asm/types.h> 45 45 #include <asm/uaccess.h> 46 - #include <asm/semaphore.h> 47 46 #include <asm/atomic.h> 48 47 #include <asm/ia32.h> 49 48 #include <asm/vgtod.h>
-1
arch/x86/kernel/cpu/common.c
··· 5 5 #include <linux/module.h> 6 6 #include <linux/percpu.h> 7 7 #include <linux/bootmem.h> 8 - #include <asm/semaphore.h> 9 8 #include <asm/processor.h> 10 9 #include <asm/i387.h> 11 10 #include <asm/msr.h>
-1
arch/x86/kernel/cpu/proc.c
··· 1 1 #include <linux/smp.h> 2 2 #include <linux/timex.h> 3 3 #include <linux/string.h> 4 - #include <asm/semaphore.h> 5 4 #include <linux/seq_file.h> 6 5 #include <linux/cpufreq.h> 7 6