Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

module: Remove unused __INIT*_OR_MODULE macros

Remove the __INIT_OR_MODULE, __INITDATA_OR_MODULE and
__INITRODATA_OR_MODULE macros. These were introduced in commit 8b5a10fc6fd0
("x86: properly annotate alternatives.c"). Only __INITRODATA_OR_MODULE was
ever used, in arch/x86/kernel/alternative.c. In 2011, commit dc326fca2b64
("x86, cpu: Clean up and unify the NOP selection infrastructure") removed
this usage.

Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Reviewed-by: Aaron Tomlin <atomlin@atomlin.com>
Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>

authored by

Petr Pavlu and committed by
Sami Tolvanen
f13bff1b d8275cda

-6
-6
include/linux/module.h
··· 151 151 #define __init_or_module 152 152 #define __initdata_or_module 153 153 #define __initconst_or_module 154 - #define __INIT_OR_MODULE .text 155 - #define __INITDATA_OR_MODULE .data 156 - #define __INITRODATA_OR_MODULE .section ".rodata","a",%progbits 157 154 #else 158 155 #define __init_or_module __init 159 156 #define __initdata_or_module __initdata 160 157 #define __initconst_or_module __initconst 161 - #define __INIT_OR_MODULE __INIT 162 - #define __INITDATA_OR_MODULE __INITDATA 163 - #define __INITRODATA_OR_MODULE __INITRODATA 164 158 #endif /*CONFIG_MODULES*/ 165 159 166 160 struct module_kobject *lookup_or_create_module_kobject(const char *name);