From: "H. J. Lu" <hjl@lucon.org>
To: ismail donmez <voidcartman@yahoo.com>
Cc: linux kernel <linux-kernel@vger.kernel.org>,
GNU C Library <libc-alpha@sources.redhat.com>
Subject: Re: Recent binutils releases and linux kernel 2.5.69+
Date: Thu, 29 May 2003 08:49:48 -0700 [thread overview]
Message-ID: <20030529084948.A30796@lucon.org> (raw)
In-Reply-To: <20030529150446.99966.qmail@web41011.mail.yahoo.com>; from voidcartman@yahoo.com on Thu, May 29, 2003 at 08:04:46AM -0700
This is a kernel issue and should be fixed in kernel unless we want
to do something in <sys/sysctl.h>.
H.J.
---
--- include/linux/sysctl.h.user 2003-05-29 07:36:51.000000000 -0700
+++ include/linux/sysctl.h 2003-05-29 08:47:21.000000000 -0700
@@ -28,6 +28,11 @@
#include <linux/types.h>
#include <linux/list.h>
+#ifdefine __KERNEL__
+#undef __user
+#define __user
+#endif
+
struct file;
#define CTL_MAXNAME 10 /* how many path components do we allow in a
On Thu, May 29, 2003 at 08:04:46AM -0700, ismail donmez wrote:
>
> --- "H. J. Lu" <hjl@lucon.org> wrote:
> > What is the problem? Does linux/sysctl.h include
> > linux/compiler.h?
> No it doesnt include it directly. It includes
> linux/kernel.h and linux/kernel.h does a trick like
>
> #ifdef __KERNEL__
> .......
> #include <linux/compiler.h>
>
> So we never get __user defined.
>
> > Does your compiler define __CHECKER__?
> >
> No.
>
> Would it be too bad to a trick like
>
> #include <linux/version.h>
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,70)
> #define __user
> #endif
>
> What do you think?
>
> Regards,
> /ismail
>
> =====
> Microsoft Windows: made for the internet
> The Internet: made for UNIX
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
next parent reply other threads:[~2003-05-29 15:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030529074448.A29931@lucon.org>
[not found] ` <20030529150446.99966.qmail@web41011.mail.yahoo.com>
2003-05-29 15:49 ` H. J. Lu [this message]
2003-05-29 16:03 ` Recent binutils releases and linux kernel 2.5.69+ Christoph Hellwig
2003-05-29 16:21 ` ismail (cartman) donmez
2003-05-29 16:59 ` H. J. Lu
2003-05-30 8:48 ` Christoph Hellwig
2003-05-30 9:45 ` ismail (cartman) donmez
2003-05-30 9:48 ` Christoph Hellwig
2003-05-30 9:59 ` ismail (cartman) donmez
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=20030529084948.A30796@lucon.org \
--to=hjl@lucon.org \
--cc=libc-alpha@sources.redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=voidcartman@yahoo.com \
/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