All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] missing __KERNEL__ ifdef in include/linux/device.h
@ 2003-07-20  2:55 Thomas Graf
  0 siblings, 0 replies; only message in thread
From: Thomas Graf @ 2003-07-20  2:55 UTC (permalink / raw)
  To: netdev

Hello

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 1.1.1.2
diff -u -r1.1.1.2 device.h
--- include/linux/device.h	10 Jul 2003 22:58:31 -0000	1.1.1.2
+++ 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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-20  2:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-20  2:55 [PATCH] missing __KERNEL__ ifdef in include/linux/device.h Thomas Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.