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 E1579C83F1A for ; Fri, 11 Jul 2025 11:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5w420M9PaCm4SWVpg8LrLTVLKByEi2iTHMf42IiHOjQ=; b=h6BAN5xOs3RYW4wgqkzCgPweg1 YGOgzabTYGPFKkN5O6gL9ijrrHA7gxGjFAcERUflVvoSyUz35sEKPN4jRcsfmdy7fflsFcdbhBHvV Z+xDoVI3T/EvIWhXOYBvOx5ba7UCDyPwI+BnwG19dvSOAZEacz9fuDYPnZ8mFunN4+SC2SBJl0e9p Ee05o3+r+zr9dtsufrHyNsQOJU8l7rNyaFdPKX3fJcaeOgY1SULsVXDStVfhUXNYP65sPvph9su2H JB5NgHyIBEEgiosZxq0tW22OQUH/WrEhzHMRI7PJGUrJ0540+m5TnGxsULrRAggJWXRRensf9IYi1 U2LlNMzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uaC3Q-0000000EboZ-3Y0C; Fri, 11 Jul 2025 11:36:36 +0000 Received: from mgamail.intel.com ([192.198.163.10]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uaBNf-0000000EWmh-3sjt for linux-arm-kernel@lists.infradead.org; Fri, 11 Jul 2025 10:53:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1752231208; x=1783767208; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NKjZXYzGtEShTrNsUOMFTyUQto5qPC0hnUCpk+UVNUM=; b=cMn0HOGYB3f7v/vC/5Zr6O4MWX7mWJ1TRPKc1v/w0pGF2OufH01PS0sf 56FYgcH+fghSConKd+WTN3vSpoPS7GJgSa6S7PtTr0mev4Gsft8F4WaJ/ EEChJ0Qs3Rc4AXFYiljD3V1S+g4Invj1hkA+wuV3b5F/MHGELtCODlOSp 5D/K2ZZ8Q73kOEWKXEkF5OeOWIgS0eIXreZ82KIqwXhJbyQ1qFPXd1pQ5 U1/fdYRJ2p1oMob4RoDAFE18XHHqJvbFUCHeuRxLcdeKDfmV8YO4CCo/U UCroS6YW6OrV/aoXWtDVpHHLqWmePhACeweb5wF3BNAlQk+HnfkfmM4wC Q==; X-CSE-ConnectionGUID: KuVtFONSRH+DXaqnR3UzDQ== X-CSE-MsgGUID: VHjHXOlkQ/KxvFpwGoLZmg== X-IronPort-AV: E=McAfee;i="6800,10657,11490"; a="65878125" X-IronPort-AV: E=Sophos;i="6.16,303,1744095600"; d="scan'208";a="65878125" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2025 03:53:26 -0700 X-CSE-ConnectionGUID: uDkLSuGCQA2GbayCqIqCZg== X-CSE-MsgGUID: hiHa3BqjQUOBkOIVrGFYfA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,303,1744095600"; d="scan'208";a="180040729" Received: from lkp-server01.sh.intel.com (HELO 9ee84586c615) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 11 Jul 2025 03:53:19 -0700 Received: from kbuild by 9ee84586c615 with local (Exim 4.96) (envelope-from ) id 1uaBNU-0006HL-32; Fri, 11 Jul 2025 10:53:16 +0000 Date: Fri, 11 Jul 2025 18:52:33 +0800 From: kernel test robot To: Andrei Stefanescu , linus.walleij@linaro.org, brgl@bgdev.pl, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, chester62515@gmail.com, mbrugger@suse.com, Ghennadi.Procopciuc@nxp.com, larisa.grigore@nxp.com, lee@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, aisheng.dong@nxp.com, ping.bai@nxp.com, gregkh@linuxfoundation.org, rafael@kernel.org, srini@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, s32@nxp.com, clizzi@redhat.com, aruizrui@redhat.com, eballetb@redhat.com, echanude@redhat.com, kernel@pengutronix.de, imx@lists.linux.dev, vincent.guittot@linaro.org Subject: Re: [PATCH v7 07/12] pinctrl: s32g2: change the driver to also be probed as an MFD cell Message-ID: <202507111841.QdQ2DVpT-lkp@intel.com> References: <20250710142038.1986052-8-andrei.stefanescu@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250710142038.1986052-8-andrei.stefanescu@oss.nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250711_035328_003986_45801AF6 X-CRM114-Status: GOOD ( 15.44 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Andrei, kernel test robot noticed the following build warnings: [auto build test WARNING on linusw-pinctrl/devel] [also build test WARNING on linusw-pinctrl/for-next lee-mfd/for-mfd-next lee-mfd/for-mfd-fixes linus/master v6.16-rc5] [cannot apply to shawnguo/for-next next-20250710] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andrei-Stefanescu/dt-bindings-mfd-add-support-for-the-NXP-SIUL2-module/20250710-222538 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel patch link: https://lore.kernel.org/r/20250710142038.1986052-8-andrei.stefanescu%40oss.nxp.com patch subject: [PATCH v7 07/12] pinctrl: s32g2: change the driver to also be probed as an MFD cell config: arm64-randconfig-003-20250711 (https://download.01.org/0day-ci/archive/20250711/202507111841.QdQ2DVpT-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250711/202507111841.QdQ2DVpT-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202507111841.QdQ2DVpT-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/bits.h:32, from include/linux/bitops.h:6, from drivers/pinctrl/nxp/pinctrl-s32cc.c:10: drivers/pinctrl/nxp/pinctrl-s32cc.c: In function 'to_s32_pinctrl': include/linux/container_of.h:20:54: error: 'struct s32_pinctrl' has no member named 'gc' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ drivers/pinctrl/nxp/pinctrl-s32cc.c:706:16: note: in expansion of macro 'container_of' 706 | return container_of(chip, struct s32_pinctrl, gc); | ^~~~~~~~~~~~ include/linux/compiler_types.h:503:27: error: expression in static assertion is not an integer 503 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ drivers/pinctrl/nxp/pinctrl-s32cc.c:706:16: note: in expansion of macro 'container_of' 706 | return container_of(chip, struct s32_pinctrl, gc); | ^~~~~~~~~~~~ In file included from include/uapi/linux/posix_types.h:5, from include/uapi/linux/types.h:14, from include/linux/types.h:6, from include/linux/kasan-checks.h:5, from include/asm-generic/rwonce.h:26, from arch/arm64/include/asm/rwonce.h:67, from include/linux/compiler.h:390, from include/linux/build_bug.h:5: include/linux/stddef.h:16:33: error: 'struct s32_pinctrl' has no member named 'gc' 16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) | ^~~~~~~~~~~~~~~~~~ include/linux/container_of.h:23:28: note: in expansion of macro 'offsetof' 23 | ((type *)(__mptr - offsetof(type, member))); }) | ^~~~~~~~ drivers/pinctrl/nxp/pinctrl-s32cc.c:706:16: note: in expansion of macro 'container_of' 706 | return container_of(chip, struct s32_pinctrl, gc); | ^~~~~~~~~~~~ drivers/pinctrl/nxp/pinctrl-s32cc.c: In function 'legacy_s32_pinctrl_regmap_init': >> drivers/pinctrl/nxp/pinctrl-s32cc.c:873:44: warning: variable 'soc_data' set but not used [-Wunused-but-set-variable] 873 | const struct s32_pinctrl_soc_data *soc_data; | ^~~~~~~~ drivers/pinctrl/nxp/pinctrl-s32cc.c: In function 's32_pinctrl_mfd_regmap_init': drivers/pinctrl/nxp/pinctrl-s32cc.c:920:44: warning: variable 'soc_data' set but not used [-Wunused-but-set-variable] 920 | const struct s32_pinctrl_soc_data *soc_data; | ^~~~~~~~ drivers/pinctrl/nxp/pinctrl-s32cc.c: At top level: drivers/pinctrl/nxp/pinctrl-s32cc.c:704:28: warning: 'to_s32_pinctrl' defined but not used [-Wunused-function] 704 | static struct s32_pinctrl *to_s32_pinctrl(struct gpio_chip *chip) | ^~~~~~~~~~~~~~ vim +/soc_data +873 drivers/pinctrl/nxp/pinctrl-s32cc.c 868 869 static int legacy_s32_pinctrl_regmap_init(struct platform_device *pdev, 870 struct s32_pinctrl *ipctl) 871 { 872 struct s32_pinctrl_soc_info *info = ipctl->info; > 873 const struct s32_pinctrl_soc_data *soc_data; 874 unsigned int mem_regions; 875 struct resource *res; 876 struct regmap *map; 877 void __iomem *base; 878 u32 i = 0; 879 880 soc_data = info->soc_data; 881 882 mem_regions = info->soc_data->mem_regions; 883 if (mem_regions == 0 || mem_regions >= 10000) 884 return dev_err_probe(&pdev->dev, -EINVAL, 885 "mem_regions is invalid: %u\n", 886 mem_regions); 887 888 for (i = 0; i < mem_regions; i++) { 889 base = devm_platform_get_and_ioremap_resource(pdev, i, &res); 890 if (IS_ERR(base)) 891 return PTR_ERR(base); 892 893 snprintf(ipctl->regions[i].name, 894 sizeof(ipctl->regions[i].name), "map%u", i); 895 896 s32_regmap_config.name = ipctl->regions[i].name; 897 s32_regmap_config.max_register = resource_size(res) - 898 s32_regmap_config.reg_stride; 899 900 map = devm_regmap_init_mmio(&pdev->dev, base, 901 &s32_regmap_config); 902 if (IS_ERR(map)) { 903 dev_err(&pdev->dev, "Failed to init regmap[%u]\n", i); 904 return PTR_ERR(map); 905 } 906 907 ipctl->regions[i].map = map; 908 ipctl->regions[i].pin_range = &info->soc_data->mem_pin_ranges[i]; 909 } 910 911 return 0; 912 } 913 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki