From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B3D929CA for ; Thu, 27 Jan 2022 17:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643303149; x=1674839149; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uDZv+CAVKC/TFSZIS03I56ur49bybLhhFrnxROt4p0U=; b=QwTjpcyGQIDyRrA6QcKWkDpClFxYfsIpfmhuP3t9efZ95JSrovYr24JE os/pWMjG+Yyp2zuqMRQ8/G/69aFqdl/YxR3DgECjIC1dzT95DLaviLCle TJ7WG4P2UdcAQ66wA/VlQLRyoQIPzo6GJP1TCuBLxq4zag+SLPMkH/NBm LF9WsoeEvZ7q/zzAQWZr+8bIRTbF5EkKCYJlvmnXrVxarBkefhM2ewx0U WVbLGoDAUtsOHILL0O+r1k5zWqeIuqU49UjRQTQ+UUKn+1AWM0BW82aqD HUfW5s7i1vg0ldMZwo11jkexa3PGMEM3+KcmkmaqE/Pw/rEQJKMdZdWyO Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10239"; a="226887058" X-IronPort-AV: E=Sophos;i="5.88,321,1635231600"; d="scan'208";a="226887058" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2022 09:05:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,321,1635231600"; d="scan'208";a="618399062" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jan 2022 09:05:05 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nD8Cm-000MpV-Cl; Thu, 27 Jan 2022 17:05:04 +0000 Date: Fri, 28 Jan 2022 01:04:25 +0800 From: kernel test robot To: Kunihiko Hayashi , Linus Walleij , Masami Hiramatsu Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi , Ryuta NAKANISHI Subject: Re: [PATCH 2/3] pinctrl: uniphier: Divide pinmux group to support 1ch and 2ch I2S Message-ID: <202201280003.icgPhtLw-lkp@intel.com> References: <1643283344-24911-3-git-send-email-hayashi.kunihiko@socionext.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1643283344-24911-3-git-send-email-hayashi.kunihiko@socionext.com> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Kunihiko, I love your patch! Yet something to improve: [auto build test ERROR on linusw-pinctrl/devel] [also build test ERROR on v5.17-rc1 next-20220127] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Kunihiko-Hayashi/pinctrl-uniphier-Add-some-more-pinmux-settings/20220127-193715 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel config: arm-randconfig-r005-20220124 (https://download.01.org/0day-ci/archive/20220128/202201280003.icgPhtLw-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f32dccb9a43b02ce4e540d6ba5dbbdb188f2dc7d) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/e0e366a006b79517336423f8a2c72661178d5e41 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kunihiko-Hayashi/pinctrl-uniphier-Add-some-more-pinmux-settings/20220127-193715 git checkout e0e366a006b79517336423f8a2c72661178d5e41 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/pinctrl/uniphier/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of undeclared identifier 'aout4_groups' UNIPHIER_PINMUX_FUNCTION(aout4), ^ drivers/pinctrl/uniphier/pinctrl-uniphier.h:179:13: note: expanded from macro 'UNIPHIER_PINMUX_FUNCTION' .groups = func##_groups, \ ^ :175:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of undeclared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups = ARRAY_SIZE(func##_groups), \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of undeclared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups = ARRAY_SIZE(func##_groups), \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of undeclared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups = ARRAY_SIZE(func##_groups), \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:1002:21: error: invalid application of 'sizeof' to an incomplete type 'const struct uniphier_pinmux_function[]' .functions_count = ARRAY_SIZE(uniphier_pxs2_functions), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kernel.h:55:32: note: expanded from macro 'ARRAY_SIZE' #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^~~~~ 5 errors generated. vim +/aout4_groups +958 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c 949 950 static const struct uniphier_pinmux_function uniphier_pxs2_functions[] = { 951 UNIPHIER_PINMUX_FUNCTION(ain1), 952 UNIPHIER_PINMUX_FUNCTION(ain2), 953 UNIPHIER_PINMUX_FUNCTION(ain3), 954 UNIPHIER_PINMUX_FUNCTION(ainiec1), 955 UNIPHIER_PINMUX_FUNCTION(aout1), 956 UNIPHIER_PINMUX_FUNCTION(aout2), 957 UNIPHIER_PINMUX_FUNCTION(aout3), > 958 UNIPHIER_PINMUX_FUNCTION(aout4), 959 UNIPHIER_PINMUX_FUNCTION(aoutiec1), 960 UNIPHIER_PINMUX_FUNCTION(aoutiec2), 961 UNIPHIER_PINMUX_FUNCTION(emmc), 962 UNIPHIER_PINMUX_FUNCTION(ether_mii), 963 UNIPHIER_PINMUX_FUNCTION(ether_rgmii), 964 UNIPHIER_PINMUX_FUNCTION(ether_rmii), 965 UNIPHIER_PINMUX_FUNCTION(i2c0), 966 UNIPHIER_PINMUX_FUNCTION(i2c1), 967 UNIPHIER_PINMUX_FUNCTION(i2c2), 968 UNIPHIER_PINMUX_FUNCTION(i2c3), 969 UNIPHIER_PINMUX_FUNCTION(i2c5), 970 UNIPHIER_PINMUX_FUNCTION(i2c6), 971 UNIPHIER_PINMUX_FUNCTION(nand), 972 UNIPHIER_PINMUX_FUNCTION(sd), 973 UNIPHIER_PINMUX_FUNCTION(spi0), 974 UNIPHIER_PINMUX_FUNCTION(spi1), 975 UNIPHIER_PINMUX_FUNCTION(system_bus), 976 UNIPHIER_PINMUX_FUNCTION(uart0), 977 UNIPHIER_PINMUX_FUNCTION(uart1), 978 UNIPHIER_PINMUX_FUNCTION(uart2), 979 UNIPHIER_PINMUX_FUNCTION(uart3), 980 UNIPHIER_PINMUX_FUNCTION(usb0), 981 UNIPHIER_PINMUX_FUNCTION(usb1), 982 UNIPHIER_PINMUX_FUNCTION(usb2), 983 UNIPHIER_PINMUX_FUNCTION(usb3), 984 }; 985 986 static int uniphier_pxs2_get_gpio_muxval(unsigned int pin, 987 unsigned int gpio_offset) 988 { 989 if (gpio_offset >= 120 && gpio_offset <= 143) /* XIRQx */ 990 /* 15 will do because XIRQ0-23 are aliases of PORT150-177. */ 991 return 14; 992 993 return 15; 994 } 995 996 static const struct uniphier_pinctrl_socdata uniphier_pxs2_pindata = { 997 .pins = uniphier_pxs2_pins, 998 .npins = ARRAY_SIZE(uniphier_pxs2_pins), 999 .groups = uniphier_pxs2_groups, 1000 .groups_count = ARRAY_SIZE(uniphier_pxs2_groups), 1001 .functions = uniphier_pxs2_functions, > 1002 .functions_count = ARRAY_SIZE(uniphier_pxs2_functions), 1003 .get_gpio_muxval = uniphier_pxs2_get_gpio_muxval, 1004 .caps = 0, 1005 }; 1006 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E87BC433EF for ; Thu, 27 Jan 2022 17:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZZ9dDb9y6XemISPz+AIiSBPq/O2FyXbDwLSBhSk6O9M=; b=bA1SURPtXH51dq 5QjHKftbX/l7vSCdrbA2pMHB/u7NQHgXOPmOoFOmytInPqK4Mg1SfaLqzXaroMIQx9p0bLNjGCPp9 PIlXGv7wlUJ4KPyYFw5kKrDdPZf4jAm1s5lMRV9hqFTfLbfMFm4SP1D/jABqFVNljVIwGZNXjWE9M KxpYeCP66qPjoPfO69IcYk82B/IU4jX3mhiswj/DAe198oJyZTbmFMV4+lFzNXcid/kf4VsNQb1+T D0jrgleYjuFH+ecd5AS8eWdieGTvjL1dijgtSGqCPCosUcUXhLeg6YZ3Emwt8YknBn65AwUV+GBJf q0H8uzjKSdEIq3VyNKyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD8Cz-00Gfko-IZ; Thu, 27 Jan 2022 17:05:17 +0000 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD8Cv-00Gfk2-B5 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jan 2022 17:05:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643303113; x=1674839113; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uDZv+CAVKC/TFSZIS03I56ur49bybLhhFrnxROt4p0U=; b=j0s6OsTEvxRCoT6DtuvnUuhJ6FfehxgmG0DInFOU12o9iz1SdoAnS8jp 8ArHRTLVV6lnmYmBcVoL93PM1CtBiSxHSBxquiYNj3YJ57yMlRf2jcJ6/ cxKfONQaQBGfknR9Iu2by3TsGuWfOcirLd/b/rrXNOgzww201mC4a1NIP OGFZK73RfwOAMYKj2eh5hS4MnV/cmUnfeemHaY4V6gN/pEuI+zirM2OT2 ldsJALPrXD3ZwyzW5767kwBRsvHnWIkJAXnjVk86hLtGvI0jWpwbIDB11 MI7YyZOj2W7FWCqeRFEZ+J96tGPpVSGKMUd60UG11eDXZh0w9yVCWiMzW A==; X-IronPort-AV: E=McAfee;i="6200,9189,10239"; a="244516344" X-IronPort-AV: E=Sophos;i="5.88,321,1635231600"; d="scan'208";a="244516344" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2022 09:05:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,321,1635231600"; d="scan'208";a="618399062" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jan 2022 09:05:05 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nD8Cm-000MpV-Cl; Thu, 27 Jan 2022 17:05:04 +0000 Date: Fri, 28 Jan 2022 01:04:25 +0800 From: kernel test robot To: Kunihiko Hayashi , Linus Walleij , Masami Hiramatsu Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi , Ryuta NAKANISHI Subject: Re: [PATCH 2/3] pinctrl: uniphier: Divide pinmux group to support 1ch and 2ch I2S Message-ID: <202201280003.icgPhtLw-lkp@intel.com> References: <1643283344-24911-3-git-send-email-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1643283344-24911-3-git-send-email-hayashi.kunihiko@socionext.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220127_090513_438908_C21AE72C X-CRM114-Status: GOOD ( 16.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Kunihiko, I love your patch! Yet something to improve: [auto build test ERROR on linusw-pinctrl/devel] [also build test ERROR on v5.17-rc1 next-20220127] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Kunihiko-Hayashi/pinctrl-uniphier-Add-some-more-pinmux-settings/20220127-193715 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel config: arm-randconfig-r005-20220124 (https://download.01.org/0day-ci/archive/20220128/202201280003.icgPhtLw-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f32dccb9a43b02ce4e540d6ba5dbbdb188f2dc7d) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/e0e366a006b79517336423f8a2c72661178d5e41 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kunihiko-Hayashi/pinctrl-uniphier-Add-some-more-pinmux-settings/20220127-193715 git checkout e0e366a006b79517336423f8a2c72661178d5e41 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/pinctrl/uniphier/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of undeclared identifier 'aout4_groups' UNIPHIER_PINMUX_FUNCTION(aout4), ^ drivers/pinctrl/uniphier/pinctrl-uniphier.h:179:13: note: expanded from macro 'UNIPHIER_PINMUX_FUNCTION' .groups = func##_groups, \ ^ :175:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of undeclared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups = ARRAY_SIZE(func##_groups), \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of undeclared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups = ARRAY_SIZE(func##_groups), \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of undeclared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups = ARRAY_SIZE(func##_groups), \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:1002:21: error: invalid application of 'sizeof' to an incomplete type 'const struct uniphier_pinmux_function[]' .functions_count = ARRAY_SIZE(uniphier_pxs2_functions), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kernel.h:55:32: note: expanded from macro 'ARRAY_SIZE' #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^~~~~ 5 errors generated. vim +/aout4_groups +958 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c 949 950 static const struct uniphier_pinmux_function uniphier_pxs2_functions[] = { 951 UNIPHIER_PINMUX_FUNCTION(ain1), 952 UNIPHIER_PINMUX_FUNCTION(ain2), 953 UNIPHIER_PINMUX_FUNCTION(ain3), 954 UNIPHIER_PINMUX_FUNCTION(ainiec1), 955 UNIPHIER_PINMUX_FUNCTION(aout1), 956 UNIPHIER_PINMUX_FUNCTION(aout2), 957 UNIPHIER_PINMUX_FUNCTION(aout3), > 958 UNIPHIER_PINMUX_FUNCTION(aout4), 959 UNIPHIER_PINMUX_FUNCTION(aoutiec1), 960 UNIPHIER_PINMUX_FUNCTION(aoutiec2), 961 UNIPHIER_PINMUX_FUNCTION(emmc), 962 UNIPHIER_PINMUX_FUNCTION(ether_mii), 963 UNIPHIER_PINMUX_FUNCTION(ether_rgmii), 964 UNIPHIER_PINMUX_FUNCTION(ether_rmii), 965 UNIPHIER_PINMUX_FUNCTION(i2c0), 966 UNIPHIER_PINMUX_FUNCTION(i2c1), 967 UNIPHIER_PINMUX_FUNCTION(i2c2), 968 UNIPHIER_PINMUX_FUNCTION(i2c3), 969 UNIPHIER_PINMUX_FUNCTION(i2c5), 970 UNIPHIER_PINMUX_FUNCTION(i2c6), 971 UNIPHIER_PINMUX_FUNCTION(nand), 972 UNIPHIER_PINMUX_FUNCTION(sd), 973 UNIPHIER_PINMUX_FUNCTION(spi0), 974 UNIPHIER_PINMUX_FUNCTION(spi1), 975 UNIPHIER_PINMUX_FUNCTION(system_bus), 976 UNIPHIER_PINMUX_FUNCTION(uart0), 977 UNIPHIER_PINMUX_FUNCTION(uart1), 978 UNIPHIER_PINMUX_FUNCTION(uart2), 979 UNIPHIER_PINMUX_FUNCTION(uart3), 980 UNIPHIER_PINMUX_FUNCTION(usb0), 981 UNIPHIER_PINMUX_FUNCTION(usb1), 982 UNIPHIER_PINMUX_FUNCTION(usb2), 983 UNIPHIER_PINMUX_FUNCTION(usb3), 984 }; 985 986 static int uniphier_pxs2_get_gpio_muxval(unsigned int pin, 987 unsigned int gpio_offset) 988 { 989 if (gpio_offset >= 120 && gpio_offset <= 143) /* XIRQx */ 990 /* 15 will do because XIRQ0-23 are aliases of PORT150-177. */ 991 return 14; 992 993 return 15; 994 } 995 996 static const struct uniphier_pinctrl_socdata uniphier_pxs2_pindata = { 997 .pins = uniphier_pxs2_pins, 998 .npins = ARRAY_SIZE(uniphier_pxs2_pins), 999 .groups = uniphier_pxs2_groups, 1000 .groups_count = ARRAY_SIZE(uniphier_pxs2_groups), 1001 .functions = uniphier_pxs2_functions, > 1002 .functions_count = ARRAY_SIZE(uniphier_pxs2_functions), 1003 .get_gpio_muxval = uniphier_pxs2_get_gpio_muxval, 1004 .caps = 0, 1005 }; 1006 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4205348447066702527==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 2/3] pinctrl: uniphier: Divide pinmux group to support 1ch and 2ch I2S Date: Fri, 28 Jan 2022 01:04:25 +0800 Message-ID: <202201280003.icgPhtLw-lkp@intel.com> In-Reply-To: <1643283344-24911-3-git-send-email-hayashi.kunihiko@socionext.com> List-Id: --===============4205348447066702527== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Kunihiko, I love your patch! Yet something to improve: [auto build test ERROR on linusw-pinctrl/devel] [also build test ERROR on v5.17-rc1 next-20220127] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Kunihiko-Hayashi/pinctrl-u= niphier-Add-some-more-pinmux-settings/20220127-193715 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctr= l.git devel config: arm-randconfig-r005-20220124 (https://download.01.org/0day-ci/archi= ve/20220128/202201280003.icgPhtLw-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f32dcc= b9a43b02ce4e540d6ba5dbbdb188f2dc7d) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/e0e366a006b79517336423f8a= 2c72661178d5e41 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kunihiko-Hayashi/pinctrl-uniphier-= Add-some-more-pinmux-settings/20220127-193715 git checkout e0e366a006b79517336423f8a2c72661178d5e41 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash drivers/pinctrl/uniphier/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of un= declared identifier 'aout4_groups' UNIPHIER_PINMUX_FUNCTION(aout4), ^ drivers/pinctrl/uniphier/pinctrl-uniphier.h:179:13: note: expanded from = macro 'UNIPHIER_PINMUX_FUNCTION' .groups =3D func##_groups, = \ ^ :175:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of un= declared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from = macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups =3D ARRAY_SIZE(func##_groups), = \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of un= declared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from = macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups =3D ARRAY_SIZE(func##_groups), = \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:958:2: error: use of un= declared identifier 'aout4_groups' drivers/pinctrl/uniphier/pinctrl-uniphier.h:180:28: note: expanded from = macro 'UNIPHIER_PINMUX_FUNCTION' .num_groups =3D ARRAY_SIZE(func##_groups), = \ ^ :176:1: note: expanded from here aout4_groups ^ >> drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c:1002:21: error: invalid= application of 'sizeof' to an incomplete type 'const struct uniphier_pinmu= x_function[]' .functions_count =3D ARRAY_SIZE(uniphier_pxs2_functions), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/kernel.h:55:32: note: expanded from macro 'ARRAY_SIZE' #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_arra= y(arr)) ^~~~~ 5 errors generated. vim +/aout4_groups +958 drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c 949 = 950 static const struct uniphier_pinmux_function uniphier_pxs2_functions= [] =3D { 951 UNIPHIER_PINMUX_FUNCTION(ain1), 952 UNIPHIER_PINMUX_FUNCTION(ain2), 953 UNIPHIER_PINMUX_FUNCTION(ain3), 954 UNIPHIER_PINMUX_FUNCTION(ainiec1), 955 UNIPHIER_PINMUX_FUNCTION(aout1), 956 UNIPHIER_PINMUX_FUNCTION(aout2), 957 UNIPHIER_PINMUX_FUNCTION(aout3), > 958 UNIPHIER_PINMUX_FUNCTION(aout4), 959 UNIPHIER_PINMUX_FUNCTION(aoutiec1), 960 UNIPHIER_PINMUX_FUNCTION(aoutiec2), 961 UNIPHIER_PINMUX_FUNCTION(emmc), 962 UNIPHIER_PINMUX_FUNCTION(ether_mii), 963 UNIPHIER_PINMUX_FUNCTION(ether_rgmii), 964 UNIPHIER_PINMUX_FUNCTION(ether_rmii), 965 UNIPHIER_PINMUX_FUNCTION(i2c0), 966 UNIPHIER_PINMUX_FUNCTION(i2c1), 967 UNIPHIER_PINMUX_FUNCTION(i2c2), 968 UNIPHIER_PINMUX_FUNCTION(i2c3), 969 UNIPHIER_PINMUX_FUNCTION(i2c5), 970 UNIPHIER_PINMUX_FUNCTION(i2c6), 971 UNIPHIER_PINMUX_FUNCTION(nand), 972 UNIPHIER_PINMUX_FUNCTION(sd), 973 UNIPHIER_PINMUX_FUNCTION(spi0), 974 UNIPHIER_PINMUX_FUNCTION(spi1), 975 UNIPHIER_PINMUX_FUNCTION(system_bus), 976 UNIPHIER_PINMUX_FUNCTION(uart0), 977 UNIPHIER_PINMUX_FUNCTION(uart1), 978 UNIPHIER_PINMUX_FUNCTION(uart2), 979 UNIPHIER_PINMUX_FUNCTION(uart3), 980 UNIPHIER_PINMUX_FUNCTION(usb0), 981 UNIPHIER_PINMUX_FUNCTION(usb1), 982 UNIPHIER_PINMUX_FUNCTION(usb2), 983 UNIPHIER_PINMUX_FUNCTION(usb3), 984 }; 985 = 986 static int uniphier_pxs2_get_gpio_muxval(unsigned int pin, 987 unsigned int gpio_offset) 988 { 989 if (gpio_offset >=3D 120 && gpio_offset <=3D 143) /* XIRQx */ 990 /* 15 will do because XIRQ0-23 are aliases of PORT150-177. */ 991 return 14; 992 = 993 return 15; 994 } 995 = 996 static const struct uniphier_pinctrl_socdata uniphier_pxs2_pindata = =3D { 997 .pins =3D uniphier_pxs2_pins, 998 .npins =3D ARRAY_SIZE(uniphier_pxs2_pins), 999 .groups =3D uniphier_pxs2_groups, 1000 .groups_count =3D ARRAY_SIZE(uniphier_pxs2_groups), 1001 .functions =3D uniphier_pxs2_functions, > 1002 .functions_count =3D ARRAY_SIZE(uniphier_pxs2_functions), 1003 .get_gpio_muxval =3D uniphier_pxs2_get_gpio_muxval, 1004 .caps =3D 0, 1005 }; 1006 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4205348447066702527==--