--- zzzz-none-000/linux-2.4.17/include/linux/init.h 2001-12-21 17:42:03.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/include/linux/init.h 2004-11-24 13:21:40.000000000 +0000 @@ -75,6 +75,21 @@ * Mark functions and data as being only used at initialization * or exit time. */ + +#ifdef CONFIG_REMOTE_DEBUG_NO_INIT +#define __init +#define __exit +#define __initdata +#define __exitdata +#define __initsetup __attribute__ ((unused,__section__ (".setup.init"))) +#define __init_call __attribute__ ((unused,__section__ (".initcall.init"))) +#define __exit_call __attribute__ ((unused,__section__ (".exitcall.exit"))) + +/* For assembly routines */ +#define __INIT +#define __FINIT +#define __INITDATA +#else #define __init __attribute__ ((__section__ (".text.init"))) #define __exit __attribute__ ((unused, __section__(".text.exit"))) #define __initdata __attribute__ ((__section__ (".data.init"))) @@ -87,6 +102,7 @@ #define __INIT .section ".text.init","ax" #define __FINIT .previous #define __INITDATA .section ".data.init","aw" +#endif /** * module_init() - driver initialization entry point