From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750845AbcISG2s (ORCPT ); Mon, 19 Sep 2016 02:28:48 -0400 Received: from atlantic540.startdedicated.de ([188.138.9.77]:60325 "EHLO atlantic540.startdedicated.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755553AbcISG2Z (ORCPT ); Mon, 19 Sep 2016 02:28:25 -0400 From: Daniel Wagner To: linux-cris-kernel@axis.com Cc: Jesper Nilsson , Mikael Starvik , Paul Gortmaker , linux-kernel@vger.kernel.org, Daniel Wagner Subject: [PATCH 2/2] cris: use correct device_init() function signature Date: Mon, 19 Sep 2016 08:27:57 +0200 Message-Id: <1474266477-26090-3-git-send-email-wagi@monom.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474266477-26090-1-git-send-email-wagi@monom.org> References: <1474266477-26090-1-git-send-email-wagi@monom.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Wagner The crisv32_intem_init() function doesn't match the necessary callback function signature. Newer gcc version are checking the pointer types and through an error if they don't match. Reported-by: kbuild test robot Signed-off-by: Daniel Wagner Cc: Mikael Starvik Cc: Jesper Nilsson Cc: Paul Gortmaker Cc: linux-cris-kernel@axis.com --- arch/cris/arch-v32/mm/intmem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/cris/arch-v32/mm/intmem.c b/arch/cris/arch-v32/mm/intmem.c index cfe393e..f5c2273 100644 --- a/arch/cris/arch-v32/mm/intmem.c +++ b/arch/cris/arch-v32/mm/intmem.c @@ -29,7 +29,7 @@ struct intmem_allocation { static struct list_head intmem_allocations; static void* intmem_virtual; -static void crisv32_intmem_init(void) +static int __init crisv32_intmem_init(void) { static int initiated = 0; if (!initiated) { @@ -44,6 +44,8 @@ static void crisv32_intmem_init(void) alloc->status = STATUS_FREE; list_add_tail(&alloc->entry, &intmem_allocations); } + + return 0; } void* crisv32_intmem_alloc(unsigned size, unsigned align) -- 2.7.4