[arm-platforms:irq/irq_chip_ro 12/20] drivers/gpio/gpio-omap.c:716:41: error: member reference type 'struct gpio_chip' is not a pointer; did you mean to use '.'?

kernel test robot lkp at intel.com
Tue Feb 1 00:53:59 PST 2022


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/irq_chip_ro
head:   218869493fda68e8c327a6484f5a6973a3008729
commit: bb36fd119ef0dcee7e0e7e5f9fd11d5221bf5f73 [12/20] gpio: omap: Switch to dynamic chip name output
config: arm-randconfig-r002-20220131 (https://download.01.org/0day-ci/archive/20220201/202202011652.44VOL7NK-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6b1e844b69f15bb7dffaf9365cd2b355d2eb7579)
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=bb36fd119ef0dcee7e0e7e5f9fd11d5221bf5f73
        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/irq_chip_ro
        git checkout bb36fd119ef0dcee7e0e7e5f9fd11d5221bf5f73
        # 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-omap.c:716:41: error: member reference type 'struct gpio_chip' is not a pointer; did you mean to use '.'?
           seq_printf(p, "%s", dev_name(bank->chip->dev));
                                        ~~~~~~~~~~^~
                                                  .
>> drivers/gpio/gpio-omap.c:716:43: error: no member named 'dev' in 'struct gpio_chip'
           seq_printf(p, "%s", dev_name(bank->chip->dev));
                                        ~~~~~~~~~~  ^
   2 errors generated.


vim +716 drivers/gpio/gpio-omap.c

   711	
   712	static void omap_gpio_irq_print_chip(struct irq_data *d, struct seq_file *p)
   713	{
   714		struct gpio_bank *bank = omap_irq_data_get_bank(d);
   715	
 > 716		seq_printf(p, "%s", dev_name(bank->chip->dev));
   717	}
   718	

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



More information about the linux-arm-kernel mailing list