All of lore.kernel.org
 help / color / mirror / Atom feed
* [morse:mpam/snapshot/v5.15 72/139] drivers/irqchip/irq-gic.c:1075:8: error: use of undeclared identifier 'GIC_IRQ_TYPE_GSI'
@ 2021-11-16 10:07 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-16 10:07 UTC (permalink / raw)
  To: James Morse; +Cc: llvm, kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2947 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-randconfig-r031-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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/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=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/irqchip/

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:1075:8: error: use of undeclared identifier 'GIC_IRQ_TYPE_GSI'
                   case GIC_IRQ_TYPE_GSI:  /* GSI */
                        ^
   1 error generated.


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: 46126 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [morse:mpam/snapshot/v5.15 72/139] drivers/irqchip/irq-gic.c:1075:8: error: use of undeclared identifier 'GIC_IRQ_TYPE_GSI'
@ 2021-11-16 10:07 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-16 10:07 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3026 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-randconfig-r031-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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/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=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/irqchip/

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:1075:8: error: use of undeclared identifier 'GIC_IRQ_TYPE_GSI'
                   case GIC_IRQ_TYPE_GSI:  /* GSI */
                        ^
   1 error generated.


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(a)lists.01.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-16 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 10:07 [morse:mpam/snapshot/v5.15 72/139] drivers/irqchip/irq-gic.c:1075:8: error: use of undeclared identifier 'GIC_IRQ_TYPE_GSI' kernel test robot
2021-11-16 10:07 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.