linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-unstable 360/372] ld.lld: error: duplicate symbol: swap_free_nr
@ 2024-04-11 10:29 kernel test robot
  2024-04-11 11:11 ` Chuanhua Han
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2024-04-11 10:29 UTC (permalink / raw)
  To: Chuanhua Han
  Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Barry Song

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head:   de14d5f2a9ff2df737a01575ee95bc5a35f5853d
commit: ca23b4d4cae5d32a9d22fb3c39550dcf43df83f9 [360/372] mm: swap: introduce swap_free_nr() for batched swap_free()
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240411/202404111834.XUWxYckr-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 8b3b4a92adee40483c27f26c478a384cd69c6f05)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240411/202404111834.XUWxYckr-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404111834.XUWxYckr-lkp@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at vsprintf.c
   >>>            vsprintf.o:(.text+0x1) in archive lib/lib.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at platform.c
   >>>            drivers/of/platform.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at bdev.c
   >>>            block/bdev.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at commoncap.c
   >>>            security/commoncap.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at meminfo.c
   >>>            fs/proc/meminfo.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at array.c
   >>>            fs/proc/array.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at base.c
   >>>            fs/proc/base.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at nommu.c
   >>>            fs/proc/nommu.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at buffered-io.c
   >>>            fs/iomap/buffered-io.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at drop_caches.c
   >>>            fs/drop_caches.o:(.text+0x1) in archive vmlinux.a
--
>> ld.lld: error: duplicate symbol: swap_free_nr
   >>> defined at main.c
   >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
   >>> defined at coredump.c
   >>>            fs/coredump.o:(.text+0x1) in archive vmlinux.a
..

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [akpm-mm:mm-unstable 360/372] ld.lld: error: duplicate symbol: swap_free_nr
  2024-04-11 10:29 [akpm-mm:mm-unstable 360/372] ld.lld: error: duplicate symbol: swap_free_nr kernel test robot
@ 2024-04-11 11:11 ` Chuanhua Han
  2024-04-12  2:47   ` Liu, Yujie
  0 siblings, 1 reply; 4+ messages in thread
From: Chuanhua Han @ 2024-04-11 11:11 UTC (permalink / raw)
  To: kernel test robot
  Cc: Chuanhua Han, llvm, oe-kbuild-all, Andrew Morton,
	Linux Memory Management List, Barry Song

kernel test robot <lkp@intel.com> 于2024年4月11日周四 18:32写道:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> head:   de14d5f2a9ff2df737a01575ee95bc5a35f5853d
> commit: ca23b4d4cae5d32a9d22fb3c39550dcf43df83f9 [360/372] mm: swap: introduce swap_free_nr() for batched swap_free()
> config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240411/202404111834.XUWxYckr-lkp@intel.com/config)
> compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 8b3b4a92adee40483c27f26c478a384cd69c6f05)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240411/202404111834.XUWxYckr-lkp@intel.com/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@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202404111834.XUWxYckr-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at vsprintf.c
>    >>>            vsprintf.o:(.text+0x1) in archive lib/lib.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at platform.c
>    >>>            drivers/of/platform.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at bdev.c
>    >>>            block/bdev.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at commoncap.c
>    >>>            security/commoncap.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at meminfo.c
>    >>>            fs/proc/meminfo.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at array.c
>    >>>            fs/proc/array.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at base.c
>    >>>            fs/proc/base.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at nommu.c
>    >>>            fs/proc/nommu.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at buffered-io.c
>    >>>            fs/iomap/buffered-io.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at drop_caches.c
>    >>>            fs/drop_caches.o:(.text+0x1) in archive vmlinux.a
> --
> >> ld.lld: error: duplicate symbol: swap_free_nr
>    >>> defined at main.c
>    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
>    >>> defined at coredump.c
>    >>>            fs/coredump.o:(.text+0x1) in archive vmlinux.a
> ..
>

Hi,
thank you!

SeongJae reported this and fixed it with a patch here:
https://lore.kernel.org/linux-mm/20240410233759.274907-1-sj@kernel.org/

Can you please test it?

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


-- 
Thanks,
Chuanhua


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [akpm-mm:mm-unstable 360/372] ld.lld: error: duplicate symbol: swap_free_nr
  2024-04-11 11:11 ` Chuanhua Han
@ 2024-04-12  2:47   ` Liu, Yujie
  2024-04-12  2:56     ` Chuanhua Han
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Yujie @ 2024-04-12  2:47 UTC (permalink / raw)
  To: chuanhuahan, lkp
  Cc: v-songbaohua, linux-mm, hanchuanhua, llvm, oe-kbuild-all, akpm

On Thu, 2024-04-11 at 19:11 +0800, Chuanhua Han wrote:
> kernel test robot <lkp@intel.com> 于2024年4月11日周四 18:32写道:
> > 
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> > head:   de14d5f2a9ff2df737a01575ee95bc5a35f5853d
> > commit: ca23b4d4cae5d32a9d22fb3c39550dcf43df83f9 [360/372] mm: swap: introduce swap_free_nr() for batched swap_free()
> > config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240411/202404111834.XUWxYckr-lkp@intel.com/config)
> > compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 8b3b4a92adee40483c27f26c478a384cd69c6f05)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240411/202404111834.XUWxYckr-lkp@intel.com/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@intel.com>
> > > Closes: https://lore.kernel.org/oe-kbuild-all/202404111834.XUWxYckr-lkp@intel.com/
> > 
> > All errors (new ones prefixed by >>):
> > 
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at vsprintf.c
> >    >>>            vsprintf.o:(.text+0x1) in archive lib/lib.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at platform.c
> >    >>>            drivers/of/platform.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at bdev.c
> >    >>>            block/bdev.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at commoncap.c
> >    >>>            security/commoncap.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at meminfo.c
> >    >>>            fs/proc/meminfo.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at array.c
> >    >>>            fs/proc/array.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at base.c
> >    >>>            fs/proc/base.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at nommu.c
> >    >>>            fs/proc/nommu.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at buffered-io.c
> >    >>>            fs/iomap/buffered-io.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at drop_caches.c
> >    >>>            fs/drop_caches.o:(.text+0x1) in archive vmlinux.a
> > --
> > > > ld.lld: error: duplicate symbol: swap_free_nr
> >    >>> defined at main.c
> >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> >    >>> defined at coredump.c
> >    >>>            fs/coredump.o:(.text+0x1) in archive vmlinux.a
> > ..
> > 
> 
> Hi,
> thank you!
> 
> SeongJae reported this and fixed it with a patch here:
> https://lore.kernel.org/linux-mm/20240410233759.274907-1-sj@kernel.org/
> 
> Can you please test it?

We tested the patch in the link above, and confirmed it fixes the build
issue in this report.

Tested-by: Yujie Liu <yujie.liu@intel.com>

Thanks

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [akpm-mm:mm-unstable 360/372] ld.lld: error: duplicate symbol: swap_free_nr
  2024-04-12  2:47   ` Liu, Yujie
@ 2024-04-12  2:56     ` Chuanhua Han
  0 siblings, 0 replies; 4+ messages in thread
From: Chuanhua Han @ 2024-04-12  2:56 UTC (permalink / raw)
  To: Liu, Yujie
  Cc: lkp, v-songbaohua, linux-mm, hanchuanhua, llvm, oe-kbuild-all, akpm

Liu, Yujie <yujie.liu@intel.com> 于2024年4月12日周五 10:48写道:
>
> On Thu, 2024-04-11 at 19:11 +0800, Chuanhua Han wrote:
> > kernel test robot <lkp@intel.com> 于2024年4月11日周四 18:32写道:
> > >
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> > > head:   de14d5f2a9ff2df737a01575ee95bc5a35f5853d
> > > commit: ca23b4d4cae5d32a9d22fb3c39550dcf43df83f9 [360/372] mm: swap: introduce swap_free_nr() for batched swap_free()
> > > config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240411/202404111834.XUWxYckr-lkp@intel.com/config)
> > > compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 8b3b4a92adee40483c27f26c478a384cd69c6f05)
> > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240411/202404111834.XUWxYckr-lkp@intel.com/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@intel.com>
> > > > Closes: https://lore.kernel.org/oe-kbuild-all/202404111834.XUWxYckr-lkp@intel.com/
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at vsprintf.c
> > >    >>>            vsprintf.o:(.text+0x1) in archive lib/lib.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at platform.c
> > >    >>>            drivers/of/platform.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at bdev.c
> > >    >>>            block/bdev.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at commoncap.c
> > >    >>>            security/commoncap.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at meminfo.c
> > >    >>>            fs/proc/meminfo.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at array.c
> > >    >>>            fs/proc/array.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at base.c
> > >    >>>            fs/proc/base.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at nommu.c
> > >    >>>            fs/proc/nommu.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at buffered-io.c
> > >    >>>            fs/iomap/buffered-io.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at drop_caches.c
> > >    >>>            fs/drop_caches.o:(.text+0x1) in archive vmlinux.a
> > > --
> > > > > ld.lld: error: duplicate symbol: swap_free_nr
> > >    >>> defined at main.c
> > >    >>>            init/main.o:(swap_free_nr) in archive vmlinux.a
> > >    >>> defined at coredump.c
> > >    >>>            fs/coredump.o:(.text+0x1) in archive vmlinux.a
> > > ..
> > >
> >
> > Hi,
> > thank you!
> >
> > SeongJae reported this and fixed it with a patch here:
> > https://lore.kernel.org/linux-mm/20240410233759.274907-1-sj@kernel.org/
> >
> > Can you please test it?
>
> We tested the patch in the link above, and confirmed it fixes the build
> issue in this report.
>
> Tested-by: Yujie Liu <yujie.liu@intel.com>
Nice, thank you for your test :)
>
> Thanks
>
> > > --
> > > 0-DAY CI Kernel Test Service
> > > https://github.com/intel/lkp-tests/wiki
> > >
> >
> >
>


-- 
Thanks,
Chuanhua


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-12  2:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-11 10:29 [akpm-mm:mm-unstable 360/372] ld.lld: error: duplicate symbol: swap_free_nr kernel test robot
2024-04-11 11:11 ` Chuanhua Han
2024-04-12  2:47   ` Liu, Yujie
2024-04-12  2:56     ` Chuanhua Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox