Skip to content

Commit 6217161

Browse files
petrpavludagomez137
authored andcommitted
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 8b5a10f ("x86: properly annotate alternatives.c"). Only __INITRODATA_OR_MODULE was ever used, in arch/x86/kernel/alternative.c. In 2011, commit dc326fc ("x86, cpu: Clean up and unify the NOP selection infrastructure") removed this usage. Signed-off-by: Petr Pavlu <petr.pavlu@suse.com> Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
1 parent 1107cb7 commit 6217161

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

include/linux/module.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,10 @@ extern void cleanup_module(void);
151151
#define __init_or_module
152152
#define __initdata_or_module
153153
#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
157154
#else
158155
#define __init_or_module __init
159156
#define __initdata_or_module __initdata
160157
#define __initconst_or_module __initconst
161-
#define __INIT_OR_MODULE __INIT
162-
#define __INITDATA_OR_MODULE __INITDATA
163-
#define __INITRODATA_OR_MODULE __INITRODATA
164158
#endif /*CONFIG_MODULES*/
165159

166160
struct module_kobject *lookup_or_create_module_kobject(const char *name);

0 commit comments

Comments
 (0)