From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756305Ab3LBUOu (ORCPT ); Mon, 2 Dec 2013 15:14:50 -0500 Received: from merlin.infradead.org ([205.233.59.134]:52938 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755388Ab3LBUOp (ORCPT ); Mon, 2 Dec 2013 15:14:45 -0500 Message-ID: <529CEA30.8010805@infradead.org> Date: Mon, 02 Dec 2013 12:14:40 -0800 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: LKML , Andrew Morton , Greg Kroah-Hartman CC: Geert Uytterhoeven , Benjamin Herrenschmidt , Timur Tabi Subject: [PATCH] init.h: add missing initcall variants Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap 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 Reported-by: Geert Uytterhoeven Cc: Benjamin Herrenschmidt Cc: Timur Tabi --- 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(). */