[arm-platforms:irq/gpio-immutable 12/12] drivers/gpio/gpio-pl061.c:297:3: error: field designator 'irq_request_resource' does not refer to any field in type 'const struct irq_chip'; did you mean 'irq_request_resources'?

kernel test robot lkp at intel.com
Sun Mar 13 09:07:21 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-buildonly-randconfig-r001-20220313 (https://download.01.org/0day-ci/archive/20220313/202203132300.UZKclCS6-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0467eb2cb7654c15ae366967ef35093c5724c416)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # 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=clang make.cross W=1 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:3: error: field designator 'irq_request_resource' does not refer to any field in type 'const struct irq_chip'; did you mean 'irq_request_resources'?
           .irq_request_resource   = gpiochip_irq_reqres,
            ^~~~~~~~~~~~~~~~~~~~
            irq_request_resources
   include/linux/irq.h:536:9: note: 'irq_request_resources' declared here
           int             (*irq_request_resources)(struct irq_data *data);
                             ^
>> drivers/gpio/gpio-pl061.c:298:3: error: field designator 'irq_release_resource' does not refer to any field in type 'const struct irq_chip'; did you mean 'irq_release_resources'?
           .irq_release_resource   = gpiochip_irq_relres,
            ^~~~~~~~~~~~~~~~~~~~
            irq_release_resources
   include/linux/irq.h:537:10: note: 'irq_release_resources' declared here
           void            (*irq_release_resources)(struct irq_data *data);
                             ^
   2 errors generated.


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