diff options
author | Stafford Horne <shorne@gmail.com> | 2017-03-14 09:52:49 -0400 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2017-03-15 11:12:57 -0400 |
commit | 363dad58e4a0f72dce0bf12d361d617239a80317 (patch) | |
tree | ab3eeb02ca83f55993176d8e4d92efa5a29627b5 /arch/openrisc | |
parent | 154e67cd8e8f964809d0e75e44bb121b169c75b3 (diff) |
openrisc: Export symbols needed by modules
This was detected by allmodconfig, errors reported:
ERROR: "empty_zero_page" [net/ceph/libceph.ko] undefined!
ERROR: "__ucmpdi2" [lib/842/842_decompress.ko] undefined!
ERROR: "empty_zero_page" [fs/nfs/objlayout/objlayoutdriver.ko] undefined!
ERROR: "empty_zero_page" [fs/exofs/exofs.ko] undefined!
ERROR: "empty_zero_page" [fs/crypto/fscrypto.ko] undefined!
ERROR: "__ucmpdi2" [fs/btrfs/btrfs.ko] undefined!
ERROR: "pm_power_off" [drivers/regulator/act8865-regulator.ko] undefined!
ERROR: "__ucmpdi2" [drivers/media/i2c/adv7842.ko] undefined!
ERROR: "__clear_user" [drivers/md/dm-mod.ko] undefined!
ERROR: "__clear_user" [net/netfilter/x_tables.ko] undefined!
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/or32_ksyms.c | 4 | ||||
-rw-r--r-- | arch/openrisc/kernel/process.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/or32_ksyms.c b/arch/openrisc/kernel/or32_ksyms.c index 5c4695d13542..ee3e604959e1 100644 --- a/arch/openrisc/kernel/or32_ksyms.c +++ b/arch/openrisc/kernel/or32_ksyms.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <asm/hardirq.h> | 30 | #include <asm/hardirq.h> |
31 | #include <asm/delay.h> | 31 | #include <asm/delay.h> |
32 | #include <asm/pgalloc.h> | 32 | #include <asm/pgalloc.h> |
33 | #include <asm/pgtable.h> | ||
33 | 34 | ||
34 | #define DECLARE_EXPORT(name) extern void name(void); EXPORT_SYMBOL(name) | 35 | #define DECLARE_EXPORT(name) extern void name(void); EXPORT_SYMBOL(name) |
35 | 36 | ||
@@ -42,6 +43,9 @@ DECLARE_EXPORT(__muldi3); | |||
42 | DECLARE_EXPORT(__ashrdi3); | 43 | DECLARE_EXPORT(__ashrdi3); |
43 | DECLARE_EXPORT(__ashldi3); | 44 | DECLARE_EXPORT(__ashldi3); |
44 | DECLARE_EXPORT(__lshrdi3); | 45 | DECLARE_EXPORT(__lshrdi3); |
46 | DECLARE_EXPORT(__ucmpdi2); | ||
45 | 47 | ||
48 | EXPORT_SYMBOL(empty_zero_page); | ||
46 | EXPORT_SYMBOL(__copy_tofrom_user); | 49 | EXPORT_SYMBOL(__copy_tofrom_user); |
50 | EXPORT_SYMBOL(__clear_user); | ||
47 | EXPORT_SYMBOL(memset); | 51 | EXPORT_SYMBOL(memset); |
diff --git a/arch/openrisc/kernel/process.c b/arch/openrisc/kernel/process.c index 828a29110459..f8da545854f9 100644 --- a/arch/openrisc/kernel/process.c +++ b/arch/openrisc/kernel/process.c | |||
@@ -90,6 +90,7 @@ void arch_cpu_idle(void) | |||
90 | } | 90 | } |
91 | 91 | ||
92 | void (*pm_power_off) (void) = machine_power_off; | 92 | void (*pm_power_off) (void) = machine_power_off; |
93 | EXPORT_SYMBOL(pm_power_off); | ||
93 | 94 | ||
94 | /* | 95 | /* |
95 | * When a process does an "exec", machine state like FPU and debug | 96 | * When a process does an "exec", machine state like FPU and debug |