From: Jeff Garzik <jgarzik@pobox.com>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [Fwd: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h]
Date: Sat, 19 Jul 2003 23:59:23 -0400 [thread overview]
Message-ID: <3F1A139B.3090708@pobox.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 0 bytes --]
[-- Attachment #2: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h --]
[-- Type: message/rfc822, Size: 2824 bytes --]
From: Thomas Graf <tgraf@suug.ch>
To: netdev@oss.sgi.com
Subject: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h
Date: Sun, 20 Jul 2003 04:55:29 +0200
Message-ID: <20030720025528.GA30577@rei.rakuen>
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>
next reply other threads:[~2003-07-20 3:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-20 3:59 Jeff Garzik [this message]
2003-07-20 6:19 ` [Fwd: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h] Christoph Hellwig
2003-07-20 6:25 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F1A139B.3090708@pobox.com \
--to=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox