[xlnx:xlnx_rebase_v5.10 961/1760] drivers/irqchip/irq-xilinx-intc.c:175:10: error: implicit declaration of function 'handle_domain_irq'

kernel test robot lkp at intel.com
Wed Aug 11 21:27:20 PDT 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head:   bf98c1493fb23bfd7e2678498b7e337ce2cd1d53
commit: ec26ada995b2cdeda14911845e1884150e099d5b [961/1760] irqchip: xilinx: Use handle_domain_irq()
config: s390-randconfig-r011-20210812 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 767496d19cb9a1fbba57ff08095faa161998ee36)
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 s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        # https://github.com/Xilinx/linux-xlnx/commit/ec26ada995b2cdeda14911845e1884150e099d5b
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.10
        git checkout ec26ada995b2cdeda14911845e1884150e099d5b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 

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 >>):

           ___constant_swab32(x) :                 \
                              ^
   include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32'
           (((__u32)(x) & (__u32)0x000000ffUL) << 24) |            \
                     ^
   In file included from drivers/irqchip/irq-xilinx-intc.c:13:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/s390/include/asm/io.h:80:
   include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
                                                             ^
   include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
           ___constant_swab32(x) :                 \
                              ^
   include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
           (((__u32)(x) & (__u32)0x0000ff00UL) <<  8) |            \
                     ^
   In file included from drivers/irqchip/irq-xilinx-intc.c:13:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/s390/include/asm/io.h:80:
   include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
                                                             ^
   include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
           ___constant_swab32(x) :                 \
                              ^
   include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
           (((__u32)(x) & (__u32)0x00ff0000UL) >>  8) |            \
                     ^
   In file included from drivers/irqchip/irq-xilinx-intc.c:13:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/s390/include/asm/io.h:80:
   include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
                                                             ^
   include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
           ___constant_swab32(x) :                 \
                              ^
   include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
           (((__u32)(x) & (__u32)0xff000000UL) >> 24)))
                     ^
   In file included from drivers/irqchip/irq-xilinx-intc.c:13:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/s390/include/asm/io.h:80:
   include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
                                                             ^
   include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
           __fswab32(x))
                     ^
   In file included from drivers/irqchip/irq-xilinx-intc.c:13:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/s390/include/asm/io.h:80:
   include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writeb(value, PCI_IOBASE + addr);
                               ~~~~~~~~~~ ^
   include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
   include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
   include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           readsb(PCI_IOBASE + addr, buffer, count);
                  ~~~~~~~~~~ ^
   include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           readsw(PCI_IOBASE + addr, buffer, count);
                  ~~~~~~~~~~ ^
   include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           readsl(PCI_IOBASE + addr, buffer, count);
                  ~~~~~~~~~~ ^
   include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           writesb(PCI_IOBASE + addr, buffer, count);
                   ~~~~~~~~~~ ^
   include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           writesw(PCI_IOBASE + addr, buffer, count);
                   ~~~~~~~~~~ ^
   include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           writesl(PCI_IOBASE + addr, buffer, count);
                   ~~~~~~~~~~ ^
   drivers/irqchip/irq-xilinx-intc.c:173:17: error: no member named 'read_fn' in 'struct xintc_irq_chip'
                   hwirq = irqc->read_fn(irqc->base + IVR);
                           ~~~~  ^
>> drivers/irqchip/irq-xilinx-intc.c:175:10: error: implicit declaration of function 'handle_domain_irq' [-Werror,-Wimplicit-function-declaration]
                           ret = handle_domain_irq(irqc->root_domain, hwirq, regs);
                                 ^
   drivers/irqchip/irq-xilinx-intc.c:192:2: error: use of undeclared identifier 'ret'
           ret = of_property_read_u32(intc, "cpu-id", &cpu_id);
           ^
   drivers/irqchip/irq-xilinx-intc.c:193:6: error: use of undeclared identifier 'ret'
           if (ret < 0)
               ^
   drivers/irqchip/irq-xilinx-intc.c:213:2: error: use of undeclared identifier 'ret'
           ret = of_property_read_u32(intc, "xlnx,num-intr-inputs", &irqc->nr_irq);
           ^
   drivers/irqchip/irq-xilinx-intc.c:214:6: error: use of undeclared identifier 'ret'
           if (ret < 0) {
               ^
   drivers/irqchip/irq-xilinx-intc.c:219:2: error: use of undeclared identifier 'ret'
           ret = of_property_read_u32(intc, "xlnx,kind-of-intr", &irqc->intr_mask);
           ^
   drivers/irqchip/irq-xilinx-intc.c:220:6: error: use of undeclared identifier 'ret'
           if (ret < 0) {
               ^
   drivers/irqchip/irq-xilinx-intc.c:252:3: error: use of undeclared identifier 'ret'
                   ret = -EINVAL;
                   ^
   drivers/irqchip/irq-xilinx-intc.c:257:3: error: use of undeclared identifier 'irq'; did you mean 'irqc'?
                   irq = irq_of_parse_and_map(intc, 0);
                   ^~~
                   irqc
   drivers/irqchip/irq-xilinx-intc.c:188:25: note: 'irqc' declared here
           struct xintc_irq_chip *irqc;
                                  ^
   drivers/irqchip/irq-xilinx-intc.c:257:7: warning: incompatible integer to pointer conversion assigning to 'struct xintc_irq_chip *' from 'unsigned int' [-Wint-conversion]
                   irq = irq_of_parse_and_map(intc, 0);
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-xilinx-intc.c:258:7: error: use of undeclared identifier 'irq'; did you mean 'irqc'?
                   if (irq) {
                       ^~~
                       irqc
   drivers/irqchip/irq-xilinx-intc.c:188:25: note: 'irqc' declared here
           struct xintc_irq_chip *irqc;
                                  ^
   drivers/irqchip/irq-xilinx-intc.c:259:37: error: use of undeclared identifier 'irq'; did you mean 'irqc'?
                           irq_set_chained_handler_and_data(irq,
                                                            ^~~
                                                            irqc
   drivers/irqchip/irq-xilinx-intc.c:188:25: note: 'irqc' declared here
           struct xintc_irq_chip *irqc;
                                  ^
   drivers/irqchip/irq-xilinx-intc.c:264:4: error: use of undeclared identifier 'ret'
                           ret = -EINVAL;
                           ^
   drivers/irqchip/irq-xilinx-intc.c:278:9: error: use of undeclared identifier 'ret'
           return ret;
                  ^
   21 warnings and 14 errors generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for MFD_SUN6I_PRCM
   Depends on HAS_IOMEM && (ARCH_SUNXI || COMPILE_TEST
   Selected by
   - CLK_SUNXI_PRCM_SUN6I && COMMON_CLK && CLK_SUNXI
   - CLK_SUNXI_PRCM_SUN8I && COMMON_CLK && CLK_SUNXI


vim +/handle_domain_irq +175 drivers/irqchip/irq-xilinx-intc.c

   165	
   166	static void xil_intc_handle_irq(struct pt_regs *regs)
   167	{
   168		int ret;
   169		unsigned int hwirq, cpu_id = smp_processor_id();
   170		struct xintc_irq_chip *irqc = per_cpu_ptr(&primary_intc, cpu_id);
   171	
   172		do {
   173			hwirq = irqc->read_fn(irqc->base + IVR);
   174			if (hwirq != -1U) {
 > 175				ret = handle_domain_irq(irqc->root_domain, hwirq, regs);
   176				WARN_ONCE(ret, "cpu %d: Unhandled HWIRQ %d\n",
   177					  cpu_id, hwirq);
   178				continue;
   179			}
   180	
   181			break;
   182		} while (1);
   183	}
   184	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 17178 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210812/14f05743/attachment-0001.gz>


More information about the linux-arm-kernel mailing list