From: kernel test robot <lkp@intel.com>
To: David Leonard <David.Leonard@digi.com>,
linux-arm-kernel@lists.infradead.org
Cc: oe-kbuild-all@lists.linux.dev,
Dong Aisheng <aisheng.dong@nxp.com>,
Fabio Estevam <festevam@gmail.com>,
Shawn Guo <shawnguo@kernel.org>, Jacky Bai <ping.bai@nxp.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Linus Walleij <linus.walleij@linaro.org>,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org
Subject: Re: [PATCH 4/6] pinctrl: ls1046a: Add pinctrl driver support
Date: Wed, 28 Aug 2024 05:31:24 +0800 [thread overview]
Message-ID: <202408280532.YGyLCCNL-lkp@intel.com> (raw)
In-Reply-To: <c0ecf4f4-94f1-2efd-b05b-fc117c62e516@digi.com>
Hi David,
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 shawnguo/for-next arm64/for-next/core kvmarm/next rockchip/for-next soc/for-next linus/master v6.11-rc5 next-20240827]
[cannot apply to arm/for-next arm/fixes]
[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/David-Leonard/arm64-dts-ls1012a-add-pinctrl-node/20240827-104431
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
patch link: https://lore.kernel.org/r/c0ecf4f4-94f1-2efd-b05b-fc117c62e516%40digi.com
patch subject: [PATCH 4/6] pinctrl: ls1046a: Add pinctrl driver support
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20240828/202408280532.YGyLCCNL-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240828/202408280532.YGyLCCNL-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408280532.YGyLCCNL-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/pinctrl/freescale/pinctrl-ls1046a.c: In function 'ls1046a_pinctrl_probe':
>> drivers/pinctrl/freescale/pinctrl-ls1046a.c:199:58: warning: passing argument 2 of 'devm_pinctrl_register_and_init' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
199 | ret = devm_pinctrl_register_and_init(&pdev->dev, &ls1046a_pinctrl_desc,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/pinctrl/freescale/pinctrl-ls1046a.c:10:
include/linux/pinctrl/pinctrl.h:180:54: note: expected 'struct pinctrl_desc *' but argument is of type 'const struct pinctrl_desc *'
180 | struct pinctrl_desc *pctldesc,
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
vim +199 drivers/pinctrl/freescale/pinctrl-ls1046a.c
179
180 static int ls1046a_pinctrl_probe(struct platform_device *pdev)
181 {
182 struct ls1046a_pinctrl_pdata *pd;
183 int ret;
184
185 pd = devm_kzalloc(&pdev->dev, sizeof(*pd), GFP_KERNEL);
186 if (!pd)
187 return -ENOMEM;
188 platform_set_drvdata(pdev, pd);
189
190 pd->big_endian = device_is_big_endian(&pdev->dev);
191
192 /* SCFG PMUX0 */
193 pd->cr0mem = devm_platform_ioremap_resource(pdev, 0);
194 if (IS_ERR(pd->cr0mem))
195 return PTR_ERR(pd->cr0mem);
196 dev_dbg(&pdev->dev, "scfg pmuxcr0 at %px %s", pd->cr0mem,
197 pd->big_endian ? "be" : "le");
198
> 199 ret = devm_pinctrl_register_and_init(&pdev->dev, &ls1046a_pinctrl_desc,
200 pd, &pd->pctl_dev);
201 if (ret)
202 return dev_err_probe(&pdev->dev, ret, "Failed pinctrl init\n");
203
204 pinctrl_enable(pd->pctl_dev);
205 return ret;
206 }
207
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-08-27 21:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 2:12 [PATCH 4/6] pinctrl: ls1046a: Add pinctrl driver support David Leonard
2024-08-27 19:19 ` Frank Li
2024-08-30 22:26 ` Linus Walleij
2024-08-31 16:14 ` Frank Li
2024-08-27 21:10 ` kernel test robot
2024-08-27 21:31 ` kernel test robot [this message]
2024-08-28 7:16 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202408280532.YGyLCCNL-lkp@intel.com \
--to=lkp@intel.com \
--cc=David.Leonard@digi.com \
--cc=aisheng.dong@nxp.com \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ping.bai@nxp.com \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.