lkml.org 
[lkml]   [2004]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] warning: `__attribute_used__' redefined
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..
_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.151 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site