public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* (hacky) [PATCH] silence MODPOST section mismatch warnings
@ 2007-05-10 20:34 Chris Wedgwood
  2007-05-10 20:40 ` Russell King
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Chris Wedgwood @ 2007-05-10 20:34 UTC (permalink / raw)
  To: LKML; +Cc: Russell King, Sam Ravnborg

MODPOST seems to be spewing bogus warnings.  It's not clear how best
to fix it so perhaps we should silence it for now?

diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 113dc77..bd6fe7b 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -872,6 +872,10 @@ static void warn_sec_mismatch(const char *modname, const char *fromsec,
 				 sechdrs[hdr->e_shstrndx].sh_offset;
 	const char *secname = secstrings + sechdrs[sym->st_shndx].sh_name;
 
+	/* FIXME: this function doesn't work correctly anymore, it's
+	 * not clear if it should be fixed or removed. */
+	return;
+
 	find_symbols_between(elf, r.r_offset, fromsec, &before, &after);
 
 	refsym = find_elf_symbol(elf, r.r_addend, sym);

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2007-05-11 18:57 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10 20:34 (hacky) [PATCH] silence MODPOST section mismatch warnings Chris Wedgwood
2007-05-10 20:40 ` Russell King
2007-05-10 21:01   ` David Miller
2007-05-10 21:14   ` Sam Ravnborg
2007-05-10 20:51 ` David Miller
2007-05-10 20:54   ` Russell King
2007-05-10 21:01     ` Sam Ravnborg
2007-05-11  6:28       ` Satyam Sharma
2007-05-10 21:07     ` David Miller
2007-05-10 21:23       ` Russell King
2007-05-10 21:59       ` Russell King
2007-05-10 22:03         ` [PATCH] Make modpost section warnings clearer Russell King
2007-05-10 22:08           ` David Miller
2007-05-10 22:16         ` (hacky) [PATCH] silence MODPOST section mismatch warnings Sam Ravnborg
2007-05-10 22:18           ` Russell King
2007-05-11  4:12             ` Sam Ravnborg
2007-05-11 18:54     ` Sam Ravnborg
2007-05-11 18:57       ` Russell King
2007-05-10 21:19 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox