From: Stephen Boyd Date: Sat, 16 Jul 2011 13:31:12 +0000 (+1000) Subject: If CONFIG_IKCONFIG=m but CONFIG_IKCONFIG_PROC=n we get a module that has X-Git-Tag: next-20110726~2^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=abccb56c7f828ec28a044a9f0aeb982099db9c00;p=karo-tx-linux.git If CONFIG_IKCONFIG=m but CONFIG_IKCONFIG_PROC=n we get a module that has no MODULE_LICENSE definition. Move the MODULE_*() definitions outside the CONFIG_IKCONFIG_PROC #ifdef to prevent this configuration from tainting the kernel. Signed-off-by: Stephen Boyd Acked-by: Randy Dunlap Acked-by: WANG Cong Signed-off-by: Andrew Morton --- diff --git a/kernel/configs.c b/kernel/configs.c index b4066b44a99d..42e8fa075eed 100644 --- a/kernel/configs.c +++ b/kernel/configs.c @@ -92,8 +92,8 @@ static void __exit ikconfig_cleanup(void) module_init(ikconfig_init); module_exit(ikconfig_cleanup); +#endif /* CONFIG_IKCONFIG_PROC */ + MODULE_LICENSE("GPL"); MODULE_AUTHOR("Randy Dunlap"); MODULE_DESCRIPTION("Echo the kernel .config file used to build the kernel"); - -#endif /* CONFIG_IKCONFIG_PROC */