Subject: [arm-platforms:irq/gic-v4.1-devel 28/37] drivers/irqchip/irq-gic-v3-its.c:3700:3: error: implicit declaration of function 'writeq_relaxed'; did you mean 'writew_relaxed'?

From: kbuild test robot <[email-masked]>
Date: Wed, 18 Sep 2019 21:34:54 +0800

tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/gic-v4.1-devel
head:   4d3e7d5251c6b82f804bea4fe4c6d476e18722c0
commit: 5da1b7cd29c4632a7b60472f9f85b556fd362508 [28/37] irqchip/gic-v4.1: Plumb get/set_irqchip_state SGI callbacks
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5da1b7cd29c4632a7b60472f9f85b556fd362508
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <[email-masked]>

All errors (new ones prefixed by >>):

   drivers/irqchip/irq-gic-v3-its.c: In function 'inherit_vpe_l1_table_from_rd':
   drivers/irqchip/irq-gic-v3-its.c:2339:9: error: implicit declaration of function 'gits_read_vpropbaser'; did you mean 'gicr_read_vpropbaser'? [-Werror=implicit-function-declaration]
      val = gits_read_vpropbaser(base + SZ_128K + GICR_VPROPBASER);
            ^~~~~~~~~~~~~~~~~~~~
            gicr_read_vpropbaser
   drivers/irqchip/irq-gic-v3-its.c: In function 'its_sgi_set_irqchip_state':
>> drivers/irqchip/irq-gic-v3-its.c:3700:3: error: implicit declaration of function 'writeq_relaxed'; did you mean 'writew_relaxed'? [-Werror=implicit-function-declaration]
      writeq_relaxed(val, its->sgir_base + GITS_SGIR - SZ_128K);
      ^~~~~~~~~~~~~~
      writew_relaxed
   cc1: some warnings being treated as errors

vim +3700 drivers/irqchip/irq-gic-v3-its.c

  3685	
  3686	static int its_sgi_set_irqchip_state(struct irq_data *d,
  3687					     enum irqchip_irq_state which,
  3688					     bool state)
  3689	{
  3690		if (which != IRQCHIP_STATE_PENDING)
  3691			return -EINVAL;
  3692	
  3693		if (state) {
  3694			struct its_vpe *vpe = irq_data_get_irq_chip_data(d);
  3695			struct its_node *its = find_4_1_its();
  3696			u64 val;
  3697	
  3698			val  = FIELD_PREP(GITS_SGIR_VPEID, vpe->vpe_id);
  3699			val |= FIELD_PREP(GITS_SGIR_VINTID, d->hwirq);
> 3700			writeq_relaxed(val, its->sgir_base + GITS_SGIR - SZ_128K);
  3701		} else {
  3702			its_configure_sgi(d, true);
  3703		}
  3704	
  3705		return 0;
  3706	}
  3707	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel