Re: [PATCH] pinctrl: uniphier: add spi pin-mux settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kunihiko,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on pinctrl/devel]
[also build test ERROR on v4.18-rc5 next-20180718]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Keiji-Hayashibara/pinctrl-uniphier-add-spi-pin-mux-settings/20180719-144943
base:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 8.1.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=8.1.0 make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   In file included from drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c:21:
>> drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c:629:27: error: 'spi0_groups' undeclared here (not in a function); did you mean 'spi_groups'?
     UNIPHIER_PINMUX_FUNCTION(spi0),
                              ^~~~
   drivers/pinctrl/uniphier/pinctrl-uniphier.h:188:13: note: in definition of macro 'UNIPHIER_PINMUX_FUNCTION'
      .groups = func##_groups,    \
                ^~~~
   In file included from include/linux/kernel.h:15,
                    from drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c:16:
   include/linux/build_bug.h:29:45: error: bit-field '<anonymous>' width not an integer constant
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); }))
                                                ^
   include/linux/compiler-gcc.h:65:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:72:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                                              ^~~~~~~~~~~~~~~
   drivers/pinctrl/uniphier/pinctrl-uniphier.h:189:17: note: in expansion of macro 'ARRAY_SIZE'
      .num_groups = ARRAY_SIZE(func##_groups),  \
                    ^~~~~~~~~~
   drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c:629:2: note: in expansion of macro 'UNIPHIER_PINMUX_FUNCTION'
     UNIPHIER_PINMUX_FUNCTION(spi0),
     ^~~~~~~~~~~~~~~~~~~~~~~~

vim +629 drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c

   618	
   619	static const struct uniphier_pinmux_function uniphier_sld8_functions[] = {
   620		UNIPHIER_PINMUX_FUNCTION(emmc),
   621		UNIPHIER_PINMUX_FUNCTION(ether_mii),
   622		UNIPHIER_PINMUX_FUNCTION(ether_rmii),
   623		UNIPHIER_PINMUX_FUNCTION(i2c0),
   624		UNIPHIER_PINMUX_FUNCTION(i2c1),
   625		UNIPHIER_PINMUX_FUNCTION(i2c2),
   626		UNIPHIER_PINMUX_FUNCTION(i2c3),
   627		UNIPHIER_PINMUX_FUNCTION(nand),
   628		UNIPHIER_PINMUX_FUNCTION(sd),
 > 629		UNIPHIER_PINMUX_FUNCTION(spi0),
   630		UNIPHIER_PINMUX_FUNCTION(system_bus),
   631		UNIPHIER_PINMUX_FUNCTION(uart0),
   632		UNIPHIER_PINMUX_FUNCTION(uart1),
   633		UNIPHIER_PINMUX_FUNCTION(uart2),
   634		UNIPHIER_PINMUX_FUNCTION(uart3),
   635		UNIPHIER_PINMUX_FUNCTION(usb0),
   636		UNIPHIER_PINMUX_FUNCTION(usb1),
   637		UNIPHIER_PINMUX_FUNCTION(usb2),
   638	};
   639	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux