[Fwd: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h]

From: Jeff Garzik (jgarzik@pobox.com)
Date: Sat Jul 19 2003 - 22:59:23 EST

attached mail follows:


device.h should be protected with __KERNEL__ because it uses
__KERNEL__ protected structures. Userspace applications
including if_arp.h such as iproute2 will fail because
it finally includes device.h as well.

 - thomas

Index: include/linux/device.h
RCS file: /cvs/tgr/linux-25/include/linux/device.h,v
retrieving revision
diff -u -r1.1.1.2 device.h
--- include/linux/device.h 10 Jul 2003 22:58:31 -0000
+++ include/linux/device.h 20 Jul 2003 02:49:12 -0000
@@ -8,7 +8,7 @@
  * See Documentation/driver-model/ for more information.
-#ifndef _DEVICE_H_
+#if defined __KERNEL__ && !defined _DEVICE_H_
 #define _DEVICE_H_
 #include <linux/config.h>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:39 EST