[linux-next:master 12089/13209] drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: error: array type has incomplete element type 'struct group_desc'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8a11187eb62b8b910d2c5484e1f5d160e8b11eb4
commit: a1d1e0e3d80a870cc37a6c064994b89e963d2b58 [12089/13209] pinctrl: nuvoton: Add driver for WPCM450
config: m68k-buildonly-randconfig-r006-20220317 (https://download.01.org/0day-ci/archive/20220317/202203171404.ve7vpTGC-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=a1d1e0e3d80a870cc37a6c064994b89e963d2b58
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout a1d1e0e3d80a870cc37a6c064994b89e963d2b58
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/pinctrl/nuvoton/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

>> drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: error: array type has incomplete element type 'struct group_desc'
     470 | static struct group_desc wpcm450_groups[] = {
         |                          ^~~~~~~~~~~~~~
   In file included from include/linux/bits.h:22,
                    from include/linux/ratelimit_types.h:5,
                    from include/linux/ratelimit.h:5,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:12:
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c: In function 'wpcm450_get_groups_count':
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:258:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     258 | #define __must_be_array(a)      BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                                 ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:55:59: note: in expansion of macro '__must_be_array'
      55 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:820:16: note: in expansion of macro 'ARRAY_SIZE'
     820 |         return ARRAY_SIZE(wpcm450_groups);
         |                ^~~~~~~~~~
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c: In function 'wpcm450_get_group_name':
>> drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:824:56: warning: parameter 'selector' set but not used [-Wunused-but-set-parameter]
     824 |                                           unsigned int selector)
         |                                           ~~~~~~~~~~~~~^~~~~~~~
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c: In function 'wpcm450_get_group_pins':
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:830:48: warning: parameter 'selector' set but not used [-Wunused-but-set-parameter]
     830 |                                   unsigned int selector,
         |                                   ~~~~~~~~~~~~~^~~~~~~~
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c: In function 'wpcm450_pinmux_set_mux':
>> drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:888:48: warning: parameter 'group' set but not used [-Wunused-but-set-parameter]
     888 |                                   unsigned int group)
         |                                   ~~~~~~~~~~~~~^~~~~
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c: In function 'wpcm450_get_group_name':
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:827:1: error: control reaches end of non-void function [-Werror=return-type]
     827 | }
         | ^
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c: In function 'wpcm450_get_groups_count':
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:821:1: error: control reaches end of non-void function [-Werror=return-type]
     821 | }
         | ^
   At top level:
   drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: warning: 'wpcm450_groups' defined but not used [-Wunused-variable]
     470 | static struct group_desc wpcm450_groups[] = {
         |                          ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +470 drivers/pinctrl/nuvoton/pinctrl-wpcm450.c

   469	
 > 470	static struct group_desc wpcm450_groups[] = {
   471	#define WPCM450_GRP(x) { .name = #x, .pins = x ## _pins, \
   472				.num_pins = ARRAY_SIZE(x ## _pins) }
   473		WPCM450_GRPS
   474	#undef WPCM450_GRP
   475	};
   476	

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux