From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6253C433F5 for ; Thu, 17 Mar 2022 06:40:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C24666B0071; Thu, 17 Mar 2022 02:40:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BD3428D0002; Thu, 17 Mar 2022 02:40:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A99F38D0001; Thu, 17 Mar 2022 02:40:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 9AA816B0071 for ; Thu, 17 Mar 2022 02:40:26 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 5A2A2203BC for ; Thu, 17 Mar 2022 06:40:26 +0000 (UTC) X-FDA: 79252929252.13.9FDCF71 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf18.hostedemail.com (Postfix) with ESMTP id 260A11C0018 for ; Thu, 17 Mar 2022 06:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647499225; x=1679035225; h=date:from:to:cc:subject:message-id:mime-version; bh=kSaM0zxEd1sxFl8KR/tXdzvU3z00mbFIabs9l5P8p6M=; b=IPiWlhfvXrw14tMVVINOPtAAwrDCkeD+pDGWEY9nNKky/X26c8UhTEOP m40y0jkJHO/pF067GR4EPYeTog2QI5DgdUmKfz9DyYNJn4gKha86nakw4 I4fZjrkzRqFASYQ5mk2ZhhV/lg8tHaEV6mJQBhwoEAkMV2OqJOWRup+am kqOr5KmPO81H33gpSqy4V+YStmYHy84Mu1anhtKjZHJD3eIBs8UjyY+RO EaabVEgP8EPsCeEvDnJLaCwlxDoDEu+Ba08OLPwheGW5iW5Fs1dJt6HnW 508WbOYG6m5pAAOEKlxnhKHTVSHEEr3xiv5U0X9h0GnnWgmcIC+jIY+5w Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10288"; a="256524432" X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="256524432" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2022 23:40:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="714918351" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 16 Mar 2022 23:40:20 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nUjo3-000DOf-T2; Thu, 17 Mar 2022 06:40:19 +0000 Date: Thu, 17 Mar 2022 14:39:45 +0800 From: kernel test robot To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Cc: kbuild-all@lists.01.org, Linux Memory Management List , Linus Walleij Subject: [linux-next:master 12089/13209] drivers/pinctrl/nuvoton/pinctrl-wpcm450.c:470:26: error: array type has incomplete element type 'struct group_desc' Message-ID: <202203171404.ve7vpTGC-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 260A11C0018 X-Stat-Signature: 1imk1ghuacxupbc6cggdhxfi5it3xaho Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=IPiWlhfv; spf=none (imf18.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1647499224-397375 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 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 '' 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