From: Andrew Morton <akpm@osdl.org>
To: Jeff Chua <jchua@fedex.com>
Cc: jeffchua@silk.corp.fedex.com, torvalds@osdl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] warning: `__attribute_used__' redefined
Date: Tue, 10 Feb 2004 08:25:14 -0800 [thread overview]
Message-ID: <20040210082514.04afde4a.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0402102150150.17289@silk.corp.fedex.com>
Jeff Chua <jchua@fedex.com> wrote:
>
> ...
> Here's output of "gcc -H sig.c" gcc 2.95.3 glibc 2.2.5 linux 2.6.3-rc2
>
>
> /usr/include/signal.h
> /usr/include/features.h
> /usr/include/sys/cdefs.h
> /usr/include/gnu/stubs.h
> /usr/include/bits/sigset.h
> /usr/include/bits/types.h
> /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/include/stddef.h
> /usr/include/bits/pthreadtypes.h
> /usr/include/bits/sched.h
> /usr/include/bits/signum.h
> /usr/include/time.h
> /usr/include/bits/siginfo.h
> /usr/include/bits/wordsize.h
> /usr/include/bits/sigaction.h
> /usr/include/bits/sigcontext.h
> /usr/include/asm/sigcontext.h
> /usr/include/linux/compiler.h
> /usr/include/linux/compiler-gcc2.h
> /usr/include/linux/compiler-gcc.h
> In file included from /usr/include/linux/compiler.h:18,
> from /usr/include/asm/sigcontext.h:4,
> from /usr/include/bits/sigcontext.h:28,
> from /usr/include/signal.h:307,
> from sig.c:1:
> /usr/include/linux/compiler-gcc2.h:21: warning: `__attribute_used__' redefined
ah, thanks.
Like this?
--- 25/include/asm-i386/sigcontext.h~sigcontext-include-fix 2004-02-10 08:23:47.000000000 -0800
+++ 25-akpm/include/asm-i386/sigcontext.h 2004-02-10 08:24:18.000000000 -0800
@@ -1,7 +1,9 @@
#ifndef _ASMi386_SIGCONTEXT_H
#define _ASMi386_SIGCONTEXT_H
+#ifdef __KERNEL__
#include <linux/compiler.h>
+#endif
/*
* As documented in the iBCS2 standard..
_
next prev parent reply other threads:[~2004-02-10 16:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-10 6:39 [PATCH] warning: `__attribute_used__' redefined Jeff Chua
2004-02-10 6:53 ` Andrew Morton
2004-02-10 13:59 ` Jeff Chua
2004-02-10 16:25 ` Andrew Morton [this message]
2004-02-10 16:31 ` Linus Torvalds
2004-02-10 17:10 ` Daniel Jacobowitz
2004-02-10 17:18 ` Linus Torvalds
2004-02-10 17:28 ` Valdis.Kletnieks
2004-02-10 17:37 ` Andrew Morton
2004-02-11 13:07 ` Jeff Chua
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=20040210082514.04afde4a.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=jchua@fedex.com \
--cc=jeffchua@silk.corp.fedex.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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 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.