RE: [char-misc:char-misc-next 21/24] ERROR: modpost: "auxiliary_driver_unregister" [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.ko] undefined!

From: Kumaravel.Thiagarajan
Date: Mon Sep 05 2022 - 08:17:43 EST


> -----Original Message-----
> From: kernel test robot <lkp@xxxxxxxxx>
> Sent: Monday, September 5, 2022 3:57 PM
> To: Kumaravel Thiagarajan - I21417 <Kumaravel.Thiagarajan@xxxxxxxxxxxxx>
> Cc: kbuild-all@xxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Greg Kroah-
> Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> Subject: [char-misc:char-misc-next 21/24] ERROR: modpost:
> "auxiliary_driver_unregister"
> [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.ko] undefined!
>
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the
> content is safe
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
> char-misc-next
> head: 50e177c5bfd9abc3828cb57e14e6169170f6764a
> commit: 7d3e4d807df2a216b9aa2944372f2b3f6ef3f205 [21/24] misc:
> microchip: pci1xxxx: load gpio driver for the gpio controller auxiliary device
> enumerated by the auxiliary bus driver.
> config: x86_64-randconfig-c042-20220905 (https://download.01.org/0day-
> ci/archive/20220905/202209051843.L37B3c76-lkp@xxxxxxxxx/config)
> compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build):
> # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-
> misc.git/commit/?id=7d3e4d807df2a216b9aa2944372f2b3f6ef3f205
> git remote add char-misc
> https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
> git fetch --no-tags char-misc char-misc-next
> git checkout 7d3e4d807df2a216b9aa2944372f2b3f6ef3f205
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> make W=1 O=build_dir ARCH=x86_64 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 >>, old ones prefixed by <<):
>
> ERROR: modpost: "auxiliary_device_init"
> [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.ko] undefined!
> ERROR: modpost: "__auxiliary_device_add"
> [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.ko] undefined!
> >> ERROR: modpost: "auxiliary_driver_unregister"
> [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.ko] undefined!
> >> ERROR: modpost: "__auxiliary_driver_register"
> [drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.ko] undefined!

Greg, I think I must select the AUXILIARY_BUS like below.

config GP_PCI1XXXX
tristate "Microchip PCI1XXXX PCIe to GPIO Expander + OTP/EEPROM manager"
depends on PCI
depends on GPIOLIB
select GPIOLIB_IRQCHIP
select AUXILIARY_BUS
help
PCI1XXXX is a PCIe GEN 3 switch with one of the endpoints having
multiple functions and one of the functions is a GPIO controller
which also has registers to interface with the OTP and EEPROM.
Select yes, no or module here to include or exclude the driver
for the GPIO function.

I will test my changes and send an add-on patch.

Thank You.

Regards,
Kumar