Content-Type: multipart/mixed; boundary="===============1745262992205124419==" MIME-Version: 1.0 From: Yury Norov To: kbuild-all@lists.01.org Subject: Re: [linux-next:master 7287/11993] s390x-linux-ld: topology.c:undefined reference to `__tsan_memcpy' Date: Fri, 30 Sep 2022 18:24:47 -0700 Message-ID: In-Reply-To: <202210010718.2kaVANGb-lkp@intel.com> List-Id: --===============1745262992205124419== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Sat, Oct 01, 2022 at 07:12:48AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: 274d7803837da78dfc911bcda0d593412676fc20 > commit: aa47a7c215e79a2ade6916f163c5a17b561bce4f [7287/11993] lib/cpumask= : deprecate nr_cpumask_bits > config: s390-randconfig-r023-20220926 > compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a= 7ae1ba3efd6bca96338e10ffde557ba83920) > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install s390 cross compiling tool for clang build > # apt-get install binutils-s390x-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next= .git/commit/?id=3Daa47a7c215e79a2ade6916f163c5a17b561bce4f > git remote add linux-next https://git.kernel.org/pub/scm/linux/ke= rnel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout aa47a7c215e79a2ade6916f163c5a17b561bce4f > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W= =3D1 O=3Dbuild_dir ARCH=3Ds390 SHELL=3D/bin/bash > = > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > = > All errors (new ones prefixed by >>): > = > s390x-linux-ld: ipl.c:(.text+0x1004): undefined reference to `__tsan_m= emcpy' > s390x-linux-ld: ipl.c:(.text+0x1046): undefined reference to `__tsan_m= emset' > s390x-linux-ld: arch/s390/kernel/ipl.o: in function `reipl_fcp_scpdata= _write': I can't reproduce the bug. In fact, the build is broken for me on next-20220930. To make the s390 image somehow building, I commented out some functions that aren't found by the LD. Thanks, Yury diff --git a/drivers/irqchip/irq-al-fic.c b/drivers/irqchip/irq-al-fic.c index 886de028a901..d696d78132a0 100644 --- a/drivers/irqchip/irq-al-fic.c +++ b/drivers/irqchip/irq-al-fic.c @@ -235,6 +235,7 @@ static struct al_fic *al_fic_wire_init(struct device_no= de *node, return ERR_PTR(ret); } +void __iomem *of_iomap(struct device_node *np, int index); static int __init al_fic_init_dt(struct device_node *node, struct device_node *parent) { @@ -249,7 +250,7 @@ static int __init al_fic_init_dt(struct device_node *no= de, return -EINVAL; } - base =3D of_iomap(node, 0); + base =3D NULL;//of_iomap(node, 0); if (!base) { pr_err("%s: fail to map memory\n", node->name); return -ENOMEM; diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/et= hernet/altera/altera_tse_main.c index 7633b227b2ca..4e4c9d9743bf 100644 --- a/drivers/net/ethernet/altera/altera_tse_main.c +++ b/drivers/net/ethernet/altera/altera_tse_main.c @@ -1122,8 +1122,8 @@ static int request_and_map(struct platform_device *pd= ev, const char *name, return -EBUSY; } - *ptr =3D devm_ioremap(device, region->start, - resource_size(region)); + *ptr =3D NULL;//devm_ioremap(device, region->start, + // resource_size(region)); if (*ptr =3D=3D NULL) { dev_err(device, "ioremap of %s failed!", name); return -ENOMEM; diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 230c2d19116d..9f88be3c2b08 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -49,6 +49,7 @@ static bool afs_dir_dirty_folio(struct address_space *map= ping, struct folio *folio) { BUG(); /* This should never happen. */ + return false; } const struct file_operations afs_dir_file_operations =3D { --===============1745262992205124419==--