public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] init.h: add missing initcall variants
@ 2013-12-02 20:14 Randy Dunlap
  2013-12-07  3:31 ` Timur Tabi
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2013-12-02 20:14 UTC (permalink / raw)
  To: LKML, Andrew Morton, Greg Kroah-Hartman
  Cc: Geert Uytterhoeven, Benjamin Herrenschmidt, Timur Tabi

From: Randy Dunlap <rdunlap@infradead.org>

Add missing initcall variants when building for loadable modules.
This fixes this build error on powerpc allmodconfig:

drivers/tty/ehv_bytechan.c: error: type defaults to 'int' in declaration of 'console_initcall' [-Werror=implicit-int]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Timur Tabi <timur@freescale.com>
---
 include/linux/init.h |    2 ++
 1 file changed, 2 insertions(+)

--- lnx-313-rc2.orig/include/linux/init.h
+++ lnx-313-rc2/include/linux/init.h
@@ -286,9 +286,11 @@ void __init parse_early_options(char *cm
 #define arch_initcall(fn)		module_init(fn)
 #define subsys_initcall(fn)		module_init(fn)
 #define fs_initcall(fn)			module_init(fn)
+#define rootfs_initcall(fn)		module_init(fn)
 #define device_initcall(fn)		module_init(fn)
 #define late_initcall(fn)		module_init(fn)
 
+#define console_initcall(fn)		module_init(fn)
 #define security_initcall(fn)		module_init(fn)
 
 /* Each module must use one module_init(). */

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-07  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-02 20:14 [PATCH] init.h: add missing initcall variants Randy Dunlap
2013-12-07  3:31 ` Timur Tabi
2013-12-07  9:01   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox