From: kernel test robot <lkp@intel.com>
To: Cristian Marussi <cristian.marussi@arm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Oleksii_Moisieiev@epam.com, linus.walleij@linaro.org,
linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org, michal.simek@amd.com,
peng.fan@oss.nxp.com, sudeep.holla@arm.com
Subject: Re: [PATCH] [REVIEW][PINCTRL]: Misc Fixes and refactor
Date: Tue, 9 May 2023 17:46:51 +0800 [thread overview]
Message-ID: <202305091719.8LNihq5L-lkp@intel.com> (raw)
In-Reply-To: <20230505201012.3171817-1-cristian.marussi@arm.com>
Hi Cristian,
kernel test robot noticed the following build errors:
url: https://github.com/intel-lab-lkp/linux/commits/UPDATE-20230506-041158/Oleksii-Moisieiev/pinctrl-Implementation-of-the-generic-scmi-pinctrl-driver/20230426-222739
base: the 1th patch of https://lore.kernel.org/r/b4d60f3408f8fe839933fa3938ecdc9bfceb75d7.1682513390.git.oleksii_moisieiev%40epam.com
patch link: https://lore.kernel.org/r/20230505201012.3171817-1-cristian.marussi%40arm.com
patch subject: [PATCH] [REVIEW][PINCTRL]: Misc Fixes and refactor
config: arm-randconfig-r011-20230508 (https://download.01.org/0day-ci/archive/20230509/202305091719.8LNihq5L-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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/intel-lab-lkp/linux/commit/c3e47504d3b8eac203b4ae3fc56c3791790dd88b
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review UPDATE-20230506-041158/Oleksii-Moisieiev/pinctrl-Implementation-of-the-generic-scmi-pinctrl-driver/20230426-222739
git checkout c3e47504d3b8eac203b4ae3fc56c3791790dd88b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/firmware/arm_scmi/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305091719.8LNihq5L-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/firmware/arm_scmi/pinctrl.c:228:10: error: too many arguments to function call, expected 5, have 6
SCMI_MAX_STR_SIZE);
^~~~~~~~~~~~~~~~~
include/linux/scmi_protocol.h:16:28: note: expanded from macro 'SCMI_MAX_STR_SIZE'
#define SCMI_MAX_STR_SIZE 64
^~
1 error generated.
vim +228 drivers/firmware/arm_scmi/pinctrl.c
182
183 static int scmi_pinctrl_attributes(const struct scmi_protocol_handle *ph,
184 enum scmi_pinctrl_selector_type type,
185 u32 selector, char *name,
186 unsigned int *n_elems)
187 {
188 int ret;
189 u32 attrs;
190 struct scmi_xfer *t;
191 struct scmi_msg_pinctrl_attributes *tx;
192 struct scmi_resp_pinctrl_attributes *rx;
193
194 if (!name)
195 return -EINVAL;
196
197 ret = scmi_pinctrl_validate_id(ph, selector, type);
198 if (ret)
199 return ret;
200
201 ret = ph->xops->xfer_get_init(ph, PINCTRL_ATTRIBUTES, sizeof(*tx),
202 sizeof(*rx), &t);
203 if (ret)
204 return ret;
205
206 tx = t->tx.buf;
207 rx = t->rx.buf;
208 tx->identifier = cpu_to_le32(selector);
209 tx->flags = cpu_to_le32(type);
210
211 ret = ph->xops->do_xfer(ph, t);
212 if (!ret) {
213 attrs = le32_to_cpu(rx->attributes);
214 if (n_elems)
215 *n_elems = NUM_ELEMS(attrs);
216 strscpy(name, rx->name, SCMI_SHORT_NAME_MAX_SIZE);
217 }
218
219 ph->xops->xfer_put(ph, t);
220
221 /*
222 * If supported overwrite short name with the extended one;
223 * on error just carry on and use already provided short name.
224 */
225 if (!ret && EXT_NAME_FLAG(attrs))
226 ph->hops->extended_name_get(ph, PINCTRL_NAME_GET, selector,
227 (u32 *)&type, name,
> 228 SCMI_MAX_STR_SIZE);
229 return ret;
230 }
231
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-05-09 9:48 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 13:26 [RFC v2 0/2] Introducing generic SCMI pinctrl driver implementation Oleksii Moisieiev
2023-04-26 13:26 ` [RFC v2 2/3] pinctrl: Implementation of the generic scmi-pinctrl driver Oleksii Moisieiev
2023-05-05 12:03 ` Linus Walleij
2023-05-05 20:01 ` Cristian Marussi
2023-05-11 10:23 ` Oleksii Moisieiev
2023-05-05 20:35 ` andy.shevchenko
2023-05-11 13:15 ` Oleksii Moisieiev
2023-05-12 9:04 ` Cristian Marussi
2023-05-12 12:18 ` Oleksii Moisieiev
2023-05-12 13:11 ` Cristian Marussi
2023-04-26 13:26 ` [RFC v2 1/3] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support Oleksii Moisieiev
2023-05-05 19:52 ` Cristian Marussi
2023-05-05 20:10 ` [PATCH] [REVIEW][PINCTRL]: Misc Fixes and refactor Cristian Marussi
2023-05-05 21:20 ` kernel test robot
2023-05-09 9:46 ` kernel test robot [this message]
2023-05-05 20:14 ` [PATCH] firmware: arm_scmi: Add optional flags to extended names helper Cristian Marussi
2023-05-07 20:38 ` [RFC v2 1/3] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support Cristian Marussi
2023-05-12 8:38 ` Oleksii Moisieiev
2023-05-12 8:55 ` Cristian Marussi
2023-05-12 12:31 ` Oleksii Moisieiev
2023-05-12 12:32 ` Michal Simek
2023-06-07 6:31 ` Oleksii Moisieiev
2023-04-26 13:26 ` [RFC v2 3/3] dt-bindings: firmware: arm,scmi: Add support for pinctrl protocol Oleksii Moisieiev
2023-04-27 7:07 ` Michal Simek
2023-04-27 7:19 ` Oleksii Moisieiev
2023-04-28 10:06 ` Krzysztof Kozlowski
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=202305091719.8LNihq5L-lkp@intel.com \
--to=lkp@intel.com \
--cc=Oleksii_Moisieiev@epam.com \
--cc=cristian.marussi@arm.com \
--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=llvm@lists.linux.dev \
--cc=michal.simek@amd.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peng.fan@oss.nxp.com \
--cc=sudeep.holla@arm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).