OSDN Git Service

nios2: ksyms: Add missing symbol exports
authorGuenter Roeck <linux@roeck-us.net>
Wed, 7 Nov 2018 02:36:10 +0000 (10:36 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Wed, 6 Mar 2019 21:29:35 +0000 (05:29 +0800)
commit0f8ed994575429d6042cf5d7ef70081c94091587
treeca1439a1997d1b0fcfe2fead8dafc5fb0d5f5430
parent1c163f4c7b3f621efff9b28a47abb36f7378d783
nios2: ksyms: Add missing symbol exports

Building nios2:allmodconfig fails as follows (each symbol is only listed
once).

ERROR: "__ashldi3" [drivers/md/dm-writecache.ko] undefined!
ERROR: "__ashrdi3" [fs/xfs/xfs.ko] undefined!
ERROR: "__ucmpdi2" [drivers/media/i2c/adv7842.ko] undefined!
ERROR: "__lshrdi3" [drivers/md/dm-zoned.ko] undefined!
ERROR: "flush_icache_range" [drivers/misc/lkdtm/lkdtm.ko] undefined!
ERROR: "empty_zero_page" [drivers/md/dm-mod.ko] undefined!

The problem is seen with gcc 7.3.0.

Export the missing symbols.

Fixes: 2fc8483fdcde ("nios2: Build infrastructure")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/nios2/kernel/nios2_ksyms.c