Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 363dad58 authored by Stafford Horne's avatar Stafford Horne
Browse files

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: default avatarStafford Horne <shorne@gmail.com>
parent 154e67cd
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -30,6 +30,7 @@
#include <asm/hardirq.h>
#include <asm/hardirq.h>
#include <asm/delay.h>
#include <asm/delay.h>
#include <asm/pgalloc.h>
#include <asm/pgalloc.h>
#include <asm/pgtable.h>


#define DECLARE_EXPORT(name) extern void name(void); EXPORT_SYMBOL(name)
#define DECLARE_EXPORT(name) extern void name(void); EXPORT_SYMBOL(name)


@@ -42,6 +43,9 @@ DECLARE_EXPORT(__muldi3);
DECLARE_EXPORT(__ashrdi3);
DECLARE_EXPORT(__ashrdi3);
DECLARE_EXPORT(__ashldi3);
DECLARE_EXPORT(__ashldi3);
DECLARE_EXPORT(__lshrdi3);
DECLARE_EXPORT(__lshrdi3);
DECLARE_EXPORT(__ucmpdi2);


EXPORT_SYMBOL(empty_zero_page);
EXPORT_SYMBOL(__copy_tofrom_user);
EXPORT_SYMBOL(__copy_tofrom_user);
EXPORT_SYMBOL(__clear_user);
EXPORT_SYMBOL(memset);
EXPORT_SYMBOL(memset);
+1 −0
Original line number Original line Diff line number Diff line
@@ -90,6 +90,7 @@ void arch_cpu_idle(void)
}
}


void (*pm_power_off) (void) = machine_power_off;
void (*pm_power_off) (void) = machine_power_off;
EXPORT_SYMBOL(pm_power_off);


/*
/*
 * When a process does an "exec", machine state like FPU and debug
 * When a process does an "exec", machine state like FPU and debug