mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [morse:mpam/snapshot/v5.15 72/139] drivers/irqchip/irq-gic.c:1075:22: error: 'GIC_IRQ_TYPE_GSI' undeclared
@ 2021-11-14 12:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-14 12:57 UTC (permalink / raw)
  To: James Morse; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 4159 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head:   ce3629841262f725a5f3a327403fcaf0e604a85e
commit: dcb27679932e5dbe7dbc20cd40bcb4b184ccaee5 [72/139] irqchip/gic, gic-v3: Translate fwspec for DT and ACPI systems in the same way
config: arm-allyesconfig (attached as .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/morse/linux.git/commit/?id=dcb27679932e5dbe7dbc20cd40bcb4b184ccaee5
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/snapshot/v5.15
        git checkout dcb27679932e5dbe7dbc20cd40bcb4b184ccaee5
        # save the attached .config 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@intel.com>

All errors (new ones prefixed by >>):

   drivers/irqchip/irq-gic.c: In function 'gic_irq_domain_translate':
>> drivers/irqchip/irq-gic.c:1075:22: error: 'GIC_IRQ_TYPE_GSI' undeclared (first use in this function)
    1075 |                 case GIC_IRQ_TYPE_GSI:  /* GSI */
         |                      ^~~~~~~~~~~~~~~~
   drivers/irqchip/irq-gic.c:1075:22: note: each undeclared identifier is reported only once for each function it appears in
--
   drivers/irqchip/irq-gic-v3.c: In function 'gic_irq_domain_translate':
>> drivers/irqchip/irq-gic-v3.c:1423:22: error: 'GIC_IRQ_TYPE_GSI' undeclared (first use in this function)
    1423 |                 case GIC_IRQ_TYPE_GSI:  /* GSI */
         |                      ^~~~~~~~~~~~~~~~
   drivers/irqchip/irq-gic-v3.c:1423:22: note: each undeclared identifier is reported only once for each function it appears in
   drivers/irqchip/irq-gic-v3.c:1424:22: error: 'GIC_IRQ_TYPE_LPI' undeclared (first use in this function)
    1424 |                 case GIC_IRQ_TYPE_LPI:  /* LPI */
         |                      ^~~~~~~~~~~~~~~~
   drivers/irqchip/irq-gic-v3.c:1427:22: error: 'GIC_IRQ_TYPE_PARTITION' undeclared (first use in this function)
    1427 |                 case GIC_IRQ_TYPE_PARTITION:
         |                      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-gic-v3.c: In function '__partition_ppis':
   drivers/irqchip/irq-gic-v3.c:1830:43: error: 'GIC_IRQ_TYPE_PARTITION' undeclared (first use in this function)
    1830 |                                 [0]     = GIC_IRQ_TYPE_PARTITION,
         |                                           ^~~~~~~~~~~~~~~~~~~~~~


vim +/GIC_IRQ_TYPE_GSI +1075 drivers/irqchip/irq-gic.c

  1050	
  1051	static int gic_irq_domain_translate(struct irq_domain *d,
  1052					    struct irq_fwspec *fwspec,
  1053					    unsigned long *hwirq,
  1054					    unsigned int *type)
  1055	{
  1056		if (fwspec->param_count == 1 && fwspec->param[0] < 16) {
  1057			*hwirq = fwspec->param[0];
  1058			*type = IRQ_TYPE_EDGE_RISING;
  1059			return 0;
  1060		}
  1061	
  1062	
  1063		if (is_of_node(fwspec->fwnode) ||
  1064		    is_fwnode_irqchip(fwspec->fwnode)) {
  1065			if (fwspec->param_count < 3)
  1066				return -EINVAL;
  1067	
  1068			switch (fwspec->param[0]) {
  1069			case 0:			/* SPI */
  1070				*hwirq = fwspec->param[1] + 32;
  1071				break;
  1072			case 1:			/* PPI */
  1073				*hwirq = fwspec->param[1] + 16;
  1074				break;
> 1075			case GIC_IRQ_TYPE_GSI:	/* GSI */
  1076				*hwirq = fwspec->param[1];
  1077				break;
  1078			default:
  1079				return -EINVAL;
  1080			}
  1081	
  1082			*type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
  1083	
  1084			/* Make it clear that broken DTs are... broken */
  1085			WARN_ON(*type == IRQ_TYPE_NONE);
  1086			return 0;
  1087		}
  1088	
  1089		return -EINVAL;
  1090	}
  1091	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 79308 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-14 13:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-14 12:57 [morse:mpam/snapshot/v5.15 72/139] drivers/irqchip/irq-gic.c:1075:22: error: 'GIC_IRQ_TYPE_GSI' undeclared kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®