From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b6E8r-0004Wd-AG for barebox@lists.infradead.org; Fri, 27 May 2016 09:33:18 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1b6E8T-00064M-ST for barebox@lists.infradead.org; Fri, 27 May 2016 11:32:53 +0200 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.87) (envelope-from ) id 1b6E8T-0002e9-Kk for barebox@lists.infradead.org; Fri, 27 May 2016 11:32:53 +0200 From: Juergen Borleis Date: Fri, 27 May 2016 11:32:49 +0200 Message-Id: <1464341571-22552-3-git-send-email-jbe@pengutronix.de> In-Reply-To: <1464341571-22552-1-git-send-email-jbe@pengutronix.de> References: <1464341571-22552-1-git-send-email-jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/4] PPC: clean compiler warning To: barebox@lists.infradead.org This change fixes the following compiler warning: arch/ppc/mach-mpc5xxx/cpu.c: In function 'restart_register_feature': arch/ppc/mach-mpc5xxx/cpu.c:81:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ Signed-off-by: Juergen Borleis --- arch/ppc/mach-mpc5xxx/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ppc/mach-mpc5xxx/cpu.c b/arch/ppc/mach-mpc5xxx/cpu.c index 33835e7..42ced9a 100644 --- a/arch/ppc/mach-mpc5xxx/cpu.c +++ b/arch/ppc/mach-mpc5xxx/cpu.c @@ -77,7 +77,7 @@ static void __noreturn mpc5xxx_restart_soc(struct restart_handler *rst) static int restart_register_feature(void) { - restart_handler_register_fn(mpc5xxx_restart_soc); + return restart_handler_register_fn(mpc5xxx_restart_soc); } coredevice_initcall(restart_register_feature); -- 2.8.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox