Re: [linux-next:master 1059/1266] ERROR: modpost: "memcpy" [mm/zsmalloc.ko] undefined!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 25, 2024 at 6:37 AM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   1fdad13606e104ff103ca19d2d660830cb36d43e
> commit: 6cf40170b919c155125793476778ae33d7e9c7ec [1059/1266] fix missing vmalloc.h includes
> config: alpha-randconfig-r022-20221031 (https://download.01.org/0day-ci/archive/20240325/202403252127.967BczRr-lkp@xxxxxxxxx/config)
> compiler: alpha-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240325/202403252127.967BczRr-lkp@xxxxxxxxx/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202403252127.967BczRr-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>, old ones prefixed by <<):
>
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/nls_cp1250.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/nls_cp1251.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/nls_iso8859-2.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/nls_iso8859-4.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/nls_cp1255.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/nls_koi8-r.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/mac-centeuro.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/mac-croatian.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/mac-gaelic.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/nls/mac-turkish.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/jbd2/jbd2.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in fs/isofs/isofs.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in lib/zlib_deflate/zlib_deflate.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpio/gpio-pcf857x.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/pci/pci-stub.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/video/fbdev/macmodes.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/video/fbdev/kyro/kyrofb.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/video/fbdev/goldfishfb.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/virtio/virtio_dma_buf.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/tty/ttynull.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/char/lp.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/gpu/drm/tiny/bochs.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/block/floppy.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/block/null_blk/null_blk.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/mfd/pcf50633-gpio.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/dax/dax.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/scsi/scsi_common.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/scsi/advansys.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/scsi/BusLogic.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/scsi/aha1542.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/scsi/g_NCR5380.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/scsi/atp870u.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/scsi/ppa.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/scsi/imm.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/cdrom/cdrom.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/serial/ch341.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/serial/mxuport.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/libcomposite.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/function/usb_f_acm.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/function/usb_f_ss_lb.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/function/u_serial.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/function/usb_f_obex.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/function/usb_f_mass_storage.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/function/usb_f_fs.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/function/usb_f_printer.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/legacy/g_zero.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/usb/gadget/legacy/g_dbgp.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/input/vivaldi-fmap.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/rtc/rtc-rc5t583.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/media/rc/rc-core.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hwmon/mr75203.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-a4tech.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-aureal.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-belkin.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-betopff.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-bigbenff.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-chicony.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-cypress.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-emsff.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-elecom.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-elo.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-ezkey.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-vivaldi-common.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-gyration.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-holtek-kbd.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-holtek-mouse.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-kensington.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-keytouch.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-kye.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-lcpower.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-letsketch.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-magicmouse.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-maltron.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-mf.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-microsoft.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-monterey.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-ntrig.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-pl.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-petalynx.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-retrode.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-saitek.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-samsung.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-semitek.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-sony.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-steelseries.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-gaff.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-tmff.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-tivo.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-zydacron.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-viewsonic.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/hid/hid-waltop.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/devfreq/governor_performance.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvdimm/libnvdimm.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvdimm/nd_pmem.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/nvdimm/nd_virtio.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/pcmcia/pcmcia_rsrc.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/greybus/greybus.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/greybus/gb-es2.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in drivers/siox/siox-bus-gpio.o
> >> ERROR: modpost: "memcpy" [mm/zsmalloc.ko] undefined!
> >> ERROR: modpost: "memcpy" [fs/nls/nls_euc-jp.ko] undefined!
> ERROR: modpost: "memcpy" [fs/reiserfs/reiserfs.ko] undefined!
> >> ERROR: modpost: "memcpy" [fs/ext4/ext4.ko] undefined!
> >> ERROR: modpost: "memcpy" [fs/jbd2/jbd2.ko] undefined!
> >> ERROR: modpost: "memcpy" [fs/isofs/isofs.ko] undefined!
> >> ERROR: modpost: "memcpy" [fs/xfs/xfs.ko] undefined!
> >> ERROR: modpost: "memcpy" [fs/f2fs/f2fs.ko] undefined!
> >> ERROR: modpost: "memcpy" [crypto/rsa_generic.ko] undefined!
> >> ERROR: modpost: "memcpy" [crypto/cmac.ko] undefined!
> WARNING: modpost: suppressed 154 unresolved symbol warnings because there were too many)

I spent a couple hours to figure this out and I can easily fix these
errors by simply replacing the inclusion that was introduced in our
patchset with a forward declaration like this:

 arch/alpha/lib/memcpy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/alpha/lib/memcpy.c b/arch/alpha/lib/memcpy.c
index 0e536a1a39ff..3bf0cbac3091 100644
--- a/arch/alpha/lib/memcpy.c
+++ b/arch/alpha/lib/memcpy.c
@@ -18,7 +18,8 @@

 #include <linux/types.h>
 #include <linux/export.h>
-#include <linux/string.h>
+
+extern void * memcpy(void *, const void *, size_t);

 /*
  * This should be done in one go with ldq_u*2/mask/stq_u. Do it

However I can't figure out why the inclusion of linux/string.h leads
to the memcpy symbol not being exported anymore (you can see
EXPORT_SYMBOL(memcpy) at the end of memcpy.c). If someone can figure
it out please let me know so I can write a meaningful description for
the fixup patch.
Thanks,
Suren.

>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux