X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Finit.h;h=45069e275b3dd389243fa631abfa6dd29c1e9a56;hb=9c920a8402f2bb9bd931801d429b65f4eb6a262b;hp=7a9f69992516553699058e9b8b5284a60dcd0490;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/include/linux/init.h b/include/linux/init.h index 7a9f69992..45069e275 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -66,9 +66,6 @@ typedef void (*exitcall_t)(void); extern initcall_t __con_initcall_start, __con_initcall_end; extern initcall_t __security_initcall_start, __security_initcall_end; - -/* Defined in init/main.c */ -extern char saved_command_line[]; #endif #ifndef MODULE @@ -110,39 +107,25 @@ extern char saved_command_line[]; struct obs_kernel_param { const char *str; int (*setup_func)(char *); - int early; }; -/* - * Only for really core code. See moduleparam.h for the normal way. - * - * Force the alignment so the compiler doesn't space elements of the - * obs_kernel_param "array" too far apart in .init.setup. - */ -#define __setup_param(str, unique_id, fn, early) \ +/* OBSOLETE: see moduleparam.h for the right way. */ +#define __setup_param(str, unique_id, fn) \ static char __setup_str_##unique_id[] __initdata = str; \ static struct obs_kernel_param __setup_##unique_id \ - __attribute_used__ \ - __attribute__((__section__(".init.setup"))) \ - __attribute__((aligned((sizeof(long))))) \ - = { __setup_str_##unique_id, fn, early } + __attribute_used__ \ + __attribute__((__section__(".init.setup"))) \ + = { __setup_str_##unique_id, fn } #define __setup_null_param(str, unique_id) \ - __setup_param(str, unique_id, NULL, 0) + __setup_param(str, unique_id, NULL) #define __setup(str, fn) \ - __setup_param(str, fn, fn, 0) + __setup_param(str, fn, fn) #define __obsolete_setup(str) \ __setup_null_param(str, __LINE__) -/* NOTE: fn is as per module_param, not __setup! Emits warning if fn - * returns non-zero. */ -#define early_param(str, fn) \ - __setup_param(str, fn, fn, 1) - -/* Relies on saved_command_line being set */ -void __init parse_early_param(void); #endif /* __ASSEMBLY__ */ /**