mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
c20eb0f1d0
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>
54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
#include <linux/export.h>
|
|
#include <linux/types.h>
|
|
|
|
#include <asm/checksum.h>
|
|
#include <asm/div64.h>
|
|
#include <asm/ftrace.h>
|
|
#include <asm/page.h>
|
|
#include <asm/string.h>
|
|
#include <asm/tbx.h>
|
|
|
|
EXPORT_SYMBOL(clear_page);
|
|
EXPORT_SYMBOL(copy_page);
|
|
|
|
#ifdef CONFIG_FLATMEM
|
|
/* needed for the pfn_valid macro */
|
|
EXPORT_SYMBOL(max_pfn);
|
|
EXPORT_SYMBOL(min_low_pfn);
|
|
#endif
|
|
|
|
/* Network checksum functions */
|
|
EXPORT_SYMBOL(csum_partial);
|
|
|
|
/* TBI symbols */
|
|
EXPORT_SYMBOL(__TBI);
|
|
EXPORT_SYMBOL(__TBIFindSeg);
|
|
EXPORT_SYMBOL(__TBIPoll);
|
|
EXPORT_SYMBOL(__TBITimeStamp);
|
|
|
|
#define DECLARE_EXPORT(name) extern void name(void); EXPORT_SYMBOL(name)
|
|
|
|
/* libgcc functions */
|
|
DECLARE_EXPORT(__ashldi3);
|
|
DECLARE_EXPORT(__ashrdi3);
|
|
DECLARE_EXPORT(__lshrdi3);
|
|
DECLARE_EXPORT(__udivsi3);
|
|
DECLARE_EXPORT(__divsi3);
|
|
DECLARE_EXPORT(__umodsi3);
|
|
DECLARE_EXPORT(__modsi3);
|
|
DECLARE_EXPORT(__muldi3);
|
|
DECLARE_EXPORT(__cmpdi2);
|
|
DECLARE_EXPORT(__ucmpdi2);
|
|
|
|
/* Maths functions */
|
|
EXPORT_SYMBOL(div_u64);
|
|
EXPORT_SYMBOL(div_s64);
|
|
|
|
/* String functions */
|
|
EXPORT_SYMBOL(memcpy);
|
|
EXPORT_SYMBOL(memset);
|
|
EXPORT_SYMBOL(memmove);
|
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
|
EXPORT_SYMBOL(mcount_wrapper);
|
|
#endif
|