Hi Matti, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on ljones-mfd/for-mfd-next] [also build test ERROR on v5.4-rc5 next-20191031] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Matti-Vaittinen/Support-ROHM-BD71828-PMIC/20191102-222004 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next config: arm-multi_v5_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 # 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 All error/warnings (new ones prefixed by >>): In file included from arch/arm/mach-imx/iomux-v1.c:21:0: >> arch/arm/mach-imx/iomux-v1.h:47:0: warning: "GPIO_OUT" redefined #define GPIO_OUT (1 << 8) In file included from include/asm-generic/gpio.h:13:0, from arch/arm/include/asm/gpio.h:10, from include/linux/gpio.h:59, from arch/arm/mach-imx/iomux-v1.c:16: include/linux/gpio/driver.h:26:0: note: this is the location of the previous definition #define GPIO_OUT 0 In file included from arch/arm/mach-imx/iomux-v1.c:21:0: >> arch/arm/mach-imx/iomux-v1.h:48:0: warning: "GPIO_IN" redefined #define GPIO_IN (0 << 8) In file included from include/asm-generic/gpio.h:13:0, from arch/arm/include/asm/gpio.h:10, from include/linux/gpio.h:59, from arch/arm/mach-imx/iomux-v1.c:16: include/linux/gpio/driver.h:25:0: note: this is the location of the previous definition #define GPIO_IN 1 -- In file included from include/asm-generic/gpio.h:13:0, from arch/arm/include/asm/gpio.h:10, from include/linux/gpio.h:59, from arch/arm/plat-orion/gpio.c:21: >> include/linux/gpio/driver.h:26:18: error: expected identifier or '(' before numeric constant #define GPIO_OUT 0 ^ >> arch/arm/plat-orion/gpio.c:51:22: note: in expansion of macro 'GPIO_OUT' static void __iomem *GPIO_OUT(struct orion_gpio_chip *ochip) ^~~~~~~~ In file included from include/linux/byteorder/little_endian.h:5:0, from arch/arm/include/uapi/asm/byteorder.h:22, from include/asm-generic/bitops/le.h:6, from arch/arm/include/asm/bitops.h:268, from include/linux/bitops.h:19, from include/linux/kernel.h:12, from arch/arm/plat-orion/gpio.c:13: arch/arm/plat-orion/gpio.c: In function '__set_level': >> include/linux/gpio/driver.h:26:18: error: called object is not a function or function pointer #define GPIO_OUT 0 ^ include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ >> arch/arm/include/asm/io.h:303:32: note: in expansion of macro 'readl_relaxed' #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) ^~~~~~~~~~~~~ >> arch/arm/plat-orion/gpio.c:112:6: note: in expansion of macro 'readl' u = readl(GPIO_OUT(ochip)); ^~~~~ arch/arm/plat-orion/gpio.c:112:12: note: in expansion of macro 'GPIO_OUT' u = readl(GPIO_OUT(ochip)); ^~~~~~~~ In file included from include/linux/io.h:13:0, from include/linux/irq.h:20, from arch/arm/plat-orion/gpio.c:15: >> include/linux/gpio/driver.h:26:18: error: called object is not a function or function pointer #define GPIO_OUT 0 ^ arch/arm/include/asm/io.h:299:71: note: in definition of macro 'writel_relaxed' #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) ^ >> arch/arm/plat-orion/gpio.c:117:2: note: in expansion of macro 'writel' writel(u, GPIO_OUT(ochip)); ^~~~~~ arch/arm/plat-orion/gpio.c:117:12: note: in expansion of macro 'GPIO_OUT' writel(u, GPIO_OUT(ochip)); ^~~~~~~~ In file included from include/linux/byteorder/little_endian.h:5:0, from arch/arm/include/uapi/asm/byteorder.h:22, from include/asm-generic/bitops/le.h:6, from arch/arm/include/asm/bitops.h:268, from include/linux/bitops.h:19, from include/linux/kernel.h:12, from arch/arm/plat-orion/gpio.c:13: arch/arm/plat-orion/gpio.c: In function 'orion_gpio_get': >> include/linux/gpio/driver.h:26:18: error: called object is not a function or function pointer #define GPIO_OUT 0 ^ include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ >> arch/arm/include/asm/io.h:303:32: note: in expansion of macro 'readl_relaxed' #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) ^~~~~~~~~~~~~ arch/arm/plat-orion/gpio.c:189:9: note: in expansion of macro 'readl' val = readl(GPIO_OUT(ochip)); ^~~~~ arch/arm/plat-orion/gpio.c:189:15: note: in expansion of macro 'GPIO_OUT' val = readl(GPIO_OUT(ochip)); ^~~~~~~~ arch/arm/plat-orion/gpio.c: In function 'orion_gpio_dbg_show': >> include/linux/gpio/driver.h:26:18: error: called object is not a function or function pointer #define GPIO_OUT 0 ^ include/uapi/linux/byteorder/little_endian.h:34:51: note: in definition of macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ >> arch/arm/plat-orion/gpio.c:447:8: note: in expansion of macro 'readl_relaxed' out = readl_relaxed(GPIO_OUT(ochip)); ^~~~~~~~~~~~~ arch/arm/plat-orion/gpio.c:447:22: note: in expansion of macro 'GPIO_OUT' out = readl_relaxed(GPIO_OUT(ochip)); ^~~~~~~~ vim +26 include/linux/gpio/driver.h 24 25 #define GPIO_IN 1 > 26 #define GPIO_OUT 0 27 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation