modpost: fix bogus 'exported twice' warnings.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Nov 2013 01:39:13 +0000 (12:09 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Nov 2013 01:41:59 +0000 (12:11 +1030)
commitb6568b1a19ad995221d1816c4fcdd116d9c33e42
tree0473b80a30c4a6c43211eede3ef17f848e73e681
parent08746a65c2961b5765a66350823ff75ace63bfd1
modpost: fix bogus 'exported twice' warnings.

Andi's change in e0f244c63fc9 ("asmlinkage, module: Make ksymtab and
kcrctab symbols and __this_module __visible") make the crc appear
first in the symbol table.

modpost creates an entry when it sees the CRC, then when it sees the
actual symbol, it complains that it's seen it before.  The preloaded
flag already exists for the equivalent case where we loaded from
Module.symvers, so use that.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Tested-by: The Awesome Power Of linux-next
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
scripts/mod/modpost.c