From: Dan Streetman <ddstreet@ieee.org>
To: linux-kernel@vger.kernel.org
Subject: [patch] mod_devicetable.h needs #ifdef __KERNEL__ removed
Date: Fri, 10 Sep 2004 15:43:23 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.51.0409101533220.27308@dylan.root.cx> (raw)
In include/linux/mod_devicetable.h, there is a typedef for
kernel_ulong_t that is protected inside a #ifdef __KERNEL__ block.
However later in the file kernel_ulong_t is used inside structures, not
protected by a #ifdef __KERNEL__. So the header file isn't includable by
user-space programs. The #ifdef should be removed, here is a patch that
removes it.
Signed-off-by: Dan Streetman <ddstreet@ieee.org>
--- linux-2.6.8.1-clean/include/linux/mod_devicetable.h 2004-08-14 06:56:23.000000000 -0400
+++ linux-2.6.8.1/include/linux/mod_devicetable.h 2004-09-10 15:31:00.000000000 -0400
@@ -7,10 +7,8 @@
#ifndef LINUX_MOD_DEVICETABLE_H
#define LINUX_MOD_DEVICETABLE_H
-#ifdef __KERNEL__
#include <linux/types.h>
typedef unsigned long kernel_ulong_t;
-#endif
#define PCI_ANY_ID (~0)
reply other threads:[~2004-09-10 19:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.51.0409101533220.27308@dylan.root.cx \
--to=ddstreet@ieee.org \
--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
all inboxes | Powered by JetHome®