Re: [linux-next:master 7551/8605] corsair-cpro.c:undefined reference to `hid_hw_close'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 18, 2022 at 8:47 AM kernel test robot <lkp@xxxxxxxxx> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   147307c69ba4441ee90c1f8ce8edf5df4ea60f67
> commit: 25621bcc89762fe1329ae9c9dab75bc70ef1aee0 [7551/8605] HID: Kconfig: split HID support and hid-core compilation
> config: csky-randconfig-c003-20221118
> compiler: csky-linux-gcc (GCC) 12.1.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/next/linux-next.git/commit/?id=25621bcc89762fe1329ae9c9dab75bc70ef1aee0
>         git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>         git fetch --no-tags linux-next master
>         git checkout 25621bcc89762fe1329ae9c9dab75bc70ef1aee0
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
>    csky-linux-ld: drivers/hwmon/corsair-cpro.o: in function `ccp_remove':
> >> corsair-cpro.c:(.text+0x84): undefined reference to `hid_hw_close'
> >> csky-linux-ld: corsair-cpro.c:(.text+0x8a): undefined reference to `hid_hw_stop'
>    csky-linux-ld: drivers/hwmon/corsair-cpro.o: in function `ccp_is_visible':
>    corsair-cpro.c:(.text+0x17c): undefined reference to `hid_hw_close'
>    csky-linux-ld: corsair-cpro.c:(.text+0x180): undefined reference to `hid_hw_stop'
>    csky-linux-ld: drivers/hwmon/corsair-cpro.o: in function `send_usb_cmd':
> >> corsair-cpro.c:(.text+0x1b8): undefined reference to `hid_hw_output_report'
>    csky-linux-ld: drivers/hwmon/corsair-cpro.o: in function `ccp_write':
>    corsair-cpro.c:(.text+0x2bc): undefined reference to `hid_hw_output_report'
>    csky-linux-ld: drivers/hwmon/corsair-cpro.o: in function `ccp_probe':
> >> corsair-cpro.c:(.text+0x382): undefined reference to `hid_open_report'
> >> csky-linux-ld: corsair-cpro.c:(.text+0x39e): undefined reference to `hid_hw_start'
> >> csky-linux-ld: corsair-cpro.c:(.text+0x3aa): undefined reference to `hid_hw_open'
>    csky-linux-ld: corsair-cpro.c:(.text+0x3b6): undefined reference to `hid_hw_stop'
> >> csky-linux-ld: corsair-cpro.c:(.text+0x4c4): undefined reference to `hid_open_report'
>    csky-linux-ld: corsair-cpro.c:(.text+0x4c8): undefined reference to `hid_hw_start'
>    csky-linux-ld: corsair-cpro.c:(.text+0x4cc): undefined reference to `hid_hw_open'
>    csky-linux-ld: corsair-cpro.c:(.text+0x4d0): undefined reference to `hid_hw_stop'
> >> csky-linux-ld: corsair-cpro.c:(.text+0x51c): undefined reference to `hid_hw_close'
>    csky-linux-ld: drivers/hwmon/corsair-cpro.o: in function `ccp_read':
>    corsair-cpro.c:(.text+0x60c): undefined reference to `hid_hw_close'
>    csky-linux-ld: drivers/hwmon/corsair-cpro.o: in function `ccp_init':
> >> corsair-cpro.c:(.init.text+0x8): undefined reference to `__hid_register_driver'
> >> csky-linux-ld: corsair-cpro.c:(.init.text+0x1c): undefined reference to `__hid_register_driver'
>    csky-linux-ld: drivers/hwmon/corsair-psu.o: in function `corsairpsu_remove':
> >> corsair-psu.c:(.text+0x1e8): undefined reference to `hid_hw_close'
> >> csky-linux-ld: corsair-psu.c:(.text+0x1ee): undefined reference to `hid_hw_stop'
>    csky-linux-ld: drivers/hwmon/corsair-psu.o: in function `corsairpsu_usb_cmd':
> >> corsair-psu.c:(.text+0x228): undefined reference to `hid_hw_output_report'
>    csky-linux-ld: drivers/hwmon/corsair-psu.o: in function `corsairpsu_get_value':
>    corsair-psu.c:(.text+0x2fc): undefined reference to `hid_hw_close'
>    csky-linux-ld: corsair-psu.c:(.text+0x300): undefined reference to `hid_hw_stop'
> >> csky-linux-ld: corsair-psu.c:(.text+0x308): undefined reference to `hid_hw_output_report'
>    csky-linux-ld: drivers/hwmon/corsair-psu.o: in function `corsairpsu_probe':
> >> corsair-psu.c:(.text+0x5f2): undefined reference to `hid_open_report'
> >> csky-linux-ld: corsair-psu.c:(.text+0x60e): undefined reference to `hid_hw_start'
> >> csky-linux-ld: corsair-psu.c:(.text+0x61a): undefined reference to `hid_hw_open'
>    csky-linux-ld: corsair-psu.c:(.text+0x626): undefined reference to `hid_hw_stop'
> >> csky-linux-ld: corsair-psu.c:(.text+0x7c0): undefined reference to `hid_hw_close'
> >> csky-linux-ld: corsair-psu.c:(.text+0x7cc): undefined reference to `hid_open_report'
>    csky-linux-ld: corsair-psu.c:(.text+0x7d0): undefined reference to `hid_hw_start'
>    csky-linux-ld: corsair-psu.c:(.text+0x7d4): undefined reference to `hid_hw_open'
>    csky-linux-ld: corsair-psu.c:(.text+0x7d8): undefined reference to `hid_hw_stop'
>    csky-linux-ld: corsair-psu.c:(.text+0x808): undefined reference to `hid_hw_close'
>    csky-linux-ld: drivers/hwmon/corsair-psu.o: in function `corsairpsu_driver_init':
> >> corsair-psu.c:(.init.text+0x8): undefined reference to `__hid_register_driver'
>    csky-linux-ld: corsair-psu.c:(.init.text+0x1c): undefined reference to `__hid_register_driver'
>    csky-linux-ld: drivers/staging/greybus/hid.o: in function `gb_hid_disconnect':
>    hid.c:(.text+0x6): undefined reference to `hid_destroy_device'
>    csky-linux-ld: drivers/staging/greybus/hid.o: in function `gb_hid_stop':
>    hid.c:(.text+0x38): undefined reference to `hid_destroy_device'
>    csky-linux-ld: drivers/staging/greybus/hid.o: in function `gb_hid_request_handler':
>    hid.c:(.text+0x84): undefined reference to `hid_input_report'
>    csky-linux-ld: hid.c:(.text+0x98): undefined reference to `hid_input_report'
>    csky-linux-ld: drivers/staging/greybus/hid.o: in function `gb_hid_parse':
>    hid.c:(.text+0xf6): undefined reference to `hid_parse_report'
>    csky-linux-ld: drivers/staging/greybus/hid.o: in function `gb_hid_init_report':
>    hid.c:(.text+0x1a8): undefined reference to `hid_report_raw_event'
>    csky-linux-ld: hid.c:(.text+0x1c0): undefined reference to `hid_parse_report'
>    csky-linux-ld: hid.c:(.text+0x1c8): undefined reference to `hid_debug'
>    csky-linux-ld: hid.c:(.text+0x1e4): undefined reference to `hid_report_raw_event'
>    csky-linux-ld: drivers/staging/greybus/hid.o: in function `gb_hid_probe':
>    hid.c:(.text+0x32c): undefined reference to `hid_allocate_device'
>    csky-linux-ld: hid.c:(.text+0x34a): undefined reference to `hid_destroy_device'
>    csky-linux-ld: hid.c:(.text+0x3ea): undefined reference to `hid_add_device'
>    csky-linux-ld: hid.c:(.text+0x41a): undefined reference to `hid_add_device'
>    csky-linux-ld: drivers/staging/greybus/hid.o: in function `gb_hid_open':
>    hid.c:(.text+0x490): undefined reference to `hid_allocate_device'
>    csky-linux-ld: hid.c:(.text+0x498): undefined reference to `hid_destroy_device'
>    csky-linux-ld: hid.c:(.text+0x4b4): undefined reference to `hid_add_device'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_parse':
>    core.c:(.text+0x32): undefined reference to `hid_parse_report'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_set_timer':
>    core.c:(.text+0x9c): undefined reference to `hid_parse_report'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_session_new':
>    core.c:(.text+0x490): undefined reference to `hid_allocate_device'
>    csky-linux-ld: core.c:(.text+0x504): undefined reference to `hid_ignore'
>    csky-linux-ld: core.c:(.text+0x510): undefined reference to `hid_destroy_device'
>    csky-linux-ld: core.c:(.text+0x560): undefined reference to `hid_allocate_device'
>    csky-linux-ld: core.c:(.text+0x574): undefined reference to `hid_ignore'
>    csky-linux-ld: core.c:(.text+0x578): undefined reference to `hid_destroy_device'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_session_dev_add':
>    core.c:(.text+0xea4): undefined reference to `hid_add_device'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_start':
>    core.c:(.text+0xef4): undefined reference to `hid_add_device'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_session_probe':
>    core.c:(.text+0x123e): undefined reference to `hid_destroy_device'
>    csky-linux-ld: core.c:(.text+0x1290): undefined reference to `hid_destroy_device'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_process_data':
>    core.c:(.text+0x1394): undefined reference to `hid_input_report'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_idle_timeout':
>    core.c:(.text+0x1478): undefined reference to `hid_input_report'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_session_remove':
>    core.c:(.text+0x14da): undefined reference to `hid_destroy_device'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_session_dev_work':
>    core.c:(.text+0x15c8): undefined reference to `hid_destroy_device'
>    csky-linux-ld: net/bluetooth/hidp/core.o: in function `hidp_session_run':
>    core.c:(.text+0x1852): undefined reference to `hid_input_report'
>    csky-linux-ld: core.c:(.text+0x1928): undefined reference to `hid_input_report'
>
> Kconfig warnings: (for reference only)
>    WARNING: unmet direct dependencies detected for HID
>    Depends on [n]: HID_SUPPORT [=n]
>    Selected by [y]:
>    - BT_HIDP [=y] && NET [=y] && BT_BREDR [=y] && INPUT [=y]

The problem comes from this warning. Basically, HID should not be
selected if HID_SUPPORT is not, which is what BT_HIDP allows in
linux-next ATM. Fix on its way.

Cheers,
Benjamin

>
> --
> 0-DAY CI Kernel Test Service
> https://01.org/lkp





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux