loongson2_pm.c:undefined reference to `input_allocate_device'

kernel test robot
2023-09-03T00:00:41Z

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 92901222f83d988617aee37680cb29e1a743b5e4
commit: 67694c076bd7d6b8b73c59d4881822f0493caf35 soc: loongson2_pm: add power management support
date: 12 days ago
config: loongarch-randconfig-r004-20230903 (https://download.01.org/0day-ci/archive/20230903/202309030723.tbXa6lNB-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/202309030723.tbXa6lNB-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/202309030723.tbXa6lNB-lkp@intel.com/

All errors (new ones prefixed by >>):

loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.L7':
>> loongson2_pm.c:(.text+0x9c): undefined reference to `input_allocate_device'
>> loongarch64-linux-ld: loongson2_pm.c:(.text+0xd4): undefined reference to `input_set_capability'
>> loongarch64-linux-ld: loongson2_pm.c:(.text+0xdc): undefined reference to `input_register_device'
>> loongarch64-linux-ld: loongson2_pm.c:(.text+0xe8): undefined reference to `input_free_device'
loongarch64-linux-ld: drivers/soc/loongson/loongson2_pm.o: in function `.L47':
>> loongson2_pm.c:(.text+0x2bc): undefined reference to `input_event'
>> loongarch64-linux-ld: loongson2_pm.c:(.text+0x2d0): undefined reference to `input_event'
loongarch64-linux-ld: loongson2_pm.c:(.text+0x2e4): undefined reference to `input_event'
loongarch64-linux-ld: loongson2_pm.c:(.text+0x2f8): undefined reference to `input_event'

--
0-DAY CI Kernel Test Service