summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 821d17e15a01..8a44ef867b35 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -3,7 +3,7 @@
*
*/
-#ifndef _KOBJECT_H_
+#if defined(__KERNEL__) && !defined(_KOBJECT_H_)
#define _KOBJECT_H_
#include <linux/types.h>