* via-pmu-event.c:undefined reference to `input_event'
@ 2022-03-18 16:24 kernel test robot
2022-03-19 1:16 ` Finn Thain
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-03-18 16:24 UTC (permalink / raw)
To: Finn Thain; +Cc: kbuild-all, linux-kernel, Michael Ellerman, Geert Uytterhoeven
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 551acdc3c3d2b6bc97f11e31dcf960bc36343bfc
commit: ebd722275f9cfc6752e29d2412fa3816ca05764b macintosh/via-pmu: Replace via-pmu68k driver with via-pmu driver
date: 3 years, 8 months ago
config: m68k-randconfig-r021-20220317 (https://download.01.org/0day-ci/archive/20220319/202203190015.8LPNVVK5-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.2.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=ebd722275f9cfc6752e29d2412fa3816ca05764b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ebd722275f9cfc6752e29d2412fa3816ca05764b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k 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 >>):
m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event':
>> via-pmu-event.c:(.text+0x32): undefined reference to `input_event'
>> m68k-linux-ld: via-pmu-event.c:(.text+0x54): undefined reference to `input_event'
m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event_init':
>> via-pmu-event.c:(.init.text+0xe): undefined reference to `input_allocate_device'
>> m68k-linux-ld: via-pmu-event.c:(.init.text+0x56): undefined reference to `input_register_device'
>> m68k-linux-ld: via-pmu-event.c:(.init.text+0x68): undefined reference to `input_free_device'
m68k-linux-ld: net/batman-adv/sysfs.o: in function `batadv_store_bool_attr':
sysfs.c:(.text+0x36e): undefined reference to `strcmp'
m68k-linux-ld: sysfs.c:(.text+0x3aa): undefined reference to `strcmp'
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: via-pmu-event.c:undefined reference to `input_event'
2022-03-18 16:24 via-pmu-event.c:undefined reference to `input_event' kernel test robot
@ 2022-03-19 1:16 ` Finn Thain
2022-03-19 4:16 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Finn Thain @ 2022-03-19 1:16 UTC (permalink / raw)
To: kernel test robot
Cc: kbuild-all, linux-kernel, Michael Ellerman, Geert Uytterhoeven
On Sat, 19 Mar 2022, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 551acdc3c3d2b6bc97f11e31dcf960bc36343bfc
> commit: ebd722275f9cfc6752e29d2412fa3816ca05764b macintosh/via-pmu: Replace via-pmu68k driver with via-pmu driver
> date: 3 years, 8 months ago
> config: m68k-randconfig-r021-20220317 (https://download.01.org/0day-ci/archive/20220319/202203190015.8LPNVVK5-lkp@intel.com/config)
> compiler: m68k-linux-gcc (GCC) 11.2.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=ebd722275f9cfc6752e29d2412fa3816ca05764b
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout ebd722275f9cfc6752e29d2412fa3816ca05764b
> # save the config file to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k 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 >>):
>
> m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event':
> >> via-pmu-event.c:(.text+0x32): undefined reference to `input_event'
> >> m68k-linux-ld: via-pmu-event.c:(.text+0x54): undefined reference to `input_event'
> m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event_init':
> >> via-pmu-event.c:(.init.text+0xe): undefined reference to `input_allocate_device'
> >> m68k-linux-ld: via-pmu-event.c:(.init.text+0x56): undefined reference to `input_register_device'
> >> m68k-linux-ld: via-pmu-event.c:(.init.text+0x68): undefined reference to `input_free_device'
That config file has CONFIG_INPUT=n which is unusual. The problem affects
m68k builds since I enabled the driver 3 years ago but powerpc builds have
always been affected by this.
via_pmu_event() does nothing unless the hardware happens to be a
particular powerpc PMU models but that logic is questionable (see comment
in via-pmu-event.c). So I think the best solution is to make the
via_pmu_event() code conditional on CONFIG_INPUT.
I'll send a patch to that effect.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: via-pmu-event.c:undefined reference to `input_event'
2022-03-19 1:16 ` Finn Thain
@ 2022-03-19 4:16 ` Randy Dunlap
0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2022-03-19 4:16 UTC (permalink / raw)
To: Finn Thain, kernel test robot
Cc: kbuild-all, linux-kernel, Michael Ellerman, Geert Uytterhoeven
On 3/18/22 18:16, Finn Thain wrote:
> On Sat, 19 Mar 2022, kernel test robot wrote:
>
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head: 551acdc3c3d2b6bc97f11e31dcf960bc36343bfc
>> commit: ebd722275f9cfc6752e29d2412fa3816ca05764b macintosh/via-pmu: Replace via-pmu68k driver with via-pmu driver
>> date: 3 years, 8 months ago
>> config: m68k-randconfig-r021-20220317 (https://download.01.org/0day-ci/archive/20220319/202203190015.8LPNVVK5-lkp@intel.com/config)
>> compiler: m68k-linux-gcc (GCC) 11.2.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=ebd722275f9cfc6752e29d2412fa3816ca05764b
>> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>> git fetch --no-tags linus master
>> git checkout ebd722275f9cfc6752e29d2412fa3816ca05764b
>> # save the config file to linux build tree
>> mkdir build_dir
>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k 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 >>):
>>
>> m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event':
>>>> via-pmu-event.c:(.text+0x32): undefined reference to `input_event'
>>>> m68k-linux-ld: via-pmu-event.c:(.text+0x54): undefined reference to `input_event'
>> m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event_init':
>>>> via-pmu-event.c:(.init.text+0xe): undefined reference to `input_allocate_device'
>>>> m68k-linux-ld: via-pmu-event.c:(.init.text+0x56): undefined reference to `input_register_device'
>>>> m68k-linux-ld: via-pmu-event.c:(.init.text+0x68): undefined reference to `input_free_device'
>
> That config file has CONFIG_INPUT=n which is unusual. The problem affects
> m68k builds since I enabled the driver 3 years ago but powerpc builds have
> always been affected by this.
>
> via_pmu_event() does nothing unless the hardware happens to be a
> particular powerpc PMU models but that logic is questionable (see comment
> in via-pmu-event.c). So I think the best solution is to make the
> via_pmu_event() code conditional on CONFIG_INPUT.
>
> I'll send a patch to that effect.
Hi Finn,
That's what I was planning to do also, but I'll leave it to you.
thanks.
--
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-19 4:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18 16:24 via-pmu-event.c:undefined reference to `input_event' kernel test robot
2022-03-19 1:16 ` Finn Thain
2022-03-19 4:16 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®