Re: Section mismatch warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 24, 2006 at 12:12:18AM +0200, Sam Ravnborg wrote:
> On Fri, Jun 23, 2006 at 07:40:12PM +0200, Jan Engelhardt wrote:
> > Hello,
> > 
> > 
> > as others have already seen to, 2.6.17 spits out a lot of section mismatch 
> > warnings on modpost. Some of them have may already been addressed; here is 
> > the output I get when MODPOST starts to run during the compile process of 
> > an almost-completely-compiled kernel. Need .config?
> 
> All the .smp_locks related warnings are gone when I get the kbuild.git
> tree pushed linus wise. Needs to spend only an hour or so before it is
> ready and will do so during the weekend.

BTW, I've also got some modpost.c patches dealing with false positives
(as well as fixes for real crap).  modpost.c delta follows, just in case
if some of that might be missing from your tree

>From nobody Mon Sep 17 00:00:00 2001
From: Al Viro <[email protected]>
Date: Wed, 14 Jun 2006 13:05:12 -0400
Subject: [PATCH] kill some false positives from modpost

Signed-off-by: Al Viro <[email protected]>

---

 scripts/mod/modpost.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

919db28eefd21a9c9f7d790c9f37694bad3a0b9a
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 0b92ddf..cd94d6a 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -768,6 +768,8 @@ static int init_section_ref_ok(const cha
 		".pci_fixup_final",
 		".pdr",
 		"__param",
+		"__ex_table",
+		".fixup",
 		NULL
 	};
 	/* Start of section names */
@@ -793,6 +795,8 @@ static int init_section_ref_ok(const cha
 	for (s = namelist3; *s; s++)
 		if (strstr(name, *s) != NULL)
 			return 1;
+	if (strrcmp(name, ".init") == 0)
+		return 1;
 	return 0;
 }
 
@@ -837,6 +841,8 @@ static int exit_section_ref_ok(const cha
 		".exitcall.exit",
 		".eh_frame",
 		".stab",
+		"__ex_table",
+		".fixup",
 		NULL
 	};
 	/* Start of section names */
-- 
1.3.GIT

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux