Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761260AbYBANnf (ORCPT ); Fri, 1 Feb 2008 08:43:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758374AbYBANmo (ORCPT ); Fri, 1 Feb 2008 08:42:44 -0500 Received: from pasmtpa.tele.dk ([80.160.77.114]:42788 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755853AbYBANmn (ORCPT ); Fri, 1 Feb 2008 08:42:43 -0500 From: Sam Ravnborg To: LKML , Andrew Morton , isdn4linux@listserv.isdn4linux.de Cc: Sam Ravnborg , Karsten Keil , Jeff Garzik Subject: [PATCH] isdn: fix section mismatch warning in hfc_sx.c Date: Fri, 1 Feb 2008 14:42:44 +0100 Message-Id: <1201873364-13475-5-git-send-email-sam@ravnborg.org> X-Mailer: git-send-email 1.5.3.5.628.ga1309 In-Reply-To: <20080201133838.GA13349@uranus.ravnborg.org> References: <20080201133838.GA13349@uranus.ravnborg.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1475 Lines: 38 Fix the following warning: WARNING: drivers/isdn/hisax/built-in.o(.text+0x35818): Section mismatch in reference from the function hfcsx_card_msg() to the function .devinit.text:inithfcsx() hfcsx_card_msg() may be called outside __devinit context. Following the program logic is looks like the CARD_INIT branch will only be taken under __devinit context but to be consistent remove the __devinit annotation of inithfcsx() so we do not mix non-__devinit and __devinit code. Signed-off-by: Sam Ravnborg Cc: Karsten Keil Cc: Jeff Garzik --- drivers/isdn/hisax/hfc_sx.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/isdn/hisax/hfc_sx.c b/drivers/isdn/hisax/hfc_sx.c index 4fd09d2..05482d2 100644 --- a/drivers/isdn/hisax/hfc_sx.c +++ b/drivers/isdn/hisax/hfc_sx.c @@ -1330,8 +1330,7 @@ hfcsx_bh(struct work_struct *work) /********************************/ /* called for card init message */ /********************************/ -static void __devinit -inithfcsx(struct IsdnCardState *cs) +static void inithfcsx(struct IsdnCardState *cs) { cs->setstack_d = setstack_hfcsx; cs->BC_Send_Data = &hfcsx_send_data; -- 1.5.4.rc3.14.g44397 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/