All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 12089/13209] drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: error: array type has incomplete element type 'struct group_desc'
@ 2022-03-17  6:39 kernel test robot
  2022-03-17 11:36 ` Jonathan Neuschäfer
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-03-17  6:39 UTC (permalink / raw)
  To: Jonathan Neuschäfer
  Cc: kbuild-all, Linux Memory Management List, Linus Walleij

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@intel.com/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@intel.com>

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@lists.01.org


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-next:master 12089/13209] drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: error: array type has incomplete element type 'struct group_desc'
  2022-03-17  6:39 [linux-next:master 12089/13209] drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: error: array type has incomplete element type 'struct group_desc' kernel test robot
@ 2022-03-17 11:36 ` Jonathan Neuschäfer
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Neuschäfer @ 2022-03-17 11:36 UTC (permalink / raw)
  To: kbuild-all

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

On Thu, Mar 17, 2022 at 02:39:45PM +0800, kernel test robot wrote:
> 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(a)intel.com/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@intel.com>
> 
> 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[] = {
>          |                          ^~~~~~~~~~~~~~

I think this needs a "select GENERIC_PINCTRL_GROUPS" in Kconfig.

The rest appear to be follow-on errors because wpcm450_groups doesn't
properly exist in the the compiler's eyes.


I'll send a patch.


Thanks,
Jonathan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-17 11:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17  6:39 [linux-next:master 12089/13209] drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: error: array type has incomplete element type 'struct group_desc' kernel test robot
2022-03-17 11:36 ` Jonathan Neuschäfer

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.