From: Jun Sun <jsun@mvista.com>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: gcc 3.x, -ansi and "static inline"
Date: Mon, 04 Feb 2002 14:56:43 -0800 [thread overview]
Message-ID: <3C5F11AB.957DDA6C@mvista.com> (raw)
In-Reply-To: 20020204232108.A7266@dea.linux-mips.net
Ralf Baechle wrote:
>
> On Mon, Feb 04, 2002 at 11:28:16AM -0800, Jun Sun wrote:
>
> > > On Fri, Feb 01, 2002 at 11:52:06AM -0800, Jun Sun wrote:
> > >
> > > > BTW, the inclusion of "mipsregs.h" file in bitops.h seems unnecessary
> > > > and caused a bunch of similar errors.
> > >
> > > Indeed, it was pointless and I therefore removed it.
> >
> > What about ffz()? We can do:
>
> Including kernel header files into user code is the actual bug
In theory, yes. In practice, kernel head is all a big mesh where we don't
have a clear division as which part can go to userland and which part can't.
The inline function makes mesh even meshier.
> but if
> you think fixing that isn't an option I can certainly so a
> s/inline/__inline__/
>
I think this is the case. See the inclusion chain below. BTW, the app is
libcap.
In file included from
/opt/hardhat/devkit/mips/sb1_fp_be/target/usr/include/linux/fs.h:26,
from
/opt/hardhat/devkit/mips/sb1_fp_be/target/usr/include/linux/capability.h:17,
from
/var/tmp/BUILD/libcap-1.10.orig/libcap/include/sys/capability.h:24,
from libcap.h:19,
from cap_alloc.c:12:
/opt/hardhat/devkit/mips/sb1_fp_be/target/usr/include/asm/bitops.h:678: syntax
error before "unsigned"
Jun
next prev parent reply other threads:[~2002-02-04 22:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-01 19:52 gcc 3.x, -ansi and "static inline" Jun Sun
2002-02-02 9:17 ` Geert Uytterhoeven
2002-02-03 17:01 ` Ralf Baechle
2002-02-04 19:28 ` Jun Sun
2002-02-04 22:21 ` Ralf Baechle
2002-02-04 22:56 ` Jun Sun [this message]
2002-02-04 23:01 ` Ralf Baechle
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=3C5F11AB.957DDA6C@mvista.com \
--to=jsun@mvista.com \
--cc=linux-mips@oss.sgi.com \
--cc=ralf@oss.sgi.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