Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2345430lqb; Mon, 27 May 2024 17:20:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEH2MYYAAg/OAIn2cNpMB2lDBY532kuQ/y17fHDCny9r8R2YOOngaqImrHL7EOsoRqzDx+i6kYE6hur3IWITtgW1TzCvj6Db9l3MpkSQ== X-Google-Smtp-Source: AGHT+IGHsUb4ZmvqomnLIui5eJS1y8uIgvEJ++v7Cr6pMkz1AFxHYu3S/eIfeZB9FwH0K7pSTl5R X-Received: by 2002:a50:c05b:0:b0:578:638d:4b45 with SMTP id 4fb4d7f45d1cf-578638d4dffmr5038441a12.18.1716855618024; Mon, 27 May 2024 17:20:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716855618; cv=pass; d=google.com; s=arc-20160816; b=OZPoP6W33XKA5fC29nbDkBSqqmvxHgGEOkm1dxk1Khb4ddk9xOvw6nXvGFAXuzQevP 37Oboq0MPWhdpI2Cf/UGLeB842YdkJd7y3VEPo1ZhIU6pNdNHQHfyvToc+AjnA1+XTS6 4g0ekfFi5rjkcPcsgoFVEhGGPeonN5eP1pJYI8tyBPGSeEyLPbkjGeG9FJtDPT7Gk83P BJFY3f/JuNIVE41azBp2DkT/bfAiUxxCycrLeCTiM92XQqDLF7FaRRs4Tw2ULyZ3Qtfr mLeGD5/vApCNLF+c2fDxO+uNX5hH18E2PLEjoPCFdkRnONPUO2Cnh81cEXD+PXCbR5io BiaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9Y/wNCvg4flEbCfInFarSt03hxHrj5RBOfyIrC87W/I=; fh=7ktsIMDp2U1y9U/Q2lvDK5WTwj1AsBS1gHb76STWAoc=; b=bncE+DtReLrMtn9GHnnBUn35J8H2QuMjLpJeN5Zw0RnVl+KKgNMcRSe87pMJq/wuXY l04Dp0/rYpwR66YJ6FbHylI1u1tZZl4uBJMcKYUvuUfeqFcRFbc5Qao363HqbYd2Z6/y 8eXGSqmy7lXyw5VcZEGIGZr2GE4ny9Rq/1xFWbCNsD7Wx3XugxBkzKsEia/yRqGcpJIF YUS11ny20GO/u33SDL8zqnjDoqwAJOZ+Nd92T437lxT3a2XYbeeqPxrhNByQS5DACVs3 hODKGqgvZCJRbKwbwcJdZVKjH4yc1NL0DIf1/ijTeiDy3/qprR9kQ8oggl+1yqWVYI3b ybAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eZ76nE1A; 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-191537-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191537-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5786cb43e05si3334678a12.436.2024.05.27.17.20.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 17:20:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191537-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eZ76nE1A; 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-191537-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191537-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 96B121F21902 for ; Tue, 28 May 2024 00:20:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80DDC4A2D; Tue, 28 May 2024 00:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eZ76nE1A" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 C4A76CA6B; Tue, 28 May 2024 00:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716855608; cv=none; b=Pfu2EeCeBuWBKtbt3ipjuaM+Mj3tMBWp+SR5KTvDfF5hWa/AU9nJ8kg+ID6fuT9k0zB22oLlrTwjomi7uiETfONhTEMuliQjpUs0Dinx8BEM3iBiERYa4J6o7dVGBfIMIv4KXwkbEHvLm88o9aduX+0vJAHGwCq8KfcZN+3V9t0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716855608; c=relaxed/simple; bh=eWutr2ixlnG62KX0n+3CKcwCg7XUOaIpMKsxTO2P7eI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D1XONIFI030FIl2GKGJAhjp2DcjASzGLXaBXu7t+pwFkFpd5WuOi5/cbBc7OYWd/nDsreEnZOtM75D3HkGGdZeyGj1hcD5k2puL5UUlsN0gcJqURyyOOB/uI1ppBUzMjKO+nMwr7uLp2gC81r3p8wCm2N450LYrC7Z6cF1q2Bjg= 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=eZ76nE1A; arc=none smtp.client-ip=192.198.163.19 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=1716855607; x=1748391607; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=eWutr2ixlnG62KX0n+3CKcwCg7XUOaIpMKsxTO2P7eI=; b=eZ76nE1AQk8kYLxkEItfa/UaZ2gufhuEfsMdsljY/5BcTOUgm9Ekmh3x emWGAr2Z+6Cc1P2IiCZW7AB+aBIHpmfk4naoH2g/r4AaKW9TeoGH+7fT5 Q/E4mDDARE7MH+fz6ix6gTr7eQCGL3zBXJr/mrpxheXv/OdXSKfRbShcz neTtSs+n2iokE+O/TV0K0NKsTDAZsZmM4gM7hPjGDg5AoCSmS9eApk4/v V+xxvceAw5M3KKh8ElVzeGLRA0rnPIjNa3VenxNGfhc1jz8TelDGZYljY 4DyNAv+VON94I8QSmMuhbSnhe7nU0L/epxAB9FFT+bG6QwkBMVTBO/uqf Q==; X-CSE-ConnectionGUID: 3oOB2dv3Qh2bfyomSW+kWA== X-CSE-MsgGUID: k9jyHRJrSV2QxlqOvvn9WQ== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13005897" X-IronPort-AV: E=Sophos;i="6.08,193,1712646000"; d="scan'208";a="13005897" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2024 17:20:06 -0700 X-CSE-ConnectionGUID: w4akoXTfQ/WInjn+IB/C/A== X-CSE-MsgGUID: WDKBma7rRiOAj5w/CeSwHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,193,1712646000"; d="scan'208";a="65697189" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 27 May 2024 17:20:01 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sBkZK-000BDz-1x; Tue, 28 May 2024 00:19:58 +0000 Date: Tue, 28 May 2024 08:19:55 +0800 From: kernel test robot To: Andy Shevchenko , Andy Shevchenko , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Sascha Hauer , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Paul Cercueil , Lakshmi Sowjanya D Subject: Re: [PATCH v1 05/11] pinctrl: pinmux: Add a convenient define PINCTRL_FUNCTION_DESC() Message-ID: <202405280739.VSX5oEnr-lkp@intel.com> References: <20240527212742.1432960-6-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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240527212742.1432960-6-andy.shevchenko@gmail.com> Hi Andy, 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 linus/master v6.10-rc1 next-20240523] [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-berlin-Make-use-of-struct-pinfunction/20240528-053304 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel patch link: https://lore.kernel.org/r/20240527212742.1432960-6-andy.shevchenko%40gmail.com patch subject: [PATCH v1 05/11] pinctrl: pinmux: Add a convenient define PINCTRL_FUNCTION_DESC() config: sh-defconfig (https://download.01.org/0day-ci/archive/20240528/202405280739.VSX5oEnr-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240528/202405280739.VSX5oEnr-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/202405280739.VSX5oEnr-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/pinctrl/pinmux.c:863: warning: Function parameter or struct member 'ngroups' not described in 'pinmux_generic_add_function' >> drivers/pinctrl/pinmux.c:863: warning: Excess function parameter 'num_groups' description in 'pinmux_generic_add_function' vim +863 drivers/pinctrl/pinmux.c a76edc89b100e4 Tony Lindgren 2016-12-27 849 a76edc89b100e4 Tony Lindgren 2016-12-27 850 /** 6bffa7e1631d55 Geert Uytterhoeven 2017-04-03 851 * pinmux_generic_add_function() - adds a function group a76edc89b100e4 Tony Lindgren 2016-12-27 852 * @pctldev: pin controller device a76edc89b100e4 Tony Lindgren 2016-12-27 853 * @name: name of the function a76edc89b100e4 Tony Lindgren 2016-12-27 854 * @groups: array of pin groups a76edc89b100e4 Tony Lindgren 2016-12-27 855 * @num_groups: number of pin groups a76edc89b100e4 Tony Lindgren 2016-12-27 856 * @data: pin controller driver specific data a76edc89b100e4 Tony Lindgren 2016-12-27 857 */ a76edc89b100e4 Tony Lindgren 2016-12-27 858 int pinmux_generic_add_function(struct pinctrl_dev *pctldev, a76edc89b100e4 Tony Lindgren 2016-12-27 859 const char *name, bd0aae66c48208 Rafał Miłecki 2021-12-16 860 const char * const *groups, 368512f04e89e0 Andy Shevchenko 2024-05-28 861 const unsigned int ngroups, a76edc89b100e4 Tony Lindgren 2016-12-27 862 void *data) a76edc89b100e4 Tony Lindgren 2016-12-27 @863 { a76edc89b100e4 Tony Lindgren 2016-12-27 864 struct function_desc *function; 6ec89cd4d17bd5 Sergey Shtylyov 2023-07-19 865 int selector, error; f913cfce4ee49a Tony Lindgren 2018-07-05 866 f913cfce4ee49a Tony Lindgren 2018-07-05 867 if (!name) f913cfce4ee49a Tony Lindgren 2018-07-05 868 return -EINVAL; f913cfce4ee49a Tony Lindgren 2018-07-05 869 f913cfce4ee49a Tony Lindgren 2018-07-05 870 selector = pinmux_func_name_to_selector(pctldev, name); f913cfce4ee49a Tony Lindgren 2018-07-05 871 if (selector >= 0) f913cfce4ee49a Tony Lindgren 2018-07-05 872 return selector; f913cfce4ee49a Tony Lindgren 2018-07-05 873 f913cfce4ee49a Tony Lindgren 2018-07-05 874 selector = pctldev->num_functions; a76edc89b100e4 Tony Lindgren 2016-12-27 875 a76edc89b100e4 Tony Lindgren 2016-12-27 876 function = devm_kzalloc(pctldev->dev, sizeof(*function), GFP_KERNEL); a76edc89b100e4 Tony Lindgren 2016-12-27 877 if (!function) a76edc89b100e4 Tony Lindgren 2016-12-27 878 return -ENOMEM; a76edc89b100e4 Tony Lindgren 2016-12-27 879 368512f04e89e0 Andy Shevchenko 2024-05-28 880 function = PINCTRL_FUNCTION_DESC(name, groups, ngroups, data); a76edc89b100e4 Tony Lindgren 2016-12-27 881 6ec89cd4d17bd5 Sergey Shtylyov 2023-07-19 882 error = radix_tree_insert(&pctldev->pin_function_tree, selector, function); 6ec89cd4d17bd5 Sergey Shtylyov 2023-07-19 883 if (error) 6ec89cd4d17bd5 Sergey Shtylyov 2023-07-19 884 return error; a76edc89b100e4 Tony Lindgren 2016-12-27 885 a76edc89b100e4 Tony Lindgren 2016-12-27 886 pctldev->num_functions++; a76edc89b100e4 Tony Lindgren 2016-12-27 887 f913cfce4ee49a Tony Lindgren 2018-07-05 888 return selector; a76edc89b100e4 Tony Lindgren 2016-12-27 889 } a76edc89b100e4 Tony Lindgren 2016-12-27 890 EXPORT_SYMBOL_GPL(pinmux_generic_add_function); a76edc89b100e4 Tony Lindgren 2016-12-27 891 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki