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

init.h: add missing initcall variants

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>
Acked-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Randy Dunlap and committed by
Greg Kroah-Hartman
b46d0c46 acc0f67f

+2
+2
include/linux/init.h
··· 286 286 #define arch_initcall(fn) module_init(fn) 287 287 #define subsys_initcall(fn) module_init(fn) 288 288 #define fs_initcall(fn) module_init(fn) 289 + #define rootfs_initcall(fn) module_init(fn) 289 290 #define device_initcall(fn) module_init(fn) 290 291 #define late_initcall(fn) module_init(fn) 291 292 293 + #define console_initcall(fn) module_init(fn) 292 294 #define security_initcall(fn) module_init(fn) 293 295 294 296 /* Each module must use one module_init(). */