diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 7823da595953bcff2c5e50bb26cf2ab7ae1a2892..378777e11e94fde347f98fb3e4e5230a1aa649d7 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -29,11 +29,11 @@
 #include <linux/if_ether.h>
 #include <linux/if_packet.h>
 
+#ifdef __KERNEL__
 #include <asm/atomic.h>
 #include <asm/cache.h>
 #include <asm/byteorder.h>
 
-#ifdef __KERNEL__
 #include <linux/config.h>
 #include <linux/device.h>
 #include <linux/percpu.h>