From: Paolo 'Blaisorblade' Giarrusso Date: Fri, 24 Feb 2006 21:03:55 +0000 (-0800) Subject: [PATCH] uml: fix ((unused)) attribute X-Git-Tag: v2.6.16-rc5~46 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=635dd50b7dc69b698e8808ff2802a6cfc31385a8;p=linux-2.6 [PATCH] uml: fix ((unused)) attribute Use __attribute_used__ instead of __attribute__ ((unused)). This will help with GCC > 3.2. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Acked-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/include/init.h b/arch/um/include/init.h index cbd79a8d21..d4de7c0120 100644 --- a/arch/um/include/init.h +++ b/arch/um/include/init.h @@ -122,7 +122,7 @@ extern struct uml_param __uml_setup_start, __uml_setup_end; #define __exitcall(fn) static exitcall_t __exitcall_##fn __exit_call = fn -#define __init_call __attribute__ ((unused,__section__ (".initcall.init"))) +#define __init_call __attribute_used__ __attribute__ ((__section__ (".initcall.init"))) #endif