mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 00:36:53 +07:00
ad70b029d2
Min_low_pfn and max_low_pfn were used in pfn_valid macro if defined CONFIG_FLATMEM. When the functions that use the pfn_valid is used in driver module, max_low_pfn and min_low_pfn is to undefined, and fail to build. ERROR: "min_low_pfn" [drivers/block/aoe/aoe.ko] undefined! ERROR: "max_low_pfn" [drivers/block/aoe/aoe.ko] undefined! make[2]: *** [__modpost] Error 1 make[1]: *** [modules] Error 2 This patch fix this problem. Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Cc: Kuninori Morimoto <kuninori.morimoto.gx@gmail.com> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
98 lines
2.7 KiB
C
98 lines
2.7 KiB
C
#include <linux/module.h>
|
|
#include <linux/string.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/mm.h>
|
|
#include <asm/checksum.h>
|
|
#include <asm/sections.h>
|
|
|
|
EXPORT_SYMBOL(memchr);
|
|
EXPORT_SYMBOL(memcpy);
|
|
EXPORT_SYMBOL(memset);
|
|
EXPORT_SYMBOL(memmove);
|
|
EXPORT_SYMBOL(__copy_user);
|
|
EXPORT_SYMBOL(__udelay);
|
|
EXPORT_SYMBOL(__ndelay);
|
|
EXPORT_SYMBOL(__const_udelay);
|
|
EXPORT_SYMBOL(strlen);
|
|
EXPORT_SYMBOL(csum_partial);
|
|
EXPORT_SYMBOL(csum_partial_copy_generic);
|
|
EXPORT_SYMBOL(copy_page);
|
|
EXPORT_SYMBOL(__clear_user);
|
|
EXPORT_SYMBOL(empty_zero_page);
|
|
#ifdef CONFIG_FLATMEM
|
|
/* need in pfn_valid macro */
|
|
EXPORT_SYMBOL(min_low_pfn);
|
|
EXPORT_SYMBOL(max_low_pfn);
|
|
#endif
|
|
|
|
#define DECLARE_EXPORT(name) \
|
|
extern void name(void);EXPORT_SYMBOL(name)
|
|
|
|
DECLARE_EXPORT(__udivsi3);
|
|
DECLARE_EXPORT(__sdivsi3);
|
|
DECLARE_EXPORT(__lshrsi3);
|
|
DECLARE_EXPORT(__ashrsi3);
|
|
DECLARE_EXPORT(__ashlsi3);
|
|
DECLARE_EXPORT(__ashiftrt_r4_6);
|
|
DECLARE_EXPORT(__ashiftrt_r4_7);
|
|
DECLARE_EXPORT(__ashiftrt_r4_8);
|
|
DECLARE_EXPORT(__ashiftrt_r4_9);
|
|
DECLARE_EXPORT(__ashiftrt_r4_10);
|
|
DECLARE_EXPORT(__ashiftrt_r4_11);
|
|
DECLARE_EXPORT(__ashiftrt_r4_12);
|
|
DECLARE_EXPORT(__ashiftrt_r4_13);
|
|
DECLARE_EXPORT(__ashiftrt_r4_14);
|
|
DECLARE_EXPORT(__ashiftrt_r4_15);
|
|
DECLARE_EXPORT(__ashiftrt_r4_20);
|
|
DECLARE_EXPORT(__ashiftrt_r4_21);
|
|
DECLARE_EXPORT(__ashiftrt_r4_22);
|
|
DECLARE_EXPORT(__ashiftrt_r4_23);
|
|
DECLARE_EXPORT(__ashiftrt_r4_24);
|
|
DECLARE_EXPORT(__ashiftrt_r4_27);
|
|
DECLARE_EXPORT(__ashiftrt_r4_30);
|
|
DECLARE_EXPORT(__movstr);
|
|
DECLARE_EXPORT(__movstrSI8);
|
|
DECLARE_EXPORT(__movstrSI12);
|
|
DECLARE_EXPORT(__movstrSI16);
|
|
DECLARE_EXPORT(__movstrSI20);
|
|
DECLARE_EXPORT(__movstrSI24);
|
|
DECLARE_EXPORT(__movstrSI28);
|
|
DECLARE_EXPORT(__movstrSI32);
|
|
DECLARE_EXPORT(__movstrSI36);
|
|
DECLARE_EXPORT(__movstrSI40);
|
|
DECLARE_EXPORT(__movstrSI44);
|
|
DECLARE_EXPORT(__movstrSI48);
|
|
DECLARE_EXPORT(__movstrSI52);
|
|
DECLARE_EXPORT(__movstrSI56);
|
|
DECLARE_EXPORT(__movstrSI60);
|
|
DECLARE_EXPORT(__movstr_i4_even);
|
|
DECLARE_EXPORT(__movstr_i4_odd);
|
|
DECLARE_EXPORT(__movstrSI12_i4);
|
|
DECLARE_EXPORT(__movmem);
|
|
DECLARE_EXPORT(__movmemSI8);
|
|
DECLARE_EXPORT(__movmemSI12);
|
|
DECLARE_EXPORT(__movmemSI16);
|
|
DECLARE_EXPORT(__movmemSI20);
|
|
DECLARE_EXPORT(__movmemSI24);
|
|
DECLARE_EXPORT(__movmemSI28);
|
|
DECLARE_EXPORT(__movmemSI32);
|
|
DECLARE_EXPORT(__movmemSI36);
|
|
DECLARE_EXPORT(__movmemSI40);
|
|
DECLARE_EXPORT(__movmemSI44);
|
|
DECLARE_EXPORT(__movmemSI48);
|
|
DECLARE_EXPORT(__movmemSI52);
|
|
DECLARE_EXPORT(__movmemSI56);
|
|
DECLARE_EXPORT(__movmemSI60);
|
|
DECLARE_EXPORT(__movmem_i4_even);
|
|
DECLARE_EXPORT(__movmem_i4_odd);
|
|
DECLARE_EXPORT(__movmemSI12_i4);
|
|
DECLARE_EXPORT(__udiv_qrnnd_16);
|
|
DECLARE_EXPORT(__sdivsi3_i4);
|
|
DECLARE_EXPORT(__udivsi3_i4);
|
|
DECLARE_EXPORT(__sdivsi3_i4i);
|
|
DECLARE_EXPORT(__udivsi3_i4i);
|
|
#ifdef CONFIG_MCOUNT
|
|
DECLARE_EXPORT(mcount);
|
|
#endif
|