[PATCH] PA-RISC: Fix bogus warnings from modpost
authorMatthew Wilcox <matthew@wil.cx>
Tue, 6 Feb 2007 00:34:00 +0000 (16:34 -0800)
committerKyle McMartin <kyle@athena.road.mcmartin.ca>
Thu, 8 Feb 2007 23:56:41 +0000 (18:56 -0500)
commit742433b00b1c53d447a10f215cf887e4cb3406b5
treeab055b5408a1c2ebc4813f44b5cee2f97dd2713f
parent29a1e1d2732c7bfa94465749285aea0f2ed12213
[PATCH] PA-RISC: Fix bogus warnings from modpost

parisc and parisc64 seem to name sections a little differently from other
targets.  parisc64 gives spurious warnings like:

WARNING: drivers/net/dummy.o - Section mismatch: reference to .init.text:dummy_setup from .data.rel.ro between '.LC1' (at offset 0x0) and '.LC6'

and parisc gives spurious warnings like:

WARNING: drivers/net/dummy.o - Section mismatch: reference to .init.text:dummy_setup from .rodata.cst4 between '.LC1' (at offset 0x0) and '.LC6'

Given the other comments in modpost.c, it seems that the best solution is
to move rodata down to the 'match at start of name' section and add
.data.rel.ro to the 'match entire name' section.

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/mod/modpost.c