From 1977f032722c27ee3730284582fd3991ad9ac81b Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Thu, 18 Oct 2007 23:40:25 -0700 Subject: [PATCH] remove asm/bitops.h includes remove asm/bitops.h includes including asm/bitops directly may cause compile errors. don't include it and include linux/bitops instead. next patch will deny including asm header directly. Cc: Adrian Bunk Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/alpha/lib/fls.c | 2 +- arch/frv/kernel/irq-mb93091.c | 2 +- arch/frv/kernel/irq-mb93093.c | 2 +- arch/frv/kernel/irq-mb93493.c | 2 +- arch/frv/kernel/irq.c | 2 +- arch/mips/au1000/pb1200/irqmap.c | 2 +- arch/mips/basler/excite/excite_irq.c | 2 +- arch/mips/tx4938/common/setup.c | 2 +- arch/powerpc/platforms/maple/setup.c | 2 +- drivers/char/esp.c | 2 +- drivers/char/mxser.c | 2 +- drivers/char/mxser_new.c | 2 +- drivers/ide/ide-io.c | 2 +- drivers/media/dvb/ttpci/av7110_ir.c | 2 +- drivers/net/bnx2.c | 2 +- drivers/net/cris/eth_v10.c | 2 +- drivers/net/cxgb3/adapter.h | 2 +- drivers/net/hamradio/dmascc.c | 2 +- drivers/net/mac89x0.c | 2 +- drivers/net/spider_net.c | 2 +- drivers/net/tulip/uli526x.c | 2 +- drivers/net/wireless/bcm43xx/bcm43xx_leds.c | 2 +- drivers/pcmcia/m32r_pcc.c | 2 +- drivers/pcmcia/m8xx_pcmcia.c | 2 +- drivers/ps3/vuart.c | 2 +- drivers/rtc/rtc-pl031.c | 2 +- drivers/rtc/rtc-sa1100.c | 2 +- drivers/s390/cio/idset.c | 2 +- drivers/s390/net/claw.c | 2 +- drivers/scsi/ide-scsi.c | 2 +- drivers/serial/crisv10.c | 2 +- drivers/watchdog/at91rm9200_wdt.c | 2 +- drivers/watchdog/ks8695_wdt.c | 2 +- drivers/watchdog/omap_wdt.c | 2 +- drivers/watchdog/sa1100_wdt.c | 2 +- include/asm-cris/posix_types.h | 2 +- include/asm-ia64/cacheflush.h | 2 +- include/asm-ia64/pgtable.h | 2 +- include/asm-ia64/smp.h | 2 +- include/asm-ia64/spinlock.h | 2 +- include/asm-m32r/pgtable.h | 2 +- include/asm-mips/fpu.h | 2 +- include/asm-parisc/pgtable.h | 2 +- include/asm-powerpc/iommu.h | 2 +- include/asm-powerpc/mmu_context.h | 2 +- include/asm-ppc/mmu_context.h | 3 ++- include/asm-sparc64/smp.h | 2 +- include/asm-x86/pgtable_32.h | 5 +---- include/asm-x86/pgtable_64.h | 2 +- include/asm-x86/smp_32.h | 2 +- include/asm-x86/topology_64.h | 2 +- include/linux/of.h | 2 +- lib/hweight.c | 2 +- net/core/gen_estimator.c | 2 +- net/core/pktgen.c | 2 +- net/ipv4/fib_trie.c | 2 +- net/netfilter/xt_connbytes.c | 2 +- 57 files changed, 58 insertions(+), 60 deletions(-) diff --git a/arch/alpha/lib/fls.c b/arch/alpha/lib/fls.c index 7ad84ea0ac..32afaa3fa6 100644 --- a/arch/alpha/lib/fls.c +++ b/arch/alpha/lib/fls.c @@ -3,7 +3,7 @@ */ #include -#include +#include /* This is fls(x)-1, except zero is held to zero. This allows most efficent input into extbl, plus it allows easy handling of fls(0)=0. */ diff --git a/arch/frv/kernel/irq-mb93091.c b/arch/frv/kernel/irq-mb93091.c index ad753c1e9b..9e38f99bba 100644 --- a/arch/frv/kernel/irq-mb93091.c +++ b/arch/frv/kernel/irq-mb93091.c @@ -17,10 +17,10 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/arch/frv/kernel/irq-mb93093.c b/arch/frv/kernel/irq-mb93093.c index e0983f6926..3c2752ca97 100644 --- a/arch/frv/kernel/irq-mb93093.c +++ b/arch/frv/kernel/irq-mb93093.c @@ -17,10 +17,10 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/arch/frv/kernel/irq-mb93493.c b/arch/frv/kernel/irq-mb93493.c index c157eeff87..7754c7338e 100644 --- a/arch/frv/kernel/irq-mb93493.c +++ b/arch/frv/kernel/irq-mb93493.c @@ -17,10 +17,10 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/arch/frv/kernel/irq.c b/arch/frv/kernel/irq.c index c7e59dcade..7ddb69089e 100644 --- a/arch/frv/kernel/irq.c +++ b/arch/frv/kernel/irq.c @@ -24,12 +24,12 @@ #include #include #include +#include #include #include #include #include -#include #include #include #include diff --git a/arch/mips/au1000/pb1200/irqmap.c b/arch/mips/au1000/pb1200/irqmap.c index 5f48b06037..bdf00e2a35 100644 --- a/arch/mips/au1000/pb1200/irqmap.c +++ b/arch/mips/au1000/pb1200/irqmap.c @@ -36,8 +36,8 @@ #include #include #include +#include -#include #include #include #include diff --git a/arch/mips/basler/excite/excite_irq.c b/arch/mips/basler/excite/excite_irq.c index 1ecab63504..4903e06791 100644 --- a/arch/mips/basler/excite/excite_irq.c +++ b/arch/mips/basler/excite/excite_irq.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/mips/tx4938/common/setup.c b/arch/mips/tx4938/common/setup.c index ab40822675..04f009ccb0 100644 --- a/arch/mips/tx4938/common/setup.c +++ b/arch/mips/tx4938/common/setup.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/powerpc/platforms/maple/setup.c b/arch/powerpc/platforms/maple/setup.c index 354c058616..144177d77c 100644 --- a/arch/powerpc/platforms/maple/setup.c +++ b/arch/powerpc/platforms/maple/setup.c @@ -41,13 +41,13 @@ #include #include #include +#include #include #include #include #include #include -#include #include #include #include diff --git a/drivers/char/esp.c b/drivers/char/esp.c index 2e7ae42a55..0f8fb135da 100644 --- a/drivers/char/esp.c +++ b/drivers/char/esp.c @@ -58,10 +58,10 @@ #include #include #include +#include #include #include -#include #include #include diff --git a/drivers/char/mxser.c b/drivers/char/mxser.c index 661aca0e15..fd0abef7ee 100644 --- a/drivers/char/mxser.c +++ b/drivers/char/mxser.c @@ -56,11 +56,11 @@ #include #include #include +#include #include #include #include -#include #include #include "mxser.h" diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index 854dbf59eb..081c84c7b5 100644 --- a/drivers/char/mxser_new.c +++ b/drivers/char/mxser_new.c @@ -39,11 +39,11 @@ #include #include #include +#include #include #include #include -#include #include #include "mxser_new.h" diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 5c8b008676..32eaa3f805 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -47,12 +47,12 @@ #include #include #include +#include #include #include #include #include -#include static int __ide_end_request(ide_drive_t *drive, struct request *rq, int uptodate, unsigned int nr_bytes) diff --git a/drivers/media/dvb/ttpci/av7110_ir.c b/drivers/media/dvb/ttpci/av7110_ir.c index 5d19c402da..a283e1de83 100644 --- a/drivers/media/dvb/ttpci/av7110_ir.c +++ b/drivers/media/dvb/ttpci/av7110_ir.c @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include "av7110.h" #include "av7110_hw.h" diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 96cee4badd..da767d3d5a 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c index 314b2f68f7..edd6828f0a 100644 --- a/drivers/net/cris/eth_v10.c +++ b/drivers/net/cris/eth_v10.c @@ -234,6 +234,7 @@ #include #include #include +#include #include #include @@ -247,7 +248,6 @@ #include #include #include -#include #include #include diff --git a/drivers/net/cxgb3/adapter.h b/drivers/net/cxgb3/adapter.h index 0442617033..2a3df14585 100644 --- a/drivers/net/cxgb3/adapter.h +++ b/drivers/net/cxgb3/adapter.h @@ -41,9 +41,9 @@ #include #include #include +#include #include "t3cdev.h" #include -#include #include typedef irqreturn_t(*intr_handler_t) (int, void *); diff --git a/drivers/net/hamradio/dmascc.c b/drivers/net/hamradio/dmascc.c index bc02e46948..11b83dae00 100644 --- a/drivers/net/hamradio/dmascc.c +++ b/drivers/net/hamradio/dmascc.c @@ -21,6 +21,7 @@ #include +#include #include #include #include @@ -35,7 +36,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/mac89x0.c b/drivers/net/mac89x0.c index 30854f0949..a19b5958ce 100644 --- a/drivers/net/mac89x0.c +++ b/drivers/net/mac89x0.c @@ -99,9 +99,9 @@ static char *version = #include #include #include +#include #include -#include #include #include #include diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index fab055ffcc..571060a3c9 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c @@ -46,7 +46,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index 76e5561243..a7afeea156 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c @@ -34,9 +34,9 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_leds.c b/drivers/net/wireless/bcm43xx/bcm43xx_leds.c index 8f198befba..cb51dc51cc 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_leds.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_leds.c @@ -29,7 +29,7 @@ #include "bcm43xx_radio.h" #include "bcm43xx.h" -#include +#include static void bcm43xx_led_changestate(struct bcm43xx_led *led) diff --git a/drivers/pcmcia/m32r_pcc.c b/drivers/pcmcia/m32r_pcc.c index 67d28ee80f..c5e0d89c3e 100644 --- a/drivers/pcmcia/m32r_pcc.c +++ b/drivers/pcmcia/m32r_pcc.c @@ -22,9 +22,9 @@ #include #include #include +#include #include #include -#include #include #include diff --git a/drivers/pcmcia/m8xx_pcmcia.c b/drivers/pcmcia/m8xx_pcmcia.c index b019854984..d182760f03 100644 --- a/drivers/pcmcia/m8xx_pcmcia.c +++ b/drivers/pcmcia/m8xx_pcmcia.c @@ -48,9 +48,9 @@ #include #include #include +#include #include -#include #include #include #include diff --git a/drivers/ps3/vuart.c b/drivers/ps3/vuart.c index bea25a1391..9dea585ef8 100644 --- a/drivers/ps3/vuart.c +++ b/drivers/ps3/vuart.c @@ -22,11 +22,11 @@ #include #include #include +#include #include #include #include -#include #include "vuart.h" diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index e4bf68ca96..2fd49edcc7 100644 --- a/drivers/rtc/rtc-pl031.c +++ b/drivers/rtc/rtc-pl031.c @@ -21,11 +21,11 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c index 0918b787c4..6f1e9a9804 100644 --- a/drivers/rtc/rtc-sa1100.c +++ b/drivers/rtc/rtc-sa1100.c @@ -29,8 +29,8 @@ #include #include #include +#include -#include #include #include #include diff --git a/drivers/s390/cio/idset.c b/drivers/s390/cio/idset.c index 16ea828e99..ef7bc0a125 100644 --- a/drivers/s390/cio/idset.c +++ b/drivers/s390/cio/idset.c @@ -6,7 +6,7 @@ */ #include -#include +#include #include "idset.h" #include "css.h" diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c index 399695f7b1..3561982749 100644 --- a/drivers/s390/net/claw.c +++ b/drivers/s390/net/claw.c @@ -59,13 +59,13 @@ * 1.15 Changed for 2.6 Kernel No longer compiles on 2.4 or lower * 1.25 Added Packing support */ -#include #include #include #include #include #include +#include #include #include #include diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index fa7ba64483..252d180646 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c @@ -47,9 +47,9 @@ #include #include #include +#include #include -#include #include #include diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c index 7e8724d357..f523cdf4b0 100644 --- a/drivers/serial/crisv10.c +++ b/drivers/serial/crisv10.c @@ -442,11 +442,11 @@ static char *serial_version = "$Revision: 1.25 $"; #include #include #include +#include #include #include #include -#include #include #include diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c index 38bd373725..a684b1e873 100644 --- a/drivers/watchdog/at91rm9200_wdt.c +++ b/drivers/watchdog/at91rm9200_wdt.c @@ -9,6 +9,7 @@ * 2 of the License, or (at your option) any later version. */ +#include #include #include #include @@ -19,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/drivers/watchdog/ks8695_wdt.c b/drivers/watchdog/ks8695_wdt.c index 7150fb945e..e3a29c3023 100644 --- a/drivers/watchdog/ks8695_wdt.c +++ b/drivers/watchdog/ks8695_wdt.c @@ -8,6 +8,7 @@ * published by the Free Software Foundation. */ +#include #include #include #include @@ -18,7 +19,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 719b066f73..635ca454f5 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -39,11 +39,11 @@ #include #include #include +#include #include #include #include -#include #include diff --git a/drivers/watchdog/sa1100_wdt.c b/drivers/watchdog/sa1100_wdt.c index 3475f47aaa..34a2b3b818 100644 --- a/drivers/watchdog/sa1100_wdt.c +++ b/drivers/watchdog/sa1100_wdt.c @@ -25,13 +25,13 @@ #include #include #include +#include #ifdef CONFIG_ARCH_PXA #include #endif #include -#include #include #define OSCR_FREQ CLOCK_TICK_RATE diff --git a/include/asm-cris/posix_types.h b/include/asm-cris/posix_types.h index 7b9ed22ab5..92000d0c3f 100644 --- a/include/asm-cris/posix_types.h +++ b/include/asm-cris/posix_types.h @@ -52,7 +52,7 @@ typedef struct { } __kernel_fsid_t; #ifdef __KERNEL__ -#include +#include #undef __FD_SET #define __FD_SET(fd,fdsetp) set_bit(fd, (void *)(fdsetp)) diff --git a/include/asm-ia64/cacheflush.h b/include/asm-ia64/cacheflush.h index 4906916d71..afcfbda76e 100644 --- a/include/asm-ia64/cacheflush.h +++ b/include/asm-ia64/cacheflush.h @@ -7,8 +7,8 @@ */ #include +#include -#include #include /* diff --git a/include/asm-ia64/pgtable.h b/include/asm-ia64/pgtable.h index 0971ec9080..e6204f14f6 100644 --- a/include/asm-ia64/pgtable.h +++ b/include/asm-ia64/pgtable.h @@ -150,7 +150,7 @@ # ifndef __ASSEMBLY__ #include /* for mm_struct */ -#include +#include #include #include #include diff --git a/include/asm-ia64/smp.h b/include/asm-ia64/smp.h index 1703c9d885..471cc2ee9a 100644 --- a/include/asm-ia64/smp.h +++ b/include/asm-ia64/smp.h @@ -14,8 +14,8 @@ #include #include #include +#include -#include #include #include #include diff --git a/include/asm-ia64/spinlock.h b/include/asm-ia64/spinlock.h index ff857e3173..0229fb95fb 100644 --- a/include/asm-ia64/spinlock.h +++ b/include/asm-ia64/spinlock.h @@ -11,9 +11,9 @@ #include #include +#include #include -#include #include #include diff --git a/include/asm-m32r/pgtable.h b/include/asm-m32r/pgtable.h index 92d7266783..86505387be 100644 --- a/include/asm-m32r/pgtable.h +++ b/include/asm-m32r/pgtable.h @@ -21,9 +21,9 @@ #ifndef __ASSEMBLY__ #include +#include #include #include -#include #include struct mm_struct; diff --git a/include/asm-mips/fpu.h b/include/asm-mips/fpu.h index 483685b159..e59d4c0396 100644 --- a/include/asm-mips/fpu.h +++ b/include/asm-mips/fpu.h @@ -12,12 +12,12 @@ #include #include +#include #include #include #include #include -#include #include #include diff --git a/include/asm-parisc/pgtable.h b/include/asm-parisc/pgtable.h index e88cacd637..9ab79c8e5a 100644 --- a/include/asm-parisc/pgtable.h +++ b/include/asm-parisc/pgtable.h @@ -11,9 +11,9 @@ */ #include /* for vm_area_struct */ +#include #include #include -#include /* * kern_addr_valid(ADDR) tests if ADDR is pointing to valid kernel diff --git a/include/asm-powerpc/iommu.h b/include/asm-powerpc/iommu.h index 870967e472..4a82fdccee 100644 --- a/include/asm-powerpc/iommu.h +++ b/include/asm-powerpc/iommu.h @@ -26,9 +26,9 @@ #include #include #include +#include #include #include -#include #define IOMMU_PAGE_SHIFT 12 #define IOMMU_PAGE_SIZE (ASM_CONST(1) << IOMMU_PAGE_SHIFT) diff --git a/include/asm-powerpc/mmu_context.h b/include/asm-powerpc/mmu_context.h index f863ac2140..9102b8bf0e 100644 --- a/include/asm-powerpc/mmu_context.h +++ b/include/asm-powerpc/mmu_context.h @@ -8,7 +8,7 @@ #ifndef CONFIG_PPC64 #include -#include +#include /* * On 32-bit PowerPC 6xx/7xx/7xxx CPUs, we use a set of 16 VSIDs diff --git a/include/asm-ppc/mmu_context.h b/include/asm-ppc/mmu_context.h index a6441a063e..b2e25d8997 100644 --- a/include/asm-ppc/mmu_context.h +++ b/include/asm-ppc/mmu_context.h @@ -2,8 +2,9 @@ #ifndef __PPC_MMU_CONTEXT_H #define __PPC_MMU_CONTEXT_H +#include + #include -#include #include #include #include diff --git a/include/asm-sparc64/smp.h b/include/asm-sparc64/smp.h index 42c0994952..1c1c5ea5ce 100644 --- a/include/asm-sparc64/smp.h +++ b/include/asm-sparc64/smp.h @@ -26,7 +26,7 @@ * Private routines/data */ -#include +#include #include #include diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h index acd4b339c4..ed3e70d8d0 100644 --- a/include/asm-x86/pgtable_32.h +++ b/include/asm-x86/pgtable_32.h @@ -17,10 +17,7 @@ #include #include -#ifndef _I386_BITOPS_H -#include -#endif - +#include #include #include #include diff --git a/include/asm-x86/pgtable_64.h b/include/asm-x86/pgtable_64.h index a79f5355e3..9b0ff477b3 100644 --- a/include/asm-x86/pgtable_64.h +++ b/include/asm-x86/pgtable_64.h @@ -9,7 +9,7 @@ * the x86-64 page table tree. */ #include -#include +#include #include #include diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h index ee46038d12..1f576a9336 100644 --- a/include/asm-x86/smp_32.h +++ b/include/asm-x86/smp_32.h @@ -11,7 +11,7 @@ #endif #if defined(CONFIG_X86_LOCAL_APIC) && !defined(__ASSEMBLY__) -#include +#include #include #include #ifdef CONFIG_X86_IO_APIC diff --git a/include/asm-x86/topology_64.h b/include/asm-x86/topology_64.h index 848c17f922..c0c93d7446 100644 --- a/include/asm-x86/topology_64.h +++ b/include/asm-x86/topology_64.h @@ -5,7 +5,7 @@ #ifdef CONFIG_NUMA #include -#include +#include extern cpumask_t cpu_online_map; diff --git a/include/linux/of.h b/include/linux/of.h index 6df80e9859..5c39b9270f 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -16,8 +16,8 @@ * 2 of the License, or (at your option) any later version. */ #include +#include -#include #include /* flag descriptions */ diff --git a/lib/hweight.c b/lib/hweight.c index 360556a780..389424ecb1 100644 --- a/lib/hweight.c +++ b/lib/hweight.c @@ -1,6 +1,6 @@ #include +#include #include -#include /** * hweightN - returns the hamming weight of a N-bit word diff --git a/net/core/gen_estimator.c b/net/core/gen_estimator.c index 590a767b02..daadbcc4e8 100644 --- a/net/core/gen_estimator.c +++ b/net/core/gen_estimator.c @@ -15,7 +15,7 @@ #include #include -#include +#include #include #include #include diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 8cae60c533..9d6e6f1883 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -161,7 +161,7 @@ #endif #include #include -#include +#include #include #include #include diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 81a8285d6d..8d8c2915e0 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -54,7 +54,7 @@ #include #include -#include +#include #include #include #include diff --git a/net/netfilter/xt_connbytes.c b/net/netfilter/xt_connbytes.c index af79423bc8..9ec50139b9 100644 --- a/net/netfilter/xt_connbytes.c +++ b/net/netfilter/xt_connbytes.c @@ -2,13 +2,13 @@ * GPL (C) 2002 Martin Devera (devik@cdi.cz). */ #include +#include #include #include #include #include #include -#include MODULE_LICENSE("GPL"); MODULE_AUTHOR("Harald Welte "); -- 2.39.5