Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp107576lqp; Tue, 11 Jun 2024 16:51:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXd04ogS0u3I2OcfZYlqbX3DYqKZixJhi/Q+S298WRbNo25scgSxNCS04IB1/r06Srs1unDGTpjqu8OPYfceJ8/WRP0UXlpJgiKVaQOWQ== X-Google-Smtp-Source: AGHT+IEbXncpcSbAcib1Xpqfgww9a1dUXgZQf1sOHyHa3a5E2F7h9zDGr+ta96tXPt9cFUdYZ05u X-Received: by 2002:a05:620a:394d:b0:795:5f86:6d32 with SMTP id af79cd13be357-797f602c708mr22094185a.38.1718149887386; Tue, 11 Jun 2024 16:51:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718149887; cv=pass; d=google.com; s=arc-20160816; b=DiwEfvdMVjA8GxEDr+Z+cXjvAUs5aFiyUpdzSluC38pCFMdnQbiTnepPZkJZ4mtSCL 3NfWn5I73hJbI1c4bsOWMBGTyBjVNu2NpDG+XoJ6kY8gPY9B4BywM87GweBD7bCxRoAp TBkdpANgeqBKnlfXfeR1aEepS59e2CKSGF3ITLdSukUR/jDREaQmPMcY0/U3wjFWqgCm UPfCaj416L8dyRwKowLBxgFJbXrhfp9kRzQAkh+7PFScEvSd/zfThDa3O08RcNyCLOTV KQ1PT38RbPsvoO1FzSCOcnWifC7nM/v7dZ6GhhPuZw1sG7GX11BITPjRWlo4J6H5clSk qsuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RCxQ8KO1CibtPjJ8fSPBBX82fX1BOvsJWyAkkMefDsI=; fh=o/xxc2N2hQpwaL3qdjVqz/mS74t2cj3n9Q1WvqirWRw=; b=RjoJExy+y+MXRhyWX2Zz+q04Z96a7+hdihNAPaKVh6uVrEohBXcd3+N6+SMI/9LUFG 4Dfh0iXPbmyyr/6lHA2j1zhNnci/GCBypSGQC1Q7VS+DulczixeAr9OVO076qK3NAINs Q5zFIUaSqWN6bFtSxAI0e5t+gFZ3zo66v6z1B7S+KHpwxRJmwxtbqG7eEnrwi6mTgBg5 UYn7gO8+DJ7rEJcBdi/9uV+uoVRjiMBGh7qKebNci0LBA4ncDL/Spi43QhuKFFCM4XZT 3x14HcN+83q9TEyJ6vqTAnVXgYffHAifWULP9ztzSF4jUVAIyWKmcXo+zWZ/MWgXtUTE T8Pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mgBCY7jQ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-210711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-4405303bc87si98233181cf.342.2024.06.11.16.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 16:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mgBCY7jQ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-210711-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210711-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 004CB1C226AB for ; Tue, 11 Jun 2024 23:51:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C803315624B; Tue, 11 Jun 2024 23:51:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mgBCY7jQ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 17B85156223; Tue, 11 Jun 2024 23:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718149879; cv=none; b=H/dQZDlzQf8qTHvNnO7OKYe4q4X8q57uX6mNo8ASujZ99JS4Ed0EycI1XlOGnNqdMKg9BGYlnc6WQhJsjsN4UIeaAzQL4jE3tV6wtiZFBhISa23mmRsmvGFtm44xUIOnSrottEoOBKMd459116NuyilNIwoIex2IgMdKua9XIFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718149879; c=relaxed/simple; bh=h5HF9pCAb1MxL3/sRkayKVqQ8cZbn1NxPJY35SVtgI4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uXTze+NXPLhpfcRfWgM9kJrxSjhsch4dAhY9GenuSjl3qAIGo1Y/SwG8NtEJj0bC8akkvCKmhWKdStkeJr9EBNGFi5SfE0tOiqrxKfxkXTqiV5E4c/I6LWaRPLh8jkoi+uPcWXXhFFPPDzWG0lhbt9A5LMv5N1nGHDdn44v7sz8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mgBCY7jQ; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718149877; x=1749685877; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=h5HF9pCAb1MxL3/sRkayKVqQ8cZbn1NxPJY35SVtgI4=; b=mgBCY7jQJjH5XPQsfAI6THh7MC6flQURmwssnT3epr5CVPu/jUA4pcKd Q2YXGqyd6scZhHN11caAMoeAxeLQsqIuE8BMasU9M9zUCS2KfC9oiGrHk kRx9ITkhNUortsrY6zXCwYglfHBZRDLLfV2kwfbU7OlitLhz1T3skHqTW jaE03rVoJOA8EvXuyp5/1xwp4PC3SR1zSEtZkI8OJSHggjHL5PhLZ6Tpg vun+PmdLbSUziPAWUmPaO5A2p/cj7qu5RP4yVR+pmCWEKgLX0bnNLfNKM BjC1gVGH1FOASejInYYIaLeTjpcK0UBm/F1XjRgBHNOy2gxosDtHwkSQr Q==; X-CSE-ConnectionGUID: Kln24LJ5RJyiWeWixkpRaQ== X-CSE-MsgGUID: 3t54aSWoR0KSojUX+m80mg== X-IronPort-AV: E=McAfee;i="6600,9927,11100"; a="26300190" X-IronPort-AV: E=Sophos;i="6.08,231,1712646000"; d="scan'208";a="26300190" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 16:51:16 -0700 X-CSE-ConnectionGUID: t3vXGlLRTp6SS2YhtonFYQ== X-CSE-MsgGUID: y6oi2X4YTtKRLW6afWeRQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,231,1712646000"; d="scan'208";a="39714356" Received: from lkp-server01.sh.intel.com (HELO 628d7d8b9fc6) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 11 Jun 2024 16:51:13 -0700 Received: from kbuild by 628d7d8b9fc6 with local (Exim 4.96) (envelope-from ) id 1sHBGg-00010I-1u; Tue, 11 Jun 2024 23:51:10 +0000 Date: Wed, 12 Jun 2024 07:50:20 +0800 From: kernel test robot To: Andy Shevchenko , Jacky Huang , Linus Walleij , Tomer Maimon , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Cc: oe-kbuild-all@lists.linux.dev, Shan-Chun Hung , Avi Fishman , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Subject: Re: [PATCH v1 3/4] pinctrl: nuvoton: Convert to use struct group_desc Message-ID: <202406120754.BLemVAqf-lkp@intel.com> References: <20240611093127.90210-4-andy.shevchenko@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240611093127.90210-4-andy.shevchenko@gmail.com> Hi Andy, kernel test robot noticed the following build errors: [auto build test ERROR on linusw-pinctrl/devel] [also build test ERROR on linusw-pinctrl/for-next next-20240611] [cannot apply to linus/master v6.10-rc3] [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/Andy-Shevchenko/pinctrl-nuvoton-Convert-to-use-struct-pingroup-and-PINCTRL_PINGROUP/20240611-173545 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel patch link: https://lore.kernel.org/r/20240611093127.90210-4-andy.shevchenko%40gmail.com patch subject: [PATCH v1 3/4] pinctrl: nuvoton: Convert to use struct group_desc config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240612/202406120754.BLemVAqf-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240612/202406120754.BLemVAqf-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/202406120754.BLemVAqf-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/pinctrl/nuvoton/pinctrl-ma35.c: In function 'ma35_pinctrl_dt_node_to_map_func': >> drivers/pinctrl/nuvoton/pinctrl-ma35.c:228:28: error: 'struct group_desc' has no member named 'npins' 228 | for (i = 0; i < grp->npins; i++) { | ^~ drivers/pinctrl/nuvoton/pinctrl-ma35.c: In function 'ma35_pinmux_set_mux': drivers/pinctrl/nuvoton/pinctrl-ma35.c:287:28: error: 'struct group_desc' has no member named 'npins' 287 | for (i = 0; i < grp->npins; i++) { | ^~ vim +228 drivers/pinctrl/nuvoton/pinctrl-ma35.c ecc5bf868673446 Jacky Huang 2024-05-21 184 ecc5bf868673446 Jacky Huang 2024-05-21 185 static int ma35_pinctrl_dt_node_to_map_func(struct pinctrl_dev *pctldev, ecc5bf868673446 Jacky Huang 2024-05-21 186 struct device_node *np, ecc5bf868673446 Jacky Huang 2024-05-21 187 struct pinctrl_map **map, ecc5bf868673446 Jacky Huang 2024-05-21 188 unsigned int *num_maps) ecc5bf868673446 Jacky Huang 2024-05-21 189 { ecc5bf868673446 Jacky Huang 2024-05-21 190 struct ma35_pinctrl *npctl = pinctrl_dev_get_drvdata(pctldev); 888aa25ee6ce72d Andy Shevchenko 2024-06-11 191 struct ma35_pin_setting *setting; ecc5bf868673446 Jacky Huang 2024-05-21 192 struct pinctrl_map *new_map; ecc5bf868673446 Jacky Huang 2024-05-21 193 struct device_node *parent; 888aa25ee6ce72d Andy Shevchenko 2024-06-11 194 struct group_desc *grp; ecc5bf868673446 Jacky Huang 2024-05-21 195 int map_num = 1; ecc5bf868673446 Jacky Huang 2024-05-21 196 int i; ecc5bf868673446 Jacky Huang 2024-05-21 197 ecc5bf868673446 Jacky Huang 2024-05-21 198 /* ecc5bf868673446 Jacky Huang 2024-05-21 199 * first find the group of this node and check if we need create ecc5bf868673446 Jacky Huang 2024-05-21 200 * config maps for pins ecc5bf868673446 Jacky Huang 2024-05-21 201 */ ecc5bf868673446 Jacky Huang 2024-05-21 202 grp = ma35_pinctrl_find_group_by_name(npctl, np->name); ecc5bf868673446 Jacky Huang 2024-05-21 203 if (!grp) { ecc5bf868673446 Jacky Huang 2024-05-21 204 dev_err(npctl->dev, "unable to find group for node %s\n", np->name); ecc5bf868673446 Jacky Huang 2024-05-21 205 return -EINVAL; ecc5bf868673446 Jacky Huang 2024-05-21 206 } ecc5bf868673446 Jacky Huang 2024-05-21 207 888aa25ee6ce72d Andy Shevchenko 2024-06-11 208 map_num += grp->grp.npins; ecc5bf868673446 Jacky Huang 2024-05-21 209 new_map = devm_kcalloc(pctldev->dev, map_num, sizeof(*new_map), GFP_KERNEL); ecc5bf868673446 Jacky Huang 2024-05-21 210 if (!new_map) ecc5bf868673446 Jacky Huang 2024-05-21 211 return -ENOMEM; ecc5bf868673446 Jacky Huang 2024-05-21 212 ecc5bf868673446 Jacky Huang 2024-05-21 213 *map = new_map; ecc5bf868673446 Jacky Huang 2024-05-21 214 *num_maps = map_num; ecc5bf868673446 Jacky Huang 2024-05-21 215 /* create mux map */ ecc5bf868673446 Jacky Huang 2024-05-21 216 parent = of_get_parent(np); ecc5bf868673446 Jacky Huang 2024-05-21 217 if (!parent) ecc5bf868673446 Jacky Huang 2024-05-21 218 return -EINVAL; ecc5bf868673446 Jacky Huang 2024-05-21 219 888aa25ee6ce72d Andy Shevchenko 2024-06-11 220 setting = grp->data; 888aa25ee6ce72d Andy Shevchenko 2024-06-11 221 ecc5bf868673446 Jacky Huang 2024-05-21 222 new_map[0].type = PIN_MAP_TYPE_MUX_GROUP; ecc5bf868673446 Jacky Huang 2024-05-21 223 new_map[0].data.mux.function = parent->name; ecc5bf868673446 Jacky Huang 2024-05-21 224 new_map[0].data.mux.group = np->name; ecc5bf868673446 Jacky Huang 2024-05-21 225 of_node_put(parent); ecc5bf868673446 Jacky Huang 2024-05-21 226 ecc5bf868673446 Jacky Huang 2024-05-21 227 new_map++; ecc5bf868673446 Jacky Huang 2024-05-21 @228 for (i = 0; i < grp->npins; i++) { ecc5bf868673446 Jacky Huang 2024-05-21 229 new_map[i].type = PIN_MAP_TYPE_CONFIGS_PIN; 888aa25ee6ce72d Andy Shevchenko 2024-06-11 230 new_map[i].data.configs.group_or_pin = pin_get_name(pctldev, grp->grp.pins[i]); 888aa25ee6ce72d Andy Shevchenko 2024-06-11 231 new_map[i].data.configs.configs = setting[i].configs; 888aa25ee6ce72d Andy Shevchenko 2024-06-11 232 new_map[i].data.configs.num_configs = setting[i].nconfigs; ecc5bf868673446 Jacky Huang 2024-05-21 233 } ecc5bf868673446 Jacky Huang 2024-05-21 234 dev_dbg(pctldev->dev, "maps: function %s group %s num %d\n", ecc5bf868673446 Jacky Huang 2024-05-21 235 (*map)->data.mux.function, (*map)->data.mux.group, map_num); ecc5bf868673446 Jacky Huang 2024-05-21 236 ecc5bf868673446 Jacky Huang 2024-05-21 237 return 0; ecc5bf868673446 Jacky Huang 2024-05-21 238 } ecc5bf868673446 Jacky Huang 2024-05-21 239 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki