[morse:mpam/snapshot/v5.15 72/139] drivers/irqchip/irq-gic.c:1075:8: error: use of undeclared identifier 'GIC_IRQ_TYPE_GSI'

From: kernel test robot
Date: Tue Nov 16 2021 - 05:08:17 EST


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@xxxxxxxxx>

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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip