linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nios2-linux-ld: atmel-isc-base.c:undefined reference to `__this_module'
@ 2021-06-30  7:34 kernel test robot
  2021-07-01 10:06 ` Eugen.Hristev
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-06-30  7:34 UTC (permalink / raw)
  To: Eugen Hristev
  Cc: kbuild-all, linux-kernel, Mauro Carvalho Chehab, linux-media,
	Hans Verkuil

[-- Attachment #1: Type: text/plain, Size: 1931 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   007b350a58754a93ca9fe50c498cc27780171153
commit: c9aa973884a163ecb6d5d4d3be9137058adcaf8c media: atmel: atmel-isc: add microchip-xisc driver
date:   3 weeks ago
config: nios2-randconfig-r035-20210630 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9aa973884a163ecb6d5d4d3be9137058adcaf8c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c9aa973884a163ecb6d5d4d3be9137058adcaf8c
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   nios2-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o: in function `isc_async_complete':
   atmel-isc-base.c:(.text+0x279c): undefined reference to `__this_module'
>> nios2-linux-ld: atmel-isc-base.c:(.text+0x27c4): undefined reference to `__this_module'
>> nios2-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(.rodata+0x414): undefined reference to `__this_module'
>> nios2-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(__param+0x4): undefined reference to `__this_module'
   nios2-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(__param+0x18): undefined reference to `__this_module'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39203 bytes --]

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

* Re: nios2-linux-ld: atmel-isc-base.c:undefined reference to `__this_module'
  2021-06-30  7:34 nios2-linux-ld: atmel-isc-base.c:undefined reference to `__this_module' kernel test robot
@ 2021-07-01 10:06 ` Eugen.Hristev
  0 siblings, 0 replies; 2+ messages in thread
From: Eugen.Hristev @ 2021-07-01 10:06 UTC (permalink / raw)
  To: hverkuil; +Cc: lkp, kbuild-all, linux-kernel, mchehab, linux-media

On 6/30/21 10:34 AM, kernel test robot wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   007b350a58754a93ca9fe50c498cc27780171153
> commit: c9aa973884a163ecb6d5d4d3be9137058adcaf8c media: atmel: atmel-isc: add microchip-xisc driver
> date:   3 weeks ago
> config: nios2-randconfig-r035-20210630 (attached as .config)
> compiler: nios2-linux-gcc (GCC) 9.3.0
> reproduce (this is a W=1 build):
>          wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>          chmod +x ~/bin/make.cross
>          # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9aa973884a163ecb6d5d4d3be9137058adcaf8c
>          git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>          git fetch --no-tags linus master
>          git checkout c9aa973884a163ecb6d5d4d3be9137058adcaf8c
>          # save the attached .config to linux build tree
>          mkdir build_dir
>          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>     nios2-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o: in function `isc_async_complete':
>     atmel-isc-base.c:(.text+0x279c): undefined reference to `__this_module'
>>> nios2-linux-ld: atmel-isc-base.c:(.text+0x27c4): undefined reference to `__this_module'
>>> nios2-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(.rodata+0x414): undefined reference to `__this_module'
>>> nios2-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(__param+0x4): undefined reference to `__this_module'
>     nios2-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(__param+0x18): undefined reference to `__this_module'
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
> 


Hello Hans,

Could you please help me to solve this ?
The cause is that both the XISC and the ISC have the common file 
atmel-isc-base.c and building one as a module and the other as built-in 
is problematic , as atmel-isc-base.o is only built once.
One solution is to enforce the other as a module if one of them is 
selected as a module. Do you know how I can do that ?

Thanks,
Eugen

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

end of thread, other threads:[~2021-07-01 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-30  7:34 nios2-linux-ld: atmel-isc-base.c:undefined reference to `__this_module' kernel test robot
2021-07-01 10:06 ` Eugen.Hristev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).