Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762831AbYARTDI (ORCPT ); Fri, 18 Jan 2008 14:03:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755240AbYARTC4 (ORCPT ); Fri, 18 Jan 2008 14:02:56 -0500 Received: from pasmtpa.tele.dk ([80.160.77.114]:53524 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761246AbYARTCz (ORCPT ); Fri, 18 Jan 2008 14:02:55 -0500 Date: Fri, 18 Jan 2008 20:03:02 +0100 From: Sam Ravnborg To: Linus Torvalds Cc: Toralf =?iso-8859-1?Q?F=F6rster?= , linux-kernel@vger.kernel.org, rusty@rustcorp.com.au, WANG Cong Subject: [PATCH for -rc] kbuild: fix false section mismatch warning referring to .init.text.2 Message-ID: <20080118190302.GA20285@uranus.ravnborg.org> References: <200801181318.30009.toralf.foerster@gmx.de> <20080118122917.GH2559@hacking> <20080118124627.GA17918@uranus.ravnborg.org> <20080118125144.GI2559@hacking> <20080118132242.GA18183@uranus.ravnborg.org> <20080118161452.GJ2559@hacking> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080118161452.GJ2559@hacking> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1965 Lines: 59 Hi Linus. Please pull following two-liner fix for modpost. It silence an annoying section mismatch warning. Pull from: ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/fix-kbuild.git Sam >From 57ff41164d27cb577620a6e8085dd67cd8a87649 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Fri, 18 Jan 2008 19:54:51 +0100 Subject: [PATCH] kbuild: fix false section mismatch warning referring to .init.text.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit The following section mismatch warning are false: WARNING: vmlinux.o(.text.head+0x247): Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87') The problem was that modpost did not see a section named ".init.text.1" as an init section and thus it warned. This patch fixes this so we no loneg see this warning. Thanks to report from: Toralf F?rster Signed-off-by: Sam Ravnborg Cc: Toralf F?rster Cc: WANG Cong --- scripts/mod/modpost.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 93ac52a..b5f1cff 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -736,8 +736,8 @@ static int secref_whitelist(const char *modname, const char *tosec, /* Check for pattern 3 */ if ((strcmp(fromsec, ".text.head") == 0) && - ((strcmp(tosec, ".init.data") == 0) || - (strcmp(tosec, ".init.text") == 0))) + ((strncmp(tosec, ".init.data", strlen(".init.data")) == 0) || + (strncmp(tosec, ".init.text", strlen(".init.text")) == 0))) return 1; /* Check for pattern 4 */ -- 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/