summaryrefslogtreecommitdiff
path: root/include/linux/kref.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-01 02:24:37 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-01 02:24:37 -0700
commit6ce8ea8a4590fa59e8987392960983254fdfc16e (patch)
treeceec4d8f47856b51c36a231eefa9e93961d8e947 /include/linux/kref.h
parent21366d93f295975ecbe3adf2f78749e00ff20893 (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.h2
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>