diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-01 02:24:37 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-01 02:24:37 -0700 |
| commit | 6ce8ea8a4590fa59e8987392960983254fdfc16e (patch) | |
| tree | ceec4d8f47856b51c36a231eefa9e93961d8e947 | |
| parent | 21366d93f295975ecbe3adf2f78749e00ff20893 (diff) | |
Use "ifdef" rather than "if" to test for __KERNEL__
Both work, but the latter can cause warnings in user space
from compilers that don't like using undefined identifiers
in preprocessor expressions (quite reasonable).
Pointed out by Randy Dunlap.
| -rw-r--r-- | include/asm-ia64/sn/sn2/shubio.h | 2 | ||||
| -rw-r--r-- | include/asm-ia64/sn/xtalk/xtalk.h | 2 | ||||
| -rw-r--r-- | include/asm-ia64/sn/xtalk/xwidget.h | 2 | ||||
| -rw-r--r-- | include/linux/kobject.h | 2 | ||||
| -rw-r--r-- | include/linux/kref.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/include/asm-ia64/sn/sn2/shubio.h b/include/asm-ia64/sn/sn2/shubio.h index ac3b00a2de73..e984c5718848 100644 --- a/include/asm-ia64/sn/sn2/shubio.h +++ b/include/asm-ia64/sn/sn2/shubio.h @@ -3384,7 +3384,7 @@ typedef ii_icrb0_e_u_t icrbe_t; #define IO_PERF_SETS 32 -#if __KERNEL__ +#ifdef __KERNEL__ #include <asm/sn/dmamap.h> #include <asm/sn/driver.h> #include <asm/sn/xtalk/xtalk.h> diff --git a/include/asm-ia64/sn/xtalk/xtalk.h b/include/asm-ia64/sn/xtalk/xtalk.h index b65da047ba21..5475454b7376 100644 --- a/include/asm-ia64/sn/xtalk/xtalk.h +++ b/include/asm-ia64/sn/xtalk/xtalk.h @@ -55,7 +55,7 @@ typedef struct xtalk_piomap_s *xtalk_piomap_t; /* * Kernel/driver only definitions */ -#if __KERNEL__ +#ifdef __KERNEL__ #include <asm/types.h> #include <asm/sn/types.h> diff --git a/include/asm-ia64/sn/xtalk/xwidget.h b/include/asm-ia64/sn/xtalk/xwidget.h index 15a298a584ec..d265bcc6bee5 100644 --- a/include/asm-ia64/sn/xtalk/xwidget.h +++ b/include/asm-ia64/sn/xtalk/xwidget.h @@ -183,7 +183,7 @@ typedef struct xwidget_hwid_s { /* Generic crosstalk widget initialization interface */ -#if __KERNEL__ +#ifdef __KERNEL__ extern int xwidget_driver_register(xwidget_part_num_t part_num, xwidget_mfg_num_t mfg_num, diff --git a/include/linux/kobject.h b/include/linux/kobject.h index f3f20feee67b..331d25b9cc41 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -15,7 +15,7 @@ #ifndef _KOBJECT_H_ #define _KOBJECT_H_ -#if __KERNEL__ +#ifdef __KERNEL__ #include <linux/types.h> #include <linux/list.h> diff --git a/include/linux/kref.h b/include/linux/kref.h index a8a8b05ca3d0..ea5948785ebf 100644 --- a/include/linux/kref.h +++ b/include/linux/kref.h @@ -15,7 +15,7 @@ #ifndef _KREF_H_ #define _KREF_H_ -#if __KERNEL__ +#ifdef __KERNEL__ #include <linux/types.h> #include <asm/atomic.h> |
