summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Cole <elenstev@mesatop.com>2003-05-12 05:56:54 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-05-12 05:56:54 -0700
commit1bdbda8c33e76c91d2f19e7c8c11f4df1b28d9cc (patch)
treee41c7eccdd6cb28e73e1533724ef79c510d9a1f2
parent3f26cc016374d9d7d5b83456b218c02c33233328 (diff)
[PATCH] Use '#ifdef' to test for CONFIG_xxx variables
Don't depend on undefined preprocessor symbols evaluating to zero.
-rw-r--r--arch/alpha/kernel/core_marvel.c2
-rw-r--r--arch/alpha/kernel/entry.S2
-rw-r--r--arch/alpha/kernel/irq.c2
-rw-r--r--arch/arm/common/sa1111.c2
-rw-r--r--arch/cris/drivers/eeprom.c4
-rw-r--r--arch/i386/kernel/acpi/sleep.c2
-rw-r--r--arch/i386/kernel/head.S2
-rw-r--r--arch/i386/kernel/irq.c10
-rw-r--r--arch/i386/kernel/reboot.c2
-rw-r--r--arch/i386/kernel/setup.c2
-rw-r--r--arch/i386/kernel/traps.c4
-rw-r--r--arch/i386/mm/highmem.c4
-rw-r--r--arch/ia64/kernel/entry.S2
-rw-r--r--arch/ia64/kernel/gate.S2
-rw-r--r--arch/ia64/kernel/irq.c12
-rw-r--r--arch/m68k/kernel/entry.S2
-rw-r--r--arch/m68k/sun3/prom/init.c2
-rw-r--r--arch/m68k/sun3/prom/printf.c2
-rw-r--r--arch/m68knommu/platform/5249/MOTOROLA/crt0_ram.S2
-rw-r--r--arch/mips/arc/misc.c10
-rw-r--r--arch/mips64/arc/misc.c10
-rw-r--r--arch/ppc/kernel/process.c4
-rw-r--r--arch/s390/kernel/s390_ksyms.c2
-rw-r--r--arch/s390/kernel/traps.c2
-rw-r--r--arch/s390/math-emu/math.c2
-rw-r--r--arch/sparc/kernel/sparc_ksyms.c6
-rw-r--r--arch/sparc/mm/srmmu.c2
-rw-r--r--arch/sparc64/kernel/sparc64_ksyms.c4
-rw-r--r--arch/um/kernel/irq.c8
-rw-r--r--arch/um/kernel/mem.c4
-rw-r--r--arch/um/kernel/sys_call_table.c2
-rw-r--r--arch/x86_64/kernel/irq.c8
-rw-r--r--arch/x86_64/kernel/reboot.c2
-rw-r--r--arch/x86_64/kernel/traps.c2
-rw-r--r--drivers/ide/ide-probe.c2
-rw-r--r--drivers/isdn/eicon/eicon_mod.c8
-rw-r--r--drivers/isdn/eicon/eicon_pci.c2
-rw-r--r--drivers/isdn/hisax/avm_pci.c2
-rw-r--r--drivers/isdn/hisax/diva.c2
-rw-r--r--drivers/isdn/hisax/elsa.c2
-rw-r--r--drivers/isdn/hisax/niccy.c2
-rw-r--r--drivers/isdn/hisax/sedlbauer.c2
-rw-r--r--drivers/mtd/maps/sa1100-flash.c2
-rw-r--r--drivers/scsi/aic7xxx/aic79xx_osm.h2
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm.h2
-rw-r--r--drivers/scsi/scsi_error.c2
-rw-r--r--drivers/scsi/sd.c2
-rw-r--r--fs/cifs/cifs_debug.c2
-rw-r--r--fs/cifs/cifsfs.c6
-rw-r--r--fs/coda/sysctl.c2
-rw-r--r--fs/intermezzo/methods.c2
-rw-r--r--fs/intermezzo/sysctl.c2
-rw-r--r--fs/jffs/inode-v23.c2
-rw-r--r--fs/ncpfs/ncplib_kernel.c2
-rw-r--r--fs/nfsd/nfssvc.c2
-rw-r--r--fs/partitions/check.c6
-rw-r--r--include/asm-alpha/hardirq.h2
-rw-r--r--include/asm-alpha/kmap_types.h2
-rw-r--r--include/asm-alpha/spinlock.h8
-rw-r--r--include/asm-h8300/hardirq.h4
-rw-r--r--include/asm-ia64/hardirq.h2
-rw-r--r--include/asm-ia64/kmap_types.h2
-rw-r--r--include/asm-ia64/sn/addrs.h2
-rw-r--r--include/asm-m68k/hardirq.h2
-rw-r--r--include/asm-m68knommu/hardirq.h4
-rw-r--r--include/asm-parisc/hardirq.h2
-rw-r--r--include/asm-parisc/kmap_types.h2
-rw-r--r--include/asm-ppc/hardirq.h2
-rw-r--r--include/asm-ppc/spinlock.h4
-rw-r--r--include/asm-s390/hardirq.h2
-rw-r--r--include/asm-sparc/hardirq.h4
-rw-r--r--include/asm-sparc64/hardirq.h2
-rw-r--r--include/asm-um/pgtable.h2
-rw-r--r--include/asm-v850/hardirq.h2
-rw-r--r--include/asm-x86_64/hardirq.h2
-rw-r--r--include/linux/blkdev.h2
-rw-r--r--kernel/exit.c2
-rw-r--r--kernel/ksyms.c6
-rw-r--r--kernel/sched.c10
-rw-r--r--kernel/signal.c4
-rw-r--r--kernel/timer.c2
-rw-r--r--net/core/dev.c2
-rw-r--r--net/irda/irlap.c2
-rw-r--r--net/irda/irlap_event.c2
-rw-r--r--net/sctp/socket.c4
85 files changed, 138 insertions, 138 deletions
diff --git a/arch/alpha/kernel/core_marvel.c b/arch/alpha/kernel/core_marvel.c
index 678efe2ea617..93748195ec4b 100644
--- a/arch/alpha/kernel/core_marvel.c
+++ b/arch/alpha/kernel/core_marvel.c
@@ -780,7 +780,7 @@ __marvel_rtc_io(int write, u8 b, unsigned long addr)
rtc_access.function = 0x49; /* GET_TOY */
if (write) rtc_access.function = 0x48; /* PUT_TOY */
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
if (smp_processor_id() != boot_cpuid)
smp_call_function_on_cpu(__marvel_access_rtc,
&rtc_access,
diff --git a/arch/alpha/kernel/entry.S b/arch/alpha/kernel/entry.S
index ed89cf2de21b..0d8be8cca897 100644
--- a/arch/alpha/kernel/entry.S
+++ b/arch/alpha/kernel/entry.S
@@ -849,7 +849,7 @@ sys_getxpid:
about this loop. */
ldq $3, TASK_REAL_PARENT($2)
1: ldl $1, TASK_TGID($3)
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
mov $3, $4
mb
ldq $3, TASK_REAL_PARENT($2)
diff --git a/arch/alpha/kernel/irq.c b/arch/alpha/kernel/irq.c
index a5b14083ed0d..4b6b2c3e65ba 100644
--- a/arch/alpha/kernel/irq.c
+++ b/arch/alpha/kernel/irq.c
@@ -556,7 +556,7 @@ show_interrupts(struct seq_file *p, void *v)
unlock:
spin_unlock_irqrestore(&irq_desc[i].lock, flags);
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
seq_puts(p, "IPI: ");
for (i = 0; i < NR_CPUS; i++)
if (cpu_online(i))
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c
index 1a525e117e7c..f91856235184 100644
--- a/arch/arm/common/sa1111.c
+++ b/arch/arm/common/sa1111.c
@@ -419,7 +419,7 @@ static void sa1111_wake(struct sa1111 *sachip)
spin_lock_irqsave(&sachip->lock, flags);
-#if CONFIG_ARCH_SA1100
+#ifdef CONFIG_ARCH_SA1100
/*
* First, set up the 3.6864MHz clock on GPIO 27 for the SA-1111:
* (SA-1110 Developer's Manual, section 9.1.2.1)
diff --git a/arch/cris/drivers/eeprom.c b/arch/cris/drivers/eeprom.c
index 7a94c4cbac4c..ae3c37886721 100644
--- a/arch/cris/drivers/eeprom.c
+++ b/arch/cris/drivers/eeprom.c
@@ -163,7 +163,7 @@ int __init eeprom_init(void)
init_waitqueue_head(&eeprom.wait_q);
eeprom.busy = 0;
-#if CONFIG_ETRAX_I2C_EEPROM_PROBE
+#ifdef CONFIG_ETRAX_I2C_EEPROM_PROBE
#define EETEXT "Found"
#else
#define EETEXT "Assuming"
@@ -191,7 +191,7 @@ int __init eeprom_init(void)
eeprom.usec_delay_step = 128;
eeprom.adapt_state = 0;
-#if CONFIG_ETRAX_I2C_EEPROM_PROBE
+#ifdef CONFIG_ETRAX_I2C_EEPROM_PROBE
i2c_start();
i2c_outbyte(0x80);
if(!i2c_getack())
diff --git a/arch/i386/kernel/acpi/sleep.c b/arch/i386/kernel/acpi/sleep.c
index 74f61498cc2f..5265de12bb9e 100644
--- a/arch/i386/kernel/acpi/sleep.c
+++ b/arch/i386/kernel/acpi/sleep.c
@@ -75,7 +75,7 @@ void __init acpi_reserve_bootmem(void)
printk(KERN_ERR "ACPI: Wakeup code way too big, S3 disabled.\n");
return;
}
-#if CONFIG_X86_PAE
+#ifdef CONFIG_X86_PAE
printk(KERN_ERR "ACPI: S3 and PAE do not like each other for now, S3 disabled.\n");
return;
#endif
diff --git a/arch/i386/kernel/head.S b/arch/i386/kernel/head.S
index c5b7a5c4e3d2..3c546026c7c0 100644
--- a/arch/i386/kernel/head.S
+++ b/arch/i386/kernel/head.S
@@ -483,7 +483,7 @@ ENTRY(cpu_gdt_table)
.quad 0x0000000000000000 /* 0xf0 - unused */
.quad 0x0000000000000000 /* 0xf8 - GDT entry 31: double-fault TSS */
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
.fill (NR_CPUS-1)*GDT_ENTRIES,8,0 /* other CPU's GDT */
#endif
diff --git a/arch/i386/kernel/irq.c b/arch/i386/kernel/irq.c
index b46c0401e0d1..9490f99856e7 100644
--- a/arch/i386/kernel/irq.c
+++ b/arch/i386/kernel/irq.c
@@ -92,7 +92,7 @@ static void ack_none(unsigned int irq)
* each architecture has to answer this themselves, it doesn't deserve
* a generic callback i think.
*/
-#if CONFIG_X86
+#ifdef CONFIG_X86
printk("unexpected IRQ trap at vector %02x\n", irq);
#ifdef CONFIG_X86_LOCAL_APIC
/*
@@ -173,7 +173,7 @@ skip:
if (cpu_online(j))
seq_printf(p, "%10u ", nmi_count(j));
seq_putc(p, '\n');
-#if CONFIG_X86_LOCAL_APIC
+#ifdef CONFIG_X86_LOCAL_APIC
seq_printf(p, "LOC: ");
for (j = 0; j < NR_CPUS; j++)
if (cpu_online(j))
@@ -189,7 +189,7 @@ skip:
return 0;
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
inline void synchronize_irq(unsigned int irq)
{
while (irq_desc[irq].status & IRQ_INPROGRESS)
@@ -865,7 +865,7 @@ out:
return 0;
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
static struct proc_dir_entry * smp_affinity_entry [NR_IRQS];
@@ -944,7 +944,7 @@ static void register_irq_proc (unsigned int irq)
/* create /proc/irq/1234 */
irq_dir[irq] = proc_mkdir(name, root_irq_dir);
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
{
struct proc_dir_entry *entry;
diff --git a/arch/i386/kernel/reboot.c b/arch/i386/kernel/reboot.c
index a9ec5a1d4037..77d0daefb75e 100644
--- a/arch/i386/kernel/reboot.c
+++ b/arch/i386/kernel/reboot.c
@@ -215,7 +215,7 @@ void machine_real_restart(unsigned char *code, int length)
void machine_restart(char * __unused)
{
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
int cpuid;
cpuid = GET_APIC_ID(apic_read(APIC_ID));
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c
index da559474baf2..04e5cb9f1996 100644
--- a/arch/i386/kernel/setup.c
+++ b/arch/i386/kernel/setup.c
@@ -597,7 +597,7 @@ unsigned long __init find_max_low_pfn(void)
} else {
if (highmem_pages == -1)
highmem_pages = 0;
-#if CONFIG_HIGHMEM
+#ifdef CONFIG_HIGHMEM
if (highmem_pages >= max_pfn) {
printk(KERN_ERR "highmem size specified (%uMB) is bigger than pages available (%luMB)!.\n", pages_to_mb(highmem_pages), pages_to_mb(max_pfn));
highmem_pages = 0;
diff --git a/arch/i386/kernel/traps.c b/arch/i386/kernel/traps.c
index a6eb6cb2e8c0..c6bc1936f45b 100644
--- a/arch/i386/kernel/traps.c
+++ b/arch/i386/kernel/traps.c
@@ -101,7 +101,7 @@ void show_trace(unsigned long * stack)
stack = (unsigned long*)&stack;
printk("Call Trace:");
-#if CONFIG_KALLSYMS
+#ifdef CONFIG_KALLSYMS
printk("\n");
#endif
i = 1;
@@ -438,7 +438,7 @@ static void default_do_nmi(struct pt_regs * regs)
unsigned char reason = get_nmi_reason();
if (!(reason & 0xc0)) {
-#if CONFIG_X86_LOCAL_APIC
+#ifdef CONFIG_X86_LOCAL_APIC
/*
* Ok, so this is none of the documented NMI sources,
* so it must be the NMI watchdog.
diff --git a/arch/i386/mm/highmem.c b/arch/i386/mm/highmem.c
index ec222a7a3fa1..c303b222131c 100644
--- a/arch/i386/mm/highmem.c
+++ b/arch/i386/mm/highmem.c
@@ -36,7 +36,7 @@ void *kmap_atomic(struct page *page, enum km_type type)
idx = type + KM_TYPE_NR*smp_processor_id();
vaddr = __fix_to_virt(FIX_KMAP_BEGIN + idx);
-#if CONFIG_DEBUG_HIGHMEM
+#ifdef CONFIG_DEBUG_HIGHMEM
if (!pte_none(*(kmap_pte-idx)))
BUG();
#endif
@@ -48,7 +48,7 @@ void *kmap_atomic(struct page *page, enum km_type type)
void kunmap_atomic(void *kvaddr, enum km_type type)
{
-#if CONFIG_DEBUG_HIGHMEM
+#ifdef CONFIG_DEBUG_HIGHMEM
unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK;
enum fixed_addresses idx = type + KM_TYPE_NR*smp_processor_id();
diff --git a/arch/ia64/kernel/entry.S b/arch/ia64/kernel/entry.S
index 4e554a63fdca..eac7eca31e71 100644
--- a/arch/ia64/kernel/entry.S
+++ b/arch/ia64/kernel/entry.S
@@ -838,7 +838,7 @@ skip_rbs_switch:
rsm psr.i // disable interrupts
;;
adds r17=TI_FLAGS+IA64_TASK_SIZE,r13
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
(pKStk) adds r20=TI_PRE_COUNT+IA64_TASK_SIZE,r13
;;
(pKStk) st4 [r20]=r0 // preempt_count() <- 0
diff --git a/arch/ia64/kernel/gate.S b/arch/ia64/kernel/gate.S
index 38b6a44e25c0..8601b2646ab8 100644
--- a/arch/ia64/kernel/gate.S
+++ b/arch/ia64/kernel/gate.S
@@ -17,7 +17,7 @@
.start_gate:
-#if CONFIG_FSYS
+#ifdef CONFIG_FSYS
#include <asm/errno.h>
diff --git a/arch/ia64/kernel/irq.c b/arch/ia64/kernel/irq.c
index 6ed0e521cc29..1bd1bb29554c 100644
--- a/arch/ia64/kernel/irq.c
+++ b/arch/ia64/kernel/irq.c
@@ -108,7 +108,7 @@ static void ack_none(unsigned int irq)
* each architecture has to answer this themselves, it doesn't deserve
* a generic callback i think.
*/
-#if CONFIG_X86
+#ifdef CONFIG_X86
printk(KERN_ERR "unexpected IRQ trap at vector %02x\n", irq);
#ifdef CONFIG_X86_LOCAL_APIC
/*
@@ -122,7 +122,7 @@ static void ack_none(unsigned int irq)
ack_APIC_irq();
#endif
#endif
-#if CONFIG_IA64
+#ifdef CONFIG_IA64
printk(KERN_ERR "Unexpected irq vector 0x%x on CPU %u!\n", irq, smp_processor_id());
#endif
}
@@ -194,7 +194,7 @@ skip:
if (cpu_online(j))
seq_printf(p, "%10u ", nmi_count(j));
seq_putc(p, '\n');
-#if CONFIG_X86_LOCAL_APIC
+#ifdef CONFIG_X86_LOCAL_APIC
seq_puts(p, "LOC: ");
for (j = 0; j < NR_CPUS; j++)
if (cpu_online(j))
@@ -210,7 +210,7 @@ skip:
return 0;
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
inline void synchronize_irq(unsigned int irq)
{
while (irq_desc(irq)->status & IRQ_INPROGRESS)
@@ -870,7 +870,7 @@ out:
return 0;
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
static struct proc_dir_entry * smp_affinity_entry [NR_IRQS];
@@ -973,7 +973,7 @@ static void register_irq_proc (unsigned int irq)
/* create /proc/irq/1234 */
irq_dir[irq] = proc_mkdir(name, root_irq_dir);
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
{
struct proc_dir_entry *entry;
diff --git a/arch/m68k/kernel/entry.S b/arch/m68k/kernel/entry.S
index 2b4de33527e6..73a26ed45cec 100644
--- a/arch/m68k/kernel/entry.S
+++ b/arch/m68k/kernel/entry.S
@@ -188,7 +188,7 @@ do_delayed_trace:
#if 0
-#if CONFIG_AMIGA
+#ifdef CONFIG_AMIGA
ami_inthandler:
addql #1,irq_stat+CPUSTAT_LOCAL_IRQ_COUNT
SAVE_ALL_INT
diff --git a/arch/m68k/sun3/prom/init.c b/arch/m68k/sun3/prom/init.c
index 3922eff55f2f..a83d303d1d07 100644
--- a/arch/m68k/sun3/prom/init.c
+++ b/arch/m68k/sun3/prom/init.c
@@ -32,7 +32,7 @@ extern void prom_ranges_init(void);
void __init prom_init(struct linux_romvec *rp)
{
-#if CONFIG_AP1000
+#ifdef CONFIG_AP1000
extern struct linux_romvec *ap_prom_init(void);
rp = ap_prom_init();
#endif
diff --git a/arch/m68k/sun3/prom/printf.c b/arch/m68k/sun3/prom/printf.c
index 34aeda5f465a..e6ee1006344e 100644
--- a/arch/m68k/sun3/prom/printf.c
+++ b/arch/m68k/sun3/prom/printf.c
@@ -38,7 +38,7 @@ prom_printf(char *fmt, ...)
bptr = ppbuf;
-#if CONFIG_AP1000
+#ifdef CONFIG_AP1000
ap_write(1,bptr,strlen(bptr));
#else
diff --git a/arch/m68knommu/platform/5249/MOTOROLA/crt0_ram.S b/arch/m68knommu/platform/5249/MOTOROLA/crt0_ram.S
index 67b98af50c60..c9ac716240ab 100644
--- a/arch/m68knommu/platform/5249/MOTOROLA/crt0_ram.S
+++ b/arch/m68knommu/platform/5249/MOTOROLA/crt0_ram.S
@@ -93,7 +93,7 @@ _start:
move.l %d0, 0x180(%a1) /* Set PLL register */
nop
-#if CONFIG_CLOCK_140MHz
+#ifdef CONFIG_CLOCK_140MHz
/*
* Set initial clock frequency. This assumes M5249C3 board
* is fitted with 11.2896MHz crystal. It will program the
diff --git a/arch/mips/arc/misc.c b/arch/mips/arc/misc.c
index 95a4ef05d54f..e84dd38103eb 100644
--- a/arch/mips/arc/misc.c
+++ b/arch/mips/arc/misc.c
@@ -19,7 +19,7 @@ void prom_halt(void)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
romvec->halt();
@@ -29,7 +29,7 @@ void prom_powerdown(void)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
romvec->pdown();
@@ -40,7 +40,7 @@ void prom_restart(void)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
romvec->restart();
@@ -50,7 +50,7 @@ void prom_reboot(void)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
romvec->reboot();
@@ -60,7 +60,7 @@ void ArcEnterInteractiveMode(void)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
romvec->imode();
diff --git a/arch/mips64/arc/misc.c b/arch/mips64/arc/misc.c
index 79a101846a46..b3e51b488a4d 100644
--- a/arch/mips64/arc/misc.c
+++ b/arch/mips64/arc/misc.c
@@ -29,7 +29,7 @@ ArcHalt(VOID)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
ARC_CALL0(halt);
@@ -41,7 +41,7 @@ ArcPowerDown(VOID)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
ARC_CALL0(pdown);
@@ -54,7 +54,7 @@ ArcRestart(VOID)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
ARC_CALL0(restart);
@@ -66,7 +66,7 @@ ArcReboot(VOID)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
ARC_CALL0(reboot);
@@ -78,7 +78,7 @@ ArcEnterInteractiveMode(VOID)
{
bc_disable();
cli();
-#if CONFIG_SCSI_SGIWD93
+#ifdef CONFIG_SCSI_SGIWD93
reset_wd33c93(sgiwd93_host);
#endif
ARC_CALL0(imode);
diff --git a/arch/ppc/kernel/process.c b/arch/ppc/kernel/process.c
index a821de275080..3f00c21beee2 100644
--- a/arch/ppc/kernel/process.c
+++ b/arch/ppc/kernel/process.c
@@ -524,7 +524,7 @@ static void show_tsk_stack(struct task_struct *tsk, unsigned long sp)
while (count < 16 && sp > prev_sp && sp < stack_top && (sp & 3) == 0) {
if (count == 0) {
printk("Call trace:");
-#if CONFIG_KALLSYMS
+#ifdef CONFIG_KALLSYMS
printk("\n");
#endif
} else {
@@ -534,7 +534,7 @@ static void show_tsk_stack(struct task_struct *tsk, unsigned long sp)
} else
ret = *(unsigned long *)(sp + 4);
printk(" [%08lx] ", ret);
-#if CONFIG_KALLSYMS
+#ifdef CONFIG_KALLSYMS
print_symbol("%s", ret);
printk("\n");
#endif
diff --git a/arch/s390/kernel/s390_ksyms.c b/arch/s390/kernel/s390_ksyms.c
index 1a19b3ca7800..31859533135d 100644
--- a/arch/s390/kernel/s390_ksyms.c
+++ b/arch/s390/kernel/s390_ksyms.c
@@ -13,7 +13,7 @@
#include <asm/delay.h>
#include <asm/pgalloc.h>
#include <asm/setup.h>
-#if CONFIG_IP_MULTICAST
+#ifdef CONFIG_IP_MULTICAST
#include <net/arp.h>
#endif
diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index d7248792748b..aad186527212 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -304,7 +304,7 @@ int do_debugger_trap(struct pt_regs *regs,int signal)
}
else
{
-#if CONFIG_REMOTE_DEBUG
+#ifdef CONFIG_REMOTE_DEBUG
if(gdb_stub_initialised)
{
gdb_stub_handle_exception(regs, signal);
diff --git a/arch/s390/math-emu/math.c b/arch/s390/math-emu/math.c
index 1aa448d209f0..c203afbe1a3f 100644
--- a/arch/s390/math-emu/math.c
+++ b/arch/s390/math-emu/math.c
@@ -102,7 +102,7 @@ static void display_emulation_not_implemented(struct pt_regs *regs, char *instr)
struct pt_regs *regs;
__u16 *location;
-#if CONFIG_SYSCTL
+#ifdef CONFIG_SYSCTL
if(sysctl_ieee_emulation_warnings)
#endif
{
diff --git a/arch/sparc/kernel/sparc_ksyms.c b/arch/sparc/kernel/sparc_ksyms.c
index 72f156526627..ad08eb2eddf9 100644
--- a/arch/sparc/kernel/sparc_ksyms.c
+++ b/arch/sparc/kernel/sparc_ksyms.c
@@ -157,7 +157,7 @@ EXPORT_SYMBOL(ndelay);
EXPORT_SYMBOL(rtc_lock);
EXPORT_SYMBOL(mostek_lock);
EXPORT_SYMBOL(mstk48t02_regs);
-#if CONFIG_SUN_AUXIO
+#ifdef CONFIG_SUN_AUXIO
EXPORT_SYMBOL(set_auxio);
EXPORT_SYMBOL(get_auxio);
#endif
@@ -183,7 +183,7 @@ EXPORT_SYMBOL_NOVERS(BTFIXUP_CALL(mmu_get_scsi_one));
EXPORT_SYMBOL_NOVERS(BTFIXUP_CALL(mmu_release_scsi_sgl));
EXPORT_SYMBOL_NOVERS(BTFIXUP_CALL(mmu_release_scsi_one));
-#if CONFIG_SBUS
+#ifdef CONFIG_SBUS
EXPORT_SYMBOL(sbus_root);
EXPORT_SYMBOL(dma_chain);
EXPORT_SYMBOL(sbus_set_sbus64);
@@ -198,7 +198,7 @@ EXPORT_SYMBOL(sbus_dma_sync_sg);
EXPORT_SYMBOL(sbus_iounmap);
EXPORT_SYMBOL(sbus_ioremap);
#endif
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
EXPORT_SYMBOL(ebus_chain);
EXPORT_SYMBOL(insl);
EXPORT_SYMBOL(outsl);
diff --git a/arch/sparc/mm/srmmu.c b/arch/sparc/mm/srmmu.c
index 30ec1351efe3..fac374c2814c 100644
--- a/arch/sparc/mm/srmmu.c
+++ b/arch/sparc/mm/srmmu.c
@@ -1310,7 +1310,7 @@ void __init srmmu_paging_init(void)
flush_tlb_all();
poke_srmmu();
-#if CONFIG_SUN_IO
+#ifdef CONFIG_SUN_IO
srmmu_allocate_ptable_skeleton(sparc_iomap.start, IOBASE_END);
srmmu_allocate_ptable_skeleton(DVMA_VADDR, DVMA_END);
#endif
diff --git a/arch/sparc64/kernel/sparc64_ksyms.c b/arch/sparc64/kernel/sparc64_ksyms.c
index bcd0af5c9354..25ffe68c22ce 100644
--- a/arch/sparc64/kernel/sparc64_ksyms.c
+++ b/arch/sparc64/kernel/sparc64_ksyms.c
@@ -196,11 +196,11 @@ EXPORT_SYMBOL(__flush_dcache_range);
EXPORT_SYMBOL(mostek_lock);
EXPORT_SYMBOL(mstk48t02_regs);
EXPORT_SYMBOL(request_fast_irq);
-#if CONFIG_SUN_AUXIO
+#ifdef CONFIG_SUN_AUXIO
EXPORT_SYMBOL(auxio_set_led);
EXPORT_SYMBOL(auxio_set_lte);
#endif
-#if CONFIG_SBUS
+#ifdef CONFIG_SBUS
EXPORT_SYMBOL(sbus_root);
EXPORT_SYMBOL(dma_chain);
EXPORT_SYMBOL(sbus_set_sbus64);
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c
index ed749a24988b..e866d5a32da2 100644
--- a/arch/um/kernel/irq.c
+++ b/arch/um/kernel/irq.c
@@ -48,7 +48,7 @@ static void ack_none(unsigned int irq)
* each architecture has to answer this themselves, it doesn't deserve
* a generic callback i think.
*/
-#if CONFIG_X86
+#ifdef CONFIG_X86
printk(KERN_ERR "unexpected IRQ trap at vector %02x\n", irq);
#ifdef CONFIG_X86_LOCAL_APIC
/*
@@ -121,7 +121,7 @@ int get_irq_list(char *buf)
}
p += sprintf(p, "\n");
#ifdef notdef
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
p += sprintf(p, "LOC: ");
for (j = 0; j < num_online_cpus(); j++)
p += sprintf(p, "%10u ",
@@ -198,7 +198,7 @@ inline void disable_irq_nosync(unsigned int irq)
spin_unlock_irqrestore(&desc->lock, flags);
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
inline void synchronize_irq(unsigned int irq)
{
/* is there anything to synchronize with? */
@@ -621,7 +621,7 @@ static int irq_affinity_write_proc (struct file *file, const char *buffer,
err = parse_hex_value(buffer, count, &new_value);
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
/*
* Do not allow disabling IRQs completely - it's a too easy
* way to make the system unusable accidentally :-) At least
diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c
index d0c24d48071e..f5b9b0dac448 100644
--- a/arch/um/kernel/mem.c
+++ b/arch/um/kernel/mem.c
@@ -124,7 +124,7 @@ void set_kmem_end(unsigned long new)
kmem_top = new;
}
-#if CONFIG_HIGHMEM
+#ifdef CONFIG_HIGHMEM
/* Changed during early boot */
pte_t *kmap_pte;
pgprot_t kmap_prot;
@@ -329,7 +329,7 @@ void paging_init(void)
vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK;
fixrange_init(vaddr, FIXADDR_TOP, swapper_pg_dir);
-#if CONFIG_HIGHMEM
+#ifdef CONFIG_HIGHMEM
init_highmem();
setup_highmem(highmem);
#endif
diff --git a/arch/um/kernel/sys_call_table.c b/arch/um/kernel/sys_call_table.c
index 93d885341045..c651311f020e 100644
--- a/arch/um/kernel/sys_call_table.c
+++ b/arch/um/kernel/sys_call_table.c
@@ -236,7 +236,7 @@ extern syscall_handler_t sys_epoll_wait;
extern syscall_handler_t sys_remap_file_pages;
extern syscall_handler_t sys_set_tid_address;
-#if CONFIG_NFSD
+#ifdef CONFIG_NFSD
#define NFSSERVCTL sys_nfsservctl
#else
#define NFSSERVCTL sys_ni_syscall
diff --git a/arch/x86_64/kernel/irq.c b/arch/x86_64/kernel/irq.c
index 109a8ef0c56b..743637509b91 100644
--- a/arch/x86_64/kernel/irq.c
+++ b/arch/x86_64/kernel/irq.c
@@ -90,7 +90,7 @@ static void ack_none(unsigned int irq)
* each architecture has to answer this themselves, it doesn't deserve
* a generic callback i think.
*/
-#if CONFIG_X86
+#ifdef CONFIG_X86
printk("unexpected IRQ trap at vector %02x\n", irq);
#ifdef CONFIG_X86_LOCAL_APIC
/*
@@ -171,7 +171,7 @@ skip:
if (cpu_online(j))
seq_printf(p, "%10u ", cpu_pda[j].__nmi_count);
seq_putc(p, '\n');
-#if CONFIG_X86_LOCAL_APIC
+#ifdef CONFIG_X86_LOCAL_APIC
seq_printf(p, "LOC: ");
for (j = 0; j < NR_CPUS; j++)
if (cpu_online(j))
@@ -827,7 +827,7 @@ out:
return 0;
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
static struct proc_dir_entry * smp_affinity_entry [NR_IRQS];
@@ -906,7 +906,7 @@ static void register_irq_proc (unsigned int irq)
/* create /proc/irq/1234 */
irq_dir[irq] = proc_mkdir(name, root_irq_dir);
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
{
struct proc_dir_entry *entry;
diff --git a/arch/x86_64/kernel/reboot.c b/arch/x86_64/kernel/reboot.c
index a56ae47b7124..d7dad77963e8 100644
--- a/arch/x86_64/kernel/reboot.c
+++ b/arch/x86_64/kernel/reboot.c
@@ -68,7 +68,7 @@ static inline void kb_wait(void)
void machine_restart(char * __unused)
{
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
int cpuid;
cpuid = GET_APIC_ID(apic_read(APIC_ID));
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c
index 73ab50c35498..1d332418a56f 100644
--- a/arch/x86_64/kernel/traps.c
+++ b/arch/x86_64/kernel/traps.c
@@ -529,7 +529,7 @@ asmlinkage void default_do_nmi(struct pt_regs * regs)
unsigned char reason = inb(0x61);
if (!(reason & 0xc0)) {
-#if CONFIG_X86_LOCAL_APIC
+#ifdef CONFIG_X86_LOCAL_APIC
/*
* Ok, so this is none of the documented NMI sources,
* so it must be the NMI watchdog.
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index 381428eb67ff..f0c9129980a6 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -803,7 +803,7 @@ void probe_hwif (ide_hwif_t *hwif)
return;
if ((hwif->chipset != ide_4drives || !hwif->mate || !hwif->mate->present) &&
-#if CONFIG_BLK_DEV_PDC4030
+#ifdef CONFIG_BLK_DEV_PDC4030
(hwif->chipset != ide_pdc4030 || hwif->channel == 0) &&
#endif /* CONFIG_BLK_DEV_PDC4030 */
(hwif_check_regions(hwif))) {
diff --git a/drivers/isdn/eicon/eicon_mod.c b/drivers/isdn/eicon/eicon_mod.c
index 4fd7dbcb6968..170cc8eb0c81 100644
--- a/drivers/isdn/eicon/eicon_mod.c
+++ b/drivers/isdn/eicon/eicon_mod.c
@@ -245,7 +245,7 @@ eicon_command(eicon_card * card, isdn_ctrl * c)
card->hwif.isa.shmem = (eicon_isa_shmem *)a;
return 0;
case EICON_BUS_MCA:
-#if CONFIG_MCA
+#ifdef CONFIG_MCA
if (eicon_mca_find_card(
0, a,
card->hwif.isa.irq,
@@ -853,7 +853,7 @@ eicon_alloccard(int Type, int membase, int irq, char *id, int card_id)
card->type = Type;
switch (Type) {
#ifdef CONFIG_ISDN_DRV_EICON_ISA
-#if CONFIG_MCA /* only needed for MCA */
+#ifdef CONFIG_MCA /* only needed for MCA */
case EICON_CTYPE_S:
case EICON_CTYPE_SX:
case EICON_CTYPE_SCOM:
@@ -1342,7 +1342,7 @@ card_t DivasCards[1];
static void __exit
eicon_exit(void)
{
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
#ifdef CONFIG_ISDN_DRV_EICON_PCI
card_t *pCard;
word wCardIndex;
@@ -1374,7 +1374,7 @@ eicon_exit(void)
eicon_freecard(last);
}
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
#ifdef CONFIG_ISDN_DRV_EICON_PCI
pCard = DivasCards;
for (wCardIndex = 0; wCardIndex < MAX_CARDS; wCardIndex++)
diff --git a/drivers/isdn/eicon/eicon_pci.c b/drivers/isdn/eicon/eicon_pci.c
index 6246162dcda4..926816358ef2 100644
--- a/drivers/isdn/eicon/eicon_pci.c
+++ b/drivers/isdn/eicon/eicon_pci.c
@@ -26,7 +26,7 @@
char *eicon_pci_revision = "$Revision: 1.1.4.1.2.3 $";
-#if CONFIG_PCI /* intire stuff is only for PCI */
+#ifdef CONFIG_PCI /* entire stuff is only for PCI */
#ifdef CONFIG_ISDN_DRV_EICON_PCI
int eicon_pci_find_card(char *ID)
diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.c
index 9a0eea542f3b..cba324bbf8df 100644
--- a/drivers/isdn/hisax/avm_pci.c
+++ b/drivers/isdn/hisax/avm_pci.c
@@ -730,7 +730,7 @@ setup_avm_pcipnp(struct IsdnCard *card)
}
}
#endif
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
if ((dev_avm = pci_find_device(PCI_VENDOR_ID_AVM,
PCI_DEVICE_ID_AVM_A1, dev_avm))) {
if (avm_pci_probe(card->cs, dev_avm))
diff --git a/drivers/isdn/hisax/diva.c b/drivers/isdn/hisax/diva.c
index 94c949c4cc74..b9996317376b 100644
--- a/drivers/isdn/hisax/diva.c
+++ b/drivers/isdn/hisax/diva.c
@@ -772,7 +772,7 @@ setup_diva(struct IsdnCard *card)
}
}
#endif
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
if ((dev_diva = pci_find_device(PCI_VENDOR_ID_EICON,
PCI_DEVICE_ID_EICON_DIVA20,
dev_diva))) {
diff --git a/drivers/isdn/hisax/elsa.c b/drivers/isdn/hisax/elsa.c
index 004957e3e174..37d6321ff4ca 100644
--- a/drivers/isdn/hisax/elsa.c
+++ b/drivers/isdn/hisax/elsa.c
@@ -1098,7 +1098,7 @@ setup_elsa(struct IsdnCard *card)
return 0;
return 1;
} else if (card->typ == ISDN_CTYPE_ELSA_PCI) {
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
if ((dev_qs1000 = pci_find_device(PCI_VENDOR_ID_ELSA,
PCI_DEVICE_ID_ELSA_MICROLINK, dev_qs1000))) {
if (elsa_qs_pci_probe(card->cs, dev_qs1000,
diff --git a/drivers/isdn/hisax/niccy.c b/drivers/isdn/hisax/niccy.c
index 5c9c8ef67bb0..b5c198d123db 100644
--- a/drivers/isdn/hisax/niccy.c
+++ b/drivers/isdn/hisax/niccy.c
@@ -319,7 +319,7 @@ setup_niccy(struct IsdnCard *card)
return 0;
return 1;
} else {
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
if ((niccy_dev = pci_find_device(PCI_VENDOR_ID_SATSAGEM,
PCI_DEVICE_ID_SATSAGEM_NICCY, niccy_dev))) {
if (niccy_pci_probe(card->cs, niccy_dev) < 0)
diff --git a/drivers/isdn/hisax/sedlbauer.c b/drivers/isdn/hisax/sedlbauer.c
index 655a76d7473a..1ffff0814392 100644
--- a/drivers/isdn/hisax/sedlbauer.c
+++ b/drivers/isdn/hisax/sedlbauer.c
@@ -789,7 +789,7 @@ setup_sedlbauer(struct IsdnCard *card)
}
#endif
/* Probe for Sedlbauer speed pci */
-#if CONFIG_PCI
+#ifdef CONFIG_PCI
dev_sedl = pci_find_device(PCI_VENDOR_ID_TIGERJET,
PCI_DEVICE_ID_TIGERJET_100, dev_sedl);
if (dev_sedl) {
diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index dfa0a0680ff6..d7a8a514b851 100644
--- a/drivers/mtd/maps/sa1100-flash.c
+++ b/drivers/mtd/maps/sa1100-flash.c
@@ -337,7 +337,7 @@ static struct mtd_partition flexanet_partitions[] = {
#ifdef CONFIG_SA1100_FREEBIRD
static struct mtd_partition freebird_partitions[] = {
-#if CONFIG_SA1100_FREEBIRD_NEW
+#ifdef CONFIG_SA1100_FREEBIRD_NEW
{
.name = "firmware",
.size = 0x00040000,
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.h b/drivers/scsi/aic7xxx/aic79xx_osm.h
index e2a0eeab5f5c..cd89158cc778 100644
--- a/drivers/scsi/aic7xxx/aic79xx_osm.h
+++ b/drivers/scsi/aic7xxx/aic79xx_osm.h
@@ -246,7 +246,7 @@ int ahd_dmamap_unload(struct ahd_softc *, bus_dma_tag_t, bus_dmamap_t);
typedef struct timer_list ahd_timer_t;
/********************************** Includes **********************************/
-#if CONFIG_AIC79XX_REG_PRETTY_PRINT
+#ifdef CONFIG_AIC79XX_REG_PRETTY_PRINT
#define AIC_DEBUG_REGISTERS 1
#else
#define AIC_DEBUG_REGISTERS 0
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.h b/drivers/scsi/aic7xxx/aic7xxx_osm.h
index 247d220faad2..0ce16c8179d6 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.h
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.h
@@ -258,7 +258,7 @@ int ahc_dmamap_unload(struct ahc_softc *, bus_dma_tag_t, bus_dmamap_t);
typedef struct timer_list ahc_timer_t;
/********************************** Includes **********************************/
-#if CONFIG_AIC7XXX_REG_PRETTY_PRINT
+#ifdef CONFIG_AIC7XXX_REG_PRETTY_PRINT
#define AIC_DEBUG_REGISTERS 1
#else
#define AIC_DEBUG_REGISTERS 0
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 5581d2c55eb2..98ccf93c6c6d 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -188,7 +188,7 @@ int scsi_block_when_processing_errors(struct scsi_device *sdev)
return sdev->online;
}
-#if CONFIG_SCSI_LOGGING
+#ifdef CONFIG_SCSI_LOGGING
/**
* scsi_eh_prt_fail_stats - Log info on failures.
* @shost: scsi host being recovered.
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index fc4bd9338080..8ca9a8538129 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -696,7 +696,7 @@ static void sd_rw_intr(struct scsi_cmnd * SCpnt)
int good_sectors = (result == 0 ? this_count : 0);
sector_t block_sectors = 1;
sector_t error_sector;
-#if CONFIG_SCSI_LOGGING
+#ifdef CONFIG_SCSI_LOGGING
SCSI_LOG_HLCOMPLETE(1, printk("sd_rw_intr: %s: res=0x%x\n",
SCpnt->request->rq_disk->disk_name, result));
if (0 != result) {
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
index 43c5706f12ef..a889b4c4d129 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -56,7 +56,7 @@ cifs_dump_mem(char *label, void *data, int length)
}
}
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
int
cifs_debug_data_read(char *buf, char **beginBuffer, off_t offset,
int count, int *eof, void *data)
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index b04e902de75f..d4eda86820cc 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -465,7 +465,7 @@ static int __init
init_cifs(void)
{
int rc = 0;
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
cifs_proc_init();
#endif
INIT_LIST_HEAD(&GlobalServerList); /* BB not implemented yet */
@@ -503,7 +503,7 @@ init_cifs(void)
}
cifs_destroy_inodecache();
}
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
cifs_proc_clean();
#endif
return rc;
@@ -513,7 +513,7 @@ static void __exit
exit_cifs(void)
{
cFYI(0, ("In unregister ie exit_cifs"));
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
cifs_proc_clean();
#endif
unregister_filesystem(&cifs_fs_type);
diff --git a/fs/coda/sysctl.c b/fs/coda/sysctl.c
index 52f0d25cc9be..7c8a136be519 100644
--- a/fs/coda/sysctl.c
+++ b/fs/coda/sysctl.c
@@ -244,7 +244,7 @@ void coda_sysctl_clean()
}
#endif
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
remove_proc_entry("cache_inv_stats", proc_fs_coda);
remove_proc_entry("vfs_stats", proc_fs_coda);
remove_proc_entry("coda", proc_root_fs);
diff --git a/fs/intermezzo/methods.c b/fs/intermezzo/methods.c
index a7173b2a4dc3..70ca28ffeccd 100644
--- a/fs/intermezzo/methods.c
+++ b/fs/intermezzo/methods.c
@@ -145,7 +145,7 @@ void filter_setup_journal_ops(struct filter_fs *ops, char *cache_type)
{
if ( strlen(cache_type) == strlen("ext2") &&
memcmp(cache_type, "ext2", strlen("ext2")) == 0 ) {
-#if CONFIG_EXT2_FS
+#ifdef CONFIG_EXT2_FS
ops->o_trops = &presto_ext2_journal_ops;
#else
ops->o_trops = NULL;
diff --git a/fs/intermezzo/sysctl.c b/fs/intermezzo/sysctl.c
index 0d103395eeac..e6df8553cac6 100644
--- a/fs/intermezzo/sysctl.c
+++ b/fs/intermezzo/sysctl.c
@@ -358,7 +358,7 @@ void cleanup_intermezzo_sysctl(void)
*/
PRESTO_FREE(presto_table[PRESTO_PRIMARY_CTLCNT].child, sizeof(ctl_table) * total_entries);
-#if CONFIG_PROC_FS
+#ifdef CONFIG_PROC_FS
remove_proc_entry("mounts", proc_fs_intermezzo);
remove_proc_entry("intermezzo", proc_root_fs);
#endif
diff --git a/fs/jffs/inode-v23.c b/fs/jffs/inode-v23.c
index ed95aceaa941..376962a24161 100644
--- a/fs/jffs/inode-v23.c
+++ b/fs/jffs/inode-v23.c
@@ -55,7 +55,7 @@
#include "jffs_fm.h"
#include "intrep.h"
-#if CONFIG_JFFS_PROC_FS
+#ifdef CONFIG_JFFS_PROC_FS
#include "jffs_proc.h"
#endif
diff --git a/fs/ncpfs/ncplib_kernel.c b/fs/ncpfs/ncplib_kernel.c
index 711424f12609..345270647f73 100644
--- a/fs/ncpfs/ncplib_kernel.c
+++ b/fs/ncpfs/ncplib_kernel.c
@@ -695,7 +695,7 @@ ncp_del_file_or_subdir2(struct ncp_server *server,
__u32 dirent;
if (!inode) {
-#if CONFIG_NCPFS_DEBUGDENTRY
+#ifdef CONFIG_NCPFS_DEBUGDENTRY
PRINTK("ncpfs: ncpdel2: dentry->d_inode == NULL\n");
#endif
return 0xFF; /* Any error */
diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 29c6e762a251..734c5289420e 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -103,7 +103,7 @@ nfsd_svc(unsigned short port, int nrservs)
if (error < 0)
goto failure;
-#if CONFIG_NFSD_TCP
+#ifdef CONFIG_NFSD_TCP
error = svc_makesock(nfsd_serv, IPPROTO_TCP, port);
if (error < 0)
goto failure;
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 514a0f2f803a..71a9cfd70968 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -38,7 +38,7 @@
#include "ultrix.h"
#include "efi.h"
-#if CONFIG_BLK_DEV_MD
+#ifdef CONFIG_BLK_DEV_MD
extern void md_autodetect_dev(dev_t dev);
#endif
@@ -340,7 +340,7 @@ void register_disk(struct gendisk *disk)
if (!size)
continue;
add_partition(disk, j, from, size);
-#if CONFIG_BLK_DEV_MD
+#ifdef CONFIG_BLK_DEV_MD
if (!state->parts[j].flags)
continue;
md_autodetect_dev(bdev->bd_dev+j);
@@ -374,7 +374,7 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
if (!size)
continue;
add_partition(disk, p, from, size);
-#if CONFIG_BLK_DEV_MD
+#ifdef CONFIG_BLK_DEV_MD
if (state->parts[p].flags)
md_autodetect_dev(bdev->bd_dev+p);
#endif
diff --git a/include/asm-alpha/hardirq.h b/include/asm-alpha/hardirq.h
index 6329743f61fb..e188ed9cf870 100644
--- a/include/asm-alpha/hardirq.h
+++ b/include/asm-alpha/hardirq.h
@@ -79,7 +79,7 @@ typedef struct {
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
#define in_atomic() (preempt_count() != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-alpha/kmap_types.h b/include/asm-alpha/kmap_types.h
index e7e1f7c8d148..3d10cd3ea75f 100644
--- a/include/asm-alpha/kmap_types.h
+++ b/include/asm-alpha/kmap_types.h
@@ -5,7 +5,7 @@
#include <linux/config.h>
-#if CONFIG_DEBUG_HIGHMEM
+#ifdef CONFIG_DEBUG_HIGHMEM
# define D(n) __KM_FENCE_##n ,
#else
# define D(n)
diff --git a/include/asm-alpha/spinlock.h b/include/asm-alpha/spinlock.h
index 6bcb25bf29b0..bab905918612 100644
--- a/include/asm-alpha/spinlock.h
+++ b/include/asm-alpha/spinlock.h
@@ -16,7 +16,7 @@
typedef struct {
volatile unsigned int lock /*__attribute__((aligned(32))) */;
-#if CONFIG_DEBUG_SPINLOCK
+#ifdef CONFIG_DEBUG_SPINLOCK
int on_cpu;
int line_no;
void *previous;
@@ -25,7 +25,7 @@ typedef struct {
#endif
} spinlock_t;
-#if CONFIG_DEBUG_SPINLOCK
+#ifdef CONFIG_DEBUG_SPINLOCK
#define SPIN_LOCK_UNLOCKED (spinlock_t) {0, -1, 0, 0, 0, 0}
#define spin_lock_init(x) \
((x)->lock = 0, (x)->on_cpu = -1, (x)->previous = 0, (x)->task = 0)
@@ -37,7 +37,7 @@ typedef struct {
#define spin_is_locked(x) ((x)->lock != 0)
#define spin_unlock_wait(x) ({ do { barrier(); } while ((x)->lock); })
-#if CONFIG_DEBUG_SPINLOCK
+#ifdef CONFIG_DEBUG_SPINLOCK
extern void _raw_spin_unlock(spinlock_t * lock);
extern void debug_spin_lock(spinlock_t * lock, const char *, int);
extern int debug_spin_trylock(spinlock_t * lock, const char *, int);
@@ -102,7 +102,7 @@ typedef struct {
#define rwlock_init(x) do { *(x) = RW_LOCK_UNLOCKED; } while(0)
#define rwlock_is_locked(x) (*(volatile int *)(x) != 0)
-#if CONFIG_DEBUG_RWLOCK
+#ifdef CONFIG_DEBUG_RWLOCK
extern void _raw_write_lock(rwlock_t * lock);
extern void _raw_read_lock(rwlock_t * lock);
#else
diff --git a/include/asm-h8300/hardirq.h b/include/asm-h8300/hardirq.h
index 964e681be733..20f3571cc299 100644
--- a/include/asm-h8300/hardirq.h
+++ b/include/asm-h8300/hardirq.h
@@ -74,13 +74,13 @@ typedef struct {
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
# define IRQ_EXIT_OFFSET HARDIRQ_OFFSET
#endif
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() (preempt_count() != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-ia64/hardirq.h b/include/asm-ia64/hardirq.h
index 54be084906ee..b22a6fed7c05 100644
--- a/include/asm-ia64/hardirq.h
+++ b/include/asm-ia64/hardirq.h
@@ -85,7 +85,7 @@
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-ia64/kmap_types.h b/include/asm-ia64/kmap_types.h
index d54e19055e6c..bc777525fa12 100644
--- a/include/asm-ia64/kmap_types.h
+++ b/include/asm-ia64/kmap_types.h
@@ -3,7 +3,7 @@
#include <linux/config.h>
-#if CONFIG_DEBUG_HIGHMEM
+#ifdef CONFIG_DEBUG_HIGHMEM
# define D(n) __KM_FENCE_##n ,
#else
# define D(n)
diff --git a/include/asm-ia64/sn/addrs.h b/include/asm-ia64/sn/addrs.h
index fa31d2fff5ff..e77dd4b29bf6 100644
--- a/include/asm-ia64/sn/addrs.h
+++ b/include/asm-ia64/sn/addrs.h
@@ -215,7 +215,7 @@
#define REMOTE_HUB_ADDR(_n, _x) (HUBREG_CAST (NODE_SWIN_BASE(_n, 1) + \
0x800000 + (_x)))
#endif
-#if CONFIG_IA64_SGI_SN1
+#ifdef CONFIG_IA64_SGI_SN1
#define REMOTE_HUB_PI_ADDR(_n, _sn, _x) (HUBREG_CAST (NODE_SWIN_BASE(_n, 1) + \
0x800000 + PIREG(_x, _sn)))
#endif
diff --git a/include/asm-m68k/hardirq.h b/include/asm-m68k/hardirq.h
index 5a5db2a7718e..a325c74ba8cc 100644
--- a/include/asm-m68k/hardirq.h
+++ b/include/asm-m68k/hardirq.h
@@ -73,7 +73,7 @@ typedef struct {
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() (preempt_count() != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-m68knommu/hardirq.h b/include/asm-m68knommu/hardirq.h
index 6e8670859dd9..f8dbdf2de0e7 100644
--- a/include/asm-m68knommu/hardirq.h
+++ b/include/asm-m68knommu/hardirq.h
@@ -72,13 +72,13 @@ typedef struct {
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
# define IRQ_EXIT_OFFSET HARDIRQ_OFFSET
#endif
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() (preempt_count() != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-parisc/hardirq.h b/include/asm-parisc/hardirq.h
index 72c49f434b11..dc9b4b73886b 100644
--- a/include/asm-parisc/hardirq.h
+++ b/include/asm-parisc/hardirq.h
@@ -87,7 +87,7 @@ typedef struct {
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# error CONFIG_PREEMT currently not supported.
# define in_atomic() BUG()
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
diff --git a/include/asm-parisc/kmap_types.h b/include/asm-parisc/kmap_types.h
index bc8bff06d35b..6886a0c3fedf 100644
--- a/include/asm-parisc/kmap_types.h
+++ b/include/asm-parisc/kmap_types.h
@@ -3,7 +3,7 @@
#include <linux/config.h>
-#if CONFIG_DEBUG_HIGHMEM
+#ifdef CONFIG_DEBUG_HIGHMEM
# define D(n) __KM_FENCE_##n ,
#else
# define D(n)
diff --git a/include/asm-ppc/hardirq.h b/include/asm-ppc/hardirq.h
index f83d013093f7..fe936aebf038 100644
--- a/include/asm-ppc/hardirq.h
+++ b/include/asm-ppc/hardirq.h
@@ -82,7 +82,7 @@ typedef struct {
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-ppc/spinlock.h b/include/asm-ppc/spinlock.h
index 8c3cabafe674..a754e377086e 100644
--- a/include/asm-ppc/spinlock.h
+++ b/include/asm-ppc/spinlock.h
@@ -17,7 +17,7 @@ typedef struct {
} spinlock_t;
#ifdef __KERNEL__
-#if CONFIG_DEBUG_SPINLOCK
+#ifdef CONFIG_DEBUG_SPINLOCK
#define SPINLOCK_DEBUG_INIT , 0, 0
#else
#define SPINLOCK_DEBUG_INIT /* */
@@ -86,7 +86,7 @@ typedef struct {
#endif
} rwlock_t;
-#if CONFIG_DEBUG_SPINLOCK
+#ifdef CONFIG_DEBUG_SPINLOCK
#define RWLOCK_DEBUG_INIT , 0
#else
#define RWLOCK_DEBUG_INIT /* */
diff --git a/include/asm-s390/hardirq.h b/include/asm-s390/hardirq.h
index 49218029d753..bf4fff61f6e1 100644
--- a/include/asm-s390/hardirq.h
+++ b/include/asm-s390/hardirq.h
@@ -82,7 +82,7 @@ extern void do_call_softirq(void);
#define invoke_softirq() do_call_softirq()
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() (in_interrupt() || preempt_count() == PREEMPT_ACTIVE)
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-sparc/hardirq.h b/include/asm-sparc/hardirq.h
index 04644f2f2930..739dffa31747 100644
--- a/include/asm-sparc/hardirq.h
+++ b/include/asm-sparc/hardirq.h
@@ -89,7 +89,7 @@ typedef struct {
#ifndef CONFIG_SMP
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() (preempt_count() != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
@@ -115,7 +115,7 @@ do { \
#define irq_exit() br_read_unlock(BR_GLOBALIRQ_LOCK)
#endif
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() (preempt_count() != kernel_locked())
#else
# define in_atomic() (preempt_count() != 0)
diff --git a/include/asm-sparc64/hardirq.h b/include/asm-sparc64/hardirq.h
index 9657368f4ad2..44a4e97f4793 100644
--- a/include/asm-sparc64/hardirq.h
+++ b/include/asm-sparc64/hardirq.h
@@ -84,7 +84,7 @@ typedef struct {
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() (preempt_count() != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h
index 568a80bc0336..961a6af9b44b 100644
--- a/include/asm-um/pgtable.h
+++ b/include/asm-um/pgtable.h
@@ -71,7 +71,7 @@ extern unsigned long high_physmem;
#define VMALLOC_START (((unsigned long) high_physmem + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
#define VMALLOC_VMADDR(x) ((unsigned long)(x))
-#if CONFIG_HIGHMEM
+#ifdef CONFIG_HIGHMEM
# define VMALLOC_END (PKMAP_BASE-2*PAGE_SIZE)
#else
# define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE)
diff --git a/include/asm-v850/hardirq.h b/include/asm-v850/hardirq.h
index a093bf233ebd..7bb8bf4f1fdf 100644
--- a/include/asm-v850/hardirq.h
+++ b/include/asm-v850/hardirq.h
@@ -72,7 +72,7 @@ typedef struct {
#define irq_enter() (preempt_count() += HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() (preempt_count() != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/asm-x86_64/hardirq.h b/include/asm-x86_64/hardirq.h
index a9c415b00b89..60530fc41be0 100644
--- a/include/asm-x86_64/hardirq.h
+++ b/include/asm-x86_64/hardirq.h
@@ -81,7 +81,7 @@ typedef struct {
#define nmi_exit() (preempt_count() -= HARDIRQ_OFFSET)
-#if CONFIG_PREEMPT
+#ifdef CONFIG_PREEMPT
# define in_atomic() ((preempt_count() & ~PREEMPT_ACTIVE) != kernel_locked())
# define IRQ_EXIT_OFFSET (HARDIRQ_OFFSET-1)
#else
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 4c53e7bbcc25..6e0fc430b428 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -304,7 +304,7 @@ extern unsigned long blk_max_low_pfn, blk_max_pfn;
#define BLK_BOUNCE_ANY ((u64)blk_max_pfn << PAGE_SHIFT)
#define BLK_BOUNCE_ISA (ISA_DMA_THRESHOLD)
-#if CONFIG_MMU
+#ifdef CONFIG_MMU
extern int init_emergency_isa_pool(void);
extern void blk_queue_bounce(request_queue_t *q, struct bio **bio);
#else
diff --git a/kernel/exit.c b/kernel/exit.c
index b393a46247c4..c4130eb03ca1 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -756,7 +756,7 @@ task_t *next_thread(task_t *p)
struct pid_link *link = p->pids + PIDTYPE_TGID;
struct list_head *tmp, *head = &link->pidptr->task_list;
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
if (!p->sighand)
BUG();
if (!spin_is_locked(&p->sighand->siglock) &&
diff --git a/kernel/ksyms.c b/kernel/ksyms.c
index 07ff11d7b6d2..cd8f9810ddc9 100644
--- a/kernel/ksyms.c
+++ b/kernel/ksyms.c
@@ -447,7 +447,7 @@ EXPORT_SYMBOL(iomem_resource);
EXPORT_SYMBOL(complete_and_exit);
EXPORT_SYMBOL(default_wake_function);
EXPORT_SYMBOL(__wake_up);
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
EXPORT_SYMBOL_GPL(__wake_up_sync); /* internal use only */
#endif
EXPORT_SYMBOL(wake_up_process);
@@ -465,10 +465,10 @@ EXPORT_SYMBOL(__cond_resched);
EXPORT_SYMBOL(set_user_nice);
EXPORT_SYMBOL(task_nice);
EXPORT_SYMBOL_GPL(idle_cpu);
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
EXPORT_SYMBOL_GPL(set_cpus_allowed);
#endif
-#if CONFIG_SMP || CONFIG_PREEMPT
+#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
EXPORT_SYMBOL(kernel_flag);
#endif
EXPORT_SYMBOL(jiffies);
diff --git a/kernel/sched.c b/kernel/sched.c
index 97bbf5eddd5b..1b43c81a49ed 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -863,7 +863,7 @@ static int find_busiest_node(int this_node)
#endif /* CONFIG_NUMA */
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
/*
* double_lock_balance - lock the busiest runqueue
@@ -1309,7 +1309,7 @@ need_resched:
}
pick_next_task:
if (unlikely(!rq->nr_running)) {
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
load_balance(rq, 1, cpu_to_node_mask(smp_processor_id()));
if (rq->nr_running)
goto pick_next_task;
@@ -1440,7 +1440,7 @@ void __wake_up_locked(wait_queue_head_t *q, unsigned int mode)
__wake_up_common(q, mode, 1, 0);
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
/**
* __wake_up - sync- wake up threads blocked on a waitqueue.
@@ -2261,7 +2261,7 @@ void __init init_idle(task_t *idle, int cpu)
#endif
}
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
/*
* This is how migration works:
*
@@ -2443,7 +2443,7 @@ __init int migration_init(void)
#endif
-#if CONFIG_SMP || CONFIG_PREEMPT
+#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
/*
* The 'big kernel lock'
*
diff --git a/kernel/signal.c b/kernel/signal.c
index dae415f8785a..0baa17479014 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -761,7 +761,7 @@ specific_send_sig_info(int sig, struct siginfo *info, struct task_struct *t)
if (!irqs_disabled())
BUG();
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
if (!spin_is_locked(&t->sighand->siglock))
BUG();
#endif
@@ -846,7 +846,7 @@ __group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
unsigned int mask;
int ret = 0;
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
if (!spin_is_locked(&p->sighand->siglock))
BUG();
#endif
diff --git a/kernel/timer.c b/kernel/timer.c
index caa37716f860..7461b8897e70 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -905,7 +905,7 @@ asmlinkage long sys_getppid(void)
parent = me->group_leader->real_parent;
for (;;) {
pid = parent->tgid;
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
{
struct task_struct *old = parent;
diff --git a/net/core/dev.c b/net/core/dev.c
index 82bc8f0c47cb..4093697ff18e 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1392,7 +1392,7 @@ static int deliver_to_old_ones(struct packet_type *pt,
if (skb_is_nonlinear(skb) && skb_linearize(skb, GFP_ATOMIC))
goto out_kfree;
-#if CONFIG_SMP
+#ifdef CONFIG_SMP
/* Old protocols did not depened on BHs different of NET_BH and
TIMER_BH - they need to be fixed for the new assumptions.
*/
diff --git a/net/irda/irlap.c b/net/irda/irlap.c
index fbf4528ecf24..59b08f0d698c 100644
--- a/net/irda/irlap.c
+++ b/net/irda/irlap.c
@@ -1117,7 +1117,7 @@ int irlap_proc_read(char *buf, char **start, off_t offset, int len)
len += sprintf(buf+len, " win size: %d, ",
self->window_size);
len += sprintf(buf+len, "win: %d, ", self->window);
-#if CONFIG_IRDA_DYNAMIC_WINDOW
+#ifdef CONFIG_IRDA_DYNAMIC_WINDOW
len += sprintf(buf+len, "line capacity: %d, ",
self->line_capacity);
len += sprintf(buf+len, "bytes left: %d\n", self->bytes_left);
diff --git a/net/irda/irlap_event.c b/net/irda/irlap_event.c
index 7a287af30a9d..975c30d3d119 100644
--- a/net/irda/irlap_event.c
+++ b/net/irda/irlap_event.c
@@ -43,7 +43,7 @@
#include <net/irda/irda_device.h>
-#if CONFIG_IRDA_FAST_RR
+#ifdef CONFIG_IRDA_FAST_RR
int sysctl_fast_poll_increase = 50;
#endif
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 8bfd99946ddb..9cfe2f73d0c2 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -448,7 +448,7 @@ err_bindx_add:
* --daisy
*/
-#if CONFIG_IP_SCTP_ADDIP
+#ifdef CONFIG_IP_SCTP_ADDIP
/* Add these addresses to all associations on this endpoint. */
if (retval >= 0) {
struct list_head *pos;
@@ -568,7 +568,7 @@ err_bindx_rem:
* ADDIP code.
* --daisy
*/
-#if CONFIG_IP_SCTP_ADDIP
+#ifdef CONFIG_IP_SCTP_ADDIP
/* Remove these addresses from all associations on this endpoint. */
if (retval >= 0) {
struct list_head *pos;