From: kernel test robot <lkp@intel.com>
To: "Jonathan Neuschäfer" <j.neuschaefer@gmx.net>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Linus Walleij <linus.walleij@linaro.org>
Subject: [linux-next:master 12089/13209] drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: error: array type has incomplete element type 'struct group_desc'
Date: Thu, 17 Mar 2022 14:39:45 +0800 [thread overview]
Message-ID: <202203171404.ve7vpTGC-lkp@intel.com> (raw)
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
reply other threads:[~2022-03-17 6:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202203171404.ve7vpTGC-lkp@intel.com \
--to=lkp@intel.com \
--cc=j.neuschaefer@gmx.net \
--cc=kbuild-all@lists.01.org \
--cc=linus.walleij@linaro.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox