aboutsummaryrefslogtreecommitdiffstats
path: root/arch/metag/lib
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2013-07-04 08:47:45 (GMT)
committerJames Hogan <james.hogan@imgtec.com>2013-07-04 09:00:02 (GMT)
commitc20eb0f1d0918c019fb2674a104e6ab59d8e62ac (patch)
treedc8cc853530f6ee25d0f3a7dc5984e7f1064ed7a /arch/metag/lib
parent8b8b2412994fffd5a8ab3b9209fa0aa9f0fcee4c (diff)
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>
Diffstat (limited to 'arch/metag/lib')
-rw-r--r--arch/metag/lib/checksum.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/metag/lib/checksum.c b/arch/metag/lib/checksum.c
index 44d2e19..5d6a98a 100644
--- a/arch/metag/lib/checksum.c
+++ b/arch/metag/lib/checksum.c
@@ -124,7 +124,6 @@ __wsum csum_partial(const void *buff, int len, __wsum wsum)
result += 1;
return (__force __wsum)result;
}
-EXPORT_SYMBOL(csum_partial);
/*
* this routine is used for miscellaneous IP-like checksums, mainly

Privacy Policy