metag: move EXPORT_SYMBOL(csum_partial) to metag_ksyms.c
authorJames Hogan <james.hogan@imgtec.com>
Thu, 4 Jul 2013 08:47:45 +0000 (09:47 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 4 Jul 2013 09:00:02 +0000 (10:00 +0100)
commitc20eb0f1d0918c019fb2674a104e6ab59d8e62ac
treedc8cc853530f6ee25d0f3a7dc5984e7f1064ed7a
parent8b8b2412994fffd5a8ab3b9209fa0aa9f0fcee4c
metag: move EXPORT_SYMBOL(csum_partial) to metag_ksyms.c

Move EXPORT_SYMBOL(csum_partial) from lib/checksum.c into metag_ksyms.c
so that it doesn't get omitted by the static linker if it's not used by
any other statically linked code, which can result in undefined symbols
when building modules.

For example a randconfig caused the following error:
ERROR: "csum_partial" [fs/reiserfs/reiserfs.ko] undefined!

Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/kernel/metag_ksyms.c
arch/metag/lib/checksum.c