diff options
author | kaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk> | 2004-09-09 23:33:20 +0000 |
---|---|---|
committer | kaf24@freefall.cl.cam.ac.uk <kaf24@freefall.cl.cam.ac.uk> | 2004-09-09 23:33:20 +0000 |
commit | 1fc9a9892bc5f96325f453355e5b79f3c77c61ac (patch) | |
tree | fba158c13493de4f27675853b055812226f7363b /xen/include/xen/init.h | |
parent | 8c5464dd34090c82c49da62bfb571dffa02fba06 (diff) | |
download | xen-1fc9a9892bc5f96325f453355e5b79f3c77c61ac.tar.gz xen-1fc9a9892bc5f96325f453355e5b79f3c77c61ac.tar.bz2 xen-1fc9a9892bc5f96325f453355e5b79f3c77c61ac.zip |
bitkeeper revision 1.1159.1.145 (4140e840rdAgNzGs4H22eopT-ononA)
Fix Xen for recent GCC.
Diffstat (limited to 'xen/include/xen/init.h')
-rw-r--r-- | xen/include/xen/init.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xen/include/xen/init.h b/xen/include/xen/init.h index 4b0589befd..7e66567a5b 100644 --- a/xen/include/xen/init.h +++ b/xen/include/xen/init.h @@ -67,7 +67,7 @@ extern struct kernel_param __setup_start, __setup_end; #define __setup(str, fn) \ static char __setup_str_##fn[] __initdata = str; \ - static struct kernel_param __setup_##fn __attribute__((unused)) __initsetup = { __setup_str_##fn, fn } + static struct kernel_param __setup_##fn __attribute_used__ __initsetup = { __setup_str_##fn, fn } #endif /* __ASSEMBLY__ */ @@ -76,12 +76,12 @@ extern struct kernel_param __setup_start, __setup_end; * or exit time. */ #define __init __attribute__ ((__section__ (".text.init"))) -#define __exit __attribute__ ((unused, __section__(".text.exit"))) +#define __exit __attribute_used__ __attribute__ ((__section__(".text.exit"))) #define __initdata __attribute__ ((__section__ (".data.init"))) -#define __exitdata __attribute__ ((unused, __section__ (".data.exit"))) -#define __initsetup __attribute__ ((unused,__section__ (".setup.init"))) -#define __init_call __attribute__ ((unused,__section__ (".initcall.init"))) -#define __exit_call __attribute__ ((unused,__section__ (".exitcall.exit"))) +#define __exitdata __attribute_used__ __attribute__ ((__section__ (".data.exit"))) +#define __initsetup __attribute_used__ __attribute__ ((__section__ (".setup.init"))) +#define __init_call __attribute_used__ __attribute__ ((__section__ (".initcall.init"))) +#define __exit_call __attribute_used__ __attribute__ ((__section__ (".exitcall.exit"))) /* For assembly routines */ #define __INIT .section ".text.init","ax" |