[arm-platforms:irq/gpio-immutable 12/12] drivers/gpio/gpio-pl061.c:297:10: error: 'const struct irq_chip' has no member named 'irq_request_resource'; did you mean 'irq_request_resources'?

kernel test robot lkp at intel.com
Sun Mar 13 11:29:00 PDT 2022


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/gpio-immutable
head:   0ddc020186ee141ff434eb515e5a0eeea2afafbc
commit: 0ddc020186ee141ff434eb515e5a0eeea2afafbc [12/12] gpio: pl061: Make the irqchip immutable
config: arm-randconfig-r003-20220313 (https://download.01.org/0day-ci/archive/20220314/202203140208.3z4l3AX3-lkp@intel.com/config)
compiler: arm-linux-gnueabi-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/maz/arm-platforms.git/commit/?id=0ddc020186ee141ff434eb515e5a0eeea2afafbc
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms irq/gpio-immutable
        git checkout 0ddc020186ee141ff434eb515e5a0eeea2afafbc
        # 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=arm SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

>> drivers/gpio/gpio-pl061.c:297:10: error: 'const struct irq_chip' has no member named 'irq_request_resource'; did you mean 'irq_request_resources'?
     297 |         .irq_request_resource   = gpiochip_irq_reqres,
         |          ^~~~~~~~~~~~~~~~~~~~
         |          irq_request_resources
>> drivers/gpio/gpio-pl061.c:297:35: error: initialization of 'const char *' from incompatible pointer type 'int (*)(struct irq_data *)' [-Werror=incompatible-pointer-types]
     297 |         .irq_request_resource   = gpiochip_irq_reqres,
         |                                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpio/gpio-pl061.c:297:35: note: (near initialization for 'pl061_irq_chip.name')
>> drivers/gpio/gpio-pl061.c:298:10: error: 'const struct irq_chip' has no member named 'irq_release_resource'; did you mean 'irq_release_resources'?
     298 |         .irq_release_resource   = gpiochip_irq_relres,
         |          ^~~~~~~~~~~~~~~~~~~~
         |          irq_release_resources
>> drivers/gpio/gpio-pl061.c:298:35: error: initialization of 'unsigned int (*)(struct irq_data *)' from incompatible pointer type 'void (*)(struct irq_data *)' [-Werror=incompatible-pointer-types]
     298 |         .irq_release_resource   = gpiochip_irq_relres,
         |                                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpio/gpio-pl061.c:298:35: note: (near initialization for 'pl061_irq_chip.irq_startup')
   cc1: some warnings being treated as errors


vim +297 drivers/gpio/gpio-pl061.c

   295	
   296	static const struct irq_chip pl061_irq_chip = {
 > 297		.irq_request_resource	= gpiochip_irq_reqres,
 > 298		.irq_release_resource	= gpiochip_irq_relres,
   299		.irq_ack		= pl061_irq_ack,
   300		.irq_mask		= pl061_irq_mask,
   301		.irq_unmask		= pl061_irq_unmask,
   302		.irq_set_type		= pl061_irq_type,
   303		.irq_set_wake		= pl061_irq_set_wake,
   304		.irq_print_chip		= pl061_irq_print_chip,
   305		.flags			= IRQCHIP_IMMUTABLE,
   306	};
   307	

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



More information about the linux-arm-kernel mailing list