kernel/configs.c: include MODULE_*() when CONFIG_IKCONFIG_PROC=n
authorStephen Boyd <[email protected]>
Tue, 26 Jul 2011 00:13:12 +0000 (17:13 -0700)
committerLinus Torvalds <[email protected]>
Tue, 26 Jul 2011 03:57:15 +0000 (20:57 -0700)
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 <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Acked-by: WANG Cong <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/configs.c

index b4066b44a99d09996555b8a233855cc3e637559a..42e8fa075eed011d1577b5b2d40d5ef1e7df73f4 100644 (file)
@@ -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 */