All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/pinctrl/pinctrl-rockchip.c:804:2: error: implicit declaration of function 'RK_MUXROUTE_SAME'
@ 2021-04-20 12:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-20 12:25 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 10532 bytes --]

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210420-170833/Jianqun-Xu/pinctrl-rockchip-do-coding-style-for-mux-route-struct/20210406-105506
head:   bb6a49e9a397527d82c30eda6b4085711fbdf705
commit: bb6a49e9a397527d82c30eda6b4085711fbdf705 pinctrl: rockchip: do coding style for mux route struct
date:   3 hours ago
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
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
        # https://github.com/0day-ci/linux/commit/bb6a49e9a397527d82c30eda6b4085711fbdf705
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210420-170833/Jianqun-Xu/pinctrl-rockchip-do-coding-style-for-mux-route-struct/20210406-105506
        git checkout bb6a49e9a397527d82c30eda6b4085711fbdf705
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm 

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/pinctrl/pinctrl-rockchip.c:804:2: error: implicit declaration of function 'RK_MUXROUTE_SAME' [-Werror=implicit-function-declaration]
     804 |  RK_MUXROUTE_SAME(2, RK_PA0, 1, 0x184, BIT(16 + 7)), /* cif-d2m0 */
         |  ^~~~~~~~~~~~~~~~
>> drivers/pinctrl/pinctrl-rockchip.c:804:2: error: initializer element is not constant
   drivers/pinctrl/pinctrl-rockchip.c:804:2: note: (near initialization for 'px30_mux_route_data[0].bank_num')
   drivers/pinctrl/pinctrl-rockchip.c:805:2: error: initializer element is not constant
     805 |  RK_MUXROUTE_SAME(3, RK_PA3, 3, 0x184, BIT(16 + 7) | BIT(7)), /* cif-d2m1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:805:2: note: (near initialization for 'px30_mux_route_data[0].pin')
   drivers/pinctrl/pinctrl-rockchip.c:806:2: error: initializer element is not constant
     806 |  RK_MUXROUTE_SAME(3, RK_PC6, 2, 0x184, BIT(16 + 8)), /* pdm-m0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:806:2: note: (near initialization for 'px30_mux_route_data[0].func')
   drivers/pinctrl/pinctrl-rockchip.c:807:2: error: initializer element is not constant
     807 |  RK_MUXROUTE_SAME(2, RK_PC6, 1, 0x184, BIT(16 + 8) | BIT(8)), /* pdm-m1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:807:2: note: (near initialization for 'px30_mux_route_data[0].route_location')
   drivers/pinctrl/pinctrl-rockchip.c:808:2: error: initializer element is not constant
     808 |  RK_MUXROUTE_SAME(1, RK_PD3, 2, 0x184, BIT(16 + 10)), /* uart2-rxm0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:808:2: note: (near initialization for 'px30_mux_route_data[0].route_offset')
   drivers/pinctrl/pinctrl-rockchip.c:809:2: error: initializer element is not constant
     809 |  RK_MUXROUTE_SAME(2, RK_PB6, 2, 0x184, BIT(16 + 10) | BIT(10)), /* uart2-rxm1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:809:2: note: (near initialization for 'px30_mux_route_data[0].route_val')
   drivers/pinctrl/pinctrl-rockchip.c:810:2: error: initializer element is not constant
     810 |  RK_MUXROUTE_SAME(0, RK_PC1, 2, 0x184, BIT(16 + 9)), /* uart3-rxm0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:810:2: note: (near initialization for 'px30_mux_route_data[1].bank_num')
   drivers/pinctrl/pinctrl-rockchip.c:811:2: error: initializer element is not constant
     811 |  RK_MUXROUTE_SAME(1, RK_PB7, 2, 0x184, BIT(16 + 9) | BIT(9)), /* uart3-rxm1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:811:2: note: (near initialization for 'px30_mux_route_data[1].pin')
   drivers/pinctrl/pinctrl-rockchip.c:815:2: error: initializer element is not constant
     815 |  RK_MUXROUTE_SAME(1, RK_PB2, 1, 0x144, BIT(16 + 3) | BIT(16 + 4)), /* spi-0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:815:2: note: (near initialization for 'rk3128_mux_route_data[0].bank_num')
   drivers/pinctrl/pinctrl-rockchip.c:816:2: error: initializer element is not constant
     816 |  RK_MUXROUTE_SAME(1, RK_PD3, 3, 0x144, BIT(16 + 3) | BIT(16 + 4) | BIT(3)), /* spi-1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:816:2: note: (near initialization for 'rk3128_mux_route_data[0].pin')
   drivers/pinctrl/pinctrl-rockchip.c:817:2: error: initializer element is not constant
     817 |  RK_MUXROUTE_SAME(0, RK_PB5, 2, 0x144, BIT(16 + 3) | BIT(16 + 4) | BIT(4)), /* spi-2 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:817:2: note: (near initialization for 'rk3128_mux_route_data[0].func')
   drivers/pinctrl/pinctrl-rockchip.c:818:2: error: initializer element is not constant
     818 |  RK_MUXROUTE_SAME(1, RK_PA5, 1, 0x144, BIT(16 + 5)), /* i2s-0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:818:2: note: (near initialization for 'rk3128_mux_route_data[0].route_location')
   drivers/pinctrl/pinctrl-rockchip.c:819:2: error: initializer element is not constant
     819 |  RK_MUXROUTE_SAME(0, RK_PB6, 1, 0x144, BIT(16 + 5) | BIT(5)), /* i2s-1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:819:2: note: (near initialization for 'rk3128_mux_route_data[0].route_offset')
   drivers/pinctrl/pinctrl-rockchip.c:820:2: error: initializer element is not constant
     820 |  RK_MUXROUTE_SAME(1, RK_PC6, 2, 0x144, BIT(16 + 6)), /* emmc-0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:820:2: note: (near initialization for 'rk3128_mux_route_data[0].route_val')
   drivers/pinctrl/pinctrl-rockchip.c:821:2: error: initializer element is not constant
     821 |  RK_MUXROUTE_SAME(2, RK_PA4, 2, 0x144, BIT(16 + 6) | BIT(6)), /* emmc-1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:821:2: note: (near initialization for 'rk3128_mux_route_data[1].bank_num')
   drivers/pinctrl/pinctrl-rockchip.c:825:2: error: initializer element is not constant
     825 |  RK_MUXROUTE_SAME(0, RK_PD0, 1, 0xa0, BIT(16 + 11)), /* non-iomuxed emmc/flash pins on flash-dqs */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:825:2: note: (near initialization for 'rk3188_mux_route_data[0].bank_num')
   drivers/pinctrl/pinctrl-rockchip.c:826:2: error: initializer element is not constant
     826 |  RK_MUXROUTE_SAME(0, RK_PD0, 2, 0xa0, BIT(16 + 11) | BIT(11)), /* non-iomuxed emmc/flash pins on emmc-clk */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:826:2: note: (near initialization for 'rk3188_mux_route_data[0].pin')
   drivers/pinctrl/pinctrl-rockchip.c:830:2: error: initializer element is not constant
     830 |  RK_MUXROUTE_SAME(0, RK_PD2, 1, 0x50, BIT(16)), /* pwm0-0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:830:2: note: (near initialization for 'rk3228_mux_route_data[0].bank_num')
   drivers/pinctrl/pinctrl-rockchip.c:831:2: error: initializer element is not constant
     831 |  RK_MUXROUTE_SAME(3, RK_PC5, 1, 0x50, BIT(16) | BIT(0)), /* pwm0-1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:831:2: note: (near initialization for 'rk3228_mux_route_data[0].pin')
   drivers/pinctrl/pinctrl-rockchip.c:832:2: error: initializer element is not constant
     832 |  RK_MUXROUTE_SAME(0, RK_PD3, 1, 0x50, BIT(16 + 1)), /* pwm1-0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:832:2: note: (near initialization for 'rk3228_mux_route_data[0].func')
   drivers/pinctrl/pinctrl-rockchip.c:833:2: error: initializer element is not constant
     833 |  RK_MUXROUTE_SAME(0, RK_PD6, 2, 0x50, BIT(16 + 1) | BIT(1)), /* pwm1-1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:833:2: note: (near initialization for 'rk3228_mux_route_data[0].route_location')
   drivers/pinctrl/pinctrl-rockchip.c:834:2: error: initializer element is not constant
     834 |  RK_MUXROUTE_SAME(0, RK_PD4, 1, 0x50, BIT(16 + 2)), /* pwm2-0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:834:2: note: (near initialization for 'rk3228_mux_route_data[0].route_offset')
   drivers/pinctrl/pinctrl-rockchip.c:835:2: error: initializer element is not constant
     835 |  RK_MUXROUTE_SAME(1, RK_PB4, 2, 0x50, BIT(16 + 2) | BIT(2)), /* pwm2-1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:835:2: note: (near initialization for 'rk3228_mux_route_data[0].route_val')
   drivers/pinctrl/pinctrl-rockchip.c:836:2: error: initializer element is not constant
     836 |  RK_MUXROUTE_SAME(3, RK_PD2, 1, 0x50, BIT(16 + 3)), /* pwm3-0 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:836:2: note: (near initialization for 'rk3228_mux_route_data[1].bank_num')
   drivers/pinctrl/pinctrl-rockchip.c:837:2: error: initializer element is not constant
     837 |  RK_MUXROUTE_SAME(1, RK_PB3, 2, 0x50, BIT(16 + 3) | BIT(3)), /* pwm3-1 */
         |  ^~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-rockchip.c:837:2: note: (near initialization for 'rk3228_mux_route_data[1].pin')
   drivers/pinctrl/pinctrl-rockchip.c:838:2: error: initializer element is not constant
     838 |  RK_MUXROUTE_SAME(1, RK_PA1, 1, 0x50, BIT(16 + 4)), /* sdio-0_d0 */
         |  ^~~~~~~~~~~~~~~~


vim +/RK_MUXROUTE_SAME +804 drivers/pinctrl/pinctrl-rockchip.c

   802	
   803	static struct rockchip_mux_route_data px30_mux_route_data[] = {
 > 804		RK_MUXROUTE_SAME(2, RK_PA0, 1, 0x184, BIT(16 + 7)), /* cif-d2m0 */
   805		RK_MUXROUTE_SAME(3, RK_PA3, 3, 0x184, BIT(16 + 7) | BIT(7)), /* cif-d2m1 */
   806		RK_MUXROUTE_SAME(3, RK_PC6, 2, 0x184, BIT(16 + 8)), /* pdm-m0 */
   807		RK_MUXROUTE_SAME(2, RK_PC6, 1, 0x184, BIT(16 + 8) | BIT(8)), /* pdm-m1 */
   808		RK_MUXROUTE_SAME(1, RK_PD3, 2, 0x184, BIT(16 + 10)), /* uart2-rxm0 */
   809		RK_MUXROUTE_SAME(2, RK_PB6, 2, 0x184, BIT(16 + 10) | BIT(10)), /* uart2-rxm1 */
   810		RK_MUXROUTE_SAME(0, RK_PC1, 2, 0x184, BIT(16 + 9)), /* uart3-rxm0 */
   811		RK_MUXROUTE_SAME(1, RK_PB7, 2, 0x184, BIT(16 + 9) | BIT(9)), /* uart3-rxm1 */
   812	};
   813	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-20 12:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-20 12:25 drivers/pinctrl/pinctrl-rockchip.c:804:2: error: implicit declaration of function 'RK_MUXROUTE_SAME' 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.