public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* loongson2_pm.c:undefined reference to `input_free_device'
@ 2023-09-02 23:17 kernel test robot
  2023-09-05 11:12 ` Yinbo Zhu
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2023-09-02 23:17 UTC (permalink / raw)
  To: Yinbo Zhu; +Cc: oe-kbuild-all, linux-kernel, Arnd Bergmann, Liu Yun, Liu Peibao

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b89b029377c8c441649c7a6be908386e74ea9420
commit: 67694c076bd7d6b8b73c59d4881822f0493caf35 soc: loongson2_pm: add power management support
date:   12 days ago
config: loongarch-randconfig-r014-20230903 (https://download.01.org/0day-ci/archive/20230903/202309030751.pDnTZX4E-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230903/202309030751.pDnTZX4E-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/202309030751.pDnTZX4E-lkp@intel.com/

All errors (new ones prefixed by >>):

   loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBB191':
   loongson2_pm.c:(.text+0x10c): undefined reference to `input_allocate_device'
   loongarch64-linux-ld: loongson2_pm.c:(.text+0x144): undefined reference to `input_set_capability'
   loongarch64-linux-ld: loongson2_pm.c:(.text+0x14c): undefined reference to `input_register_device'
   loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBB240':
>> loongson2_pm.c:(.text+0x25c): undefined reference to `input_free_device'
   loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBB387':
   loongson2_pm.c:(.text+0x390): undefined reference to `input_event'
   loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBE387':
   loongson2_pm.c:(.text+0x3a4): undefined reference to `input_event'
   loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBE389':
   loongson2_pm.c:(.text+0x3b8): undefined reference to `input_event'
   loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBE391':
   loongson2_pm.c:(.text+0x3cc): undefined reference to `input_event'

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

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

* Re: loongson2_pm.c:undefined reference to `input_free_device'
  2023-09-02 23:17 loongson2_pm.c:undefined reference to `input_free_device' kernel test robot
@ 2023-09-05 11:12 ` Yinbo Zhu
  2023-09-05 11:51   ` Yinbo Zhu
  0 siblings, 1 reply; 3+ messages in thread
From: Yinbo Zhu @ 2023-09-05 11:12 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, linux-kernel, Arnd Bergmann, Liu Yun, zhuyinbo



在 2023/9/3 上午7:17, kernel test robot 写道:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   b89b029377c8c441649c7a6be908386e74ea9420
> commit: 67694c076bd7d6b8b73c59d4881822f0493caf35 soc: loongson2_pm: add power management support
> date:   12 days ago
> config: loongarch-randconfig-r014-20230903 (https://download.01.org/0day-ci/archive/20230903/202309030751.pDnTZX4E-lkp@intel.com/config)
> compiler: loongarch64-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230903/202309030751.pDnTZX4E-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/202309030751.pDnTZX4E-lkp@intel.com/
> 
> All errors (new ones prefixed by >>): >
>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBB191':
>     loongson2_pm.c:(.text+0x10c): undefined reference to `input_allocate_device'
>     loongarch64-linux-ld: loongson2_pm.c:(.text+0x144): undefined reference to `input_set_capability'
>     loongarch64-linux-ld: loongson2_pm.c:(.text+0x14c): undefined reference to `input_register_device'


I will add linux/input.h to fix this issue.

Thanks,
Yinbo
>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBB240':
>>> loongson2_pm.c:(.text+0x25c): undefined reference to `input_free_device'
>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBB387':
>     loongson2_pm.c:(.text+0x390): undefined reference to `input_event'
>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBE387':
>     loongson2_pm.c:(.text+0x3a4): undefined reference to `input_event'
>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBE389':
>     loongson2_pm.c:(.text+0x3b8): undefined reference to `input_event'
>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.LBE391':
>     loongson2_pm.c:(.text+0x3cc): undefined reference to `input_event'
> 


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

* Re: loongson2_pm.c:undefined reference to `input_free_device'
  2023-09-05 11:12 ` Yinbo Zhu
@ 2023-09-05 11:51   ` Yinbo Zhu
  0 siblings, 0 replies; 3+ messages in thread
From: Yinbo Zhu @ 2023-09-05 11:51 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, linux-kernel, Arnd Bergmann, Liu Yun, zhuyinbo



在 2023/9/5 下午7:12, Yinbo Zhu 写道:
> 
> 
> 在 2023/9/3 上午7:17, kernel test robot 写道:
>> tree:   
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   b89b029377c8c441649c7a6be908386e74ea9420
>> commit: 67694c076bd7d6b8b73c59d4881822f0493caf35 soc: loongson2_pm: 
>> add power management support
>> date:   12 days ago
>> config: loongarch-randconfig-r014-20230903 
>> (https://download.01.org/0day-ci/archive/20230903/202309030751.pDnTZX4E-lkp@intel.com/config) 
>>
>> compiler: loongarch64-linux-gcc (GCC) 13.2.0
>> reproduce (this is a W=1 build): 
>> (https://download.01.org/0day-ci/archive/20230903/202309030751.pDnTZX4E-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/202309030751.pDnTZX4E-lkp@intel.com/ 
>>
>>
>> All errors (new ones prefixed by >>): >
>>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in 
>> function `.LBB191':
>>     loongson2_pm.c:(.text+0x10c): undefined reference to 
>> `input_allocate_device'
>>     loongarch64-linux-ld: loongson2_pm.c:(.text+0x144): undefined 
>> reference to `input_set_capability'
>>     loongarch64-linux-ld: loongson2_pm.c:(.text+0x14c): undefined 
>> reference to `input_register_device'
> 
> 
> I will add linux/input.h to fix this issue.
> 


Sorry, what I said earlier was incorrect.  It needs to add an "INPUT"
dependency.

  config LOONGSON2_PM
         bool "Loongson-2 SoC Power Management Controller Driver"
         depends on LOONGARCH && OF
+       depends on INPUT

Thanks,
Yinbo

>>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in 
>> function `.LBB240':
>>>> loongson2_pm.c:(.text+0x25c): undefined reference to 
>>>> `input_free_device'
>>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in 
>> function `.LBB387':
>>     loongson2_pm.c:(.text+0x390): undefined reference to `input_event'
>>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in 
>> function `.LBE387':
>>     loongson2_pm.c:(.text+0x3a4): undefined reference to `input_event'
>>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in 
>> function `.LBE389':
>>     loongson2_pm.c:(.text+0x3b8): undefined reference to `input_event'
>>     loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in 
>> function `.LBE391':
>>     loongson2_pm.c:(.text+0x3cc): undefined reference to `input_event'
>>


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

end of thread, other threads:[~2023-09-05 16:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-02 23:17 loongson2_pm.c:undefined reference to `input_free_device' kernel test robot
2023-09-05 11:12 ` Yinbo Zhu
2023-09-05 11:51   ` Yinbo Zhu

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