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 /include/linux/kref.h | |
| 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.
Diffstat (limited to 'include/linux/kref.h')
| -rw-r--r-- | include/linux/kref.h | 2 |
1 files changed, 1 insertions, 1 deletions
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> |
