[PATCH] #if versus #ifdef cleanup
authorAndrew Morton <akpm@osdl.org>
Wed, 18 Feb 2004 12:50:10 +0000 (04:50 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 Feb 2004 12:50:10 +0000 (04:50 -0800)
commitc65febbb18a998a9aeb23caec312d08105753652
treed9ea0efc32116cbc6aea064de287c245479397f6
parentb7df53b3b5e3f74e6dbc943e6ae077e8077d0da9
[PATCH] #if versus #ifdef cleanup

From: Valdis.Kletnieks@vt.edu

15 changes of #if to #ifdef and 2 places CONFIG_FOO should be
defined(CONFIG_FOO).  This gets rid of spurious warnings if you build with
"-Wundef" so you get a warning if you have a preprocessor command like:

#if CONFIG_ETRAX_DS1302_RSTBIT == 27

and you'll be told if it's substituting a zero rather than silent
weirdness and unexpected code generation.
13 files changed:
arch/ia64/sn/kernel/irq.c
drivers/char/mem.c
drivers/mtd/maps/solutionengine.c
drivers/net/depca.c
drivers/net/tulip/de4x5.c
include/asm-i386/module.h
include/asm-mips/hardirq.h
include/asm-mips/pgtable-32.h
include/asm-mips/topology.h
include/asm-sh/hardirq.h
include/asm-sh/kmap_types.h
lib/crc32.c
net/ipv6/af_inet6.c