From: kernel test robot <lkp@intel.com>
To: Luis Chamberlain <mcgrof@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Borislav Petkov <bp@suse.de>
Subject: [mcgrof-next:20210915-firmware-builtin-v2 14/14] lib/test_firmware.c:1085:77: error: too many arguments to function call, expected 2, have 4
Date: Wed, 29 Sep 2021 14:53:37 +0800 [thread overview]
Message-ID: <202109291433.ECTUlOs9-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3435 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210915-firmware-builtin-v2
head: e7307db5fae2ba43c2984040a8329f0089be09d0
commit: e7307db5fae2ba43c2984040a8329f0089be09d0 [14/14] test_firmware: add support for testing built-in firmware
config: arm-buildonly-randconfig-r005-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?id=e7307db5fae2ba43c2984040a8329f0089be09d0
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210915-firmware-builtin-v2
git checkout e7307db5fae2ba43c2984040a8329f0089be09d0
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> lib/test_firmware.c:1085:77: error: too many arguments to function call, expected 2, have 4
if (firmware_request_builtin(&builtin_test_firmware, test_fw_config->name, NULL, 0)) {
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
include/linux/firmware.h:26:20: note: 'firmware_request_builtin' declared here
static inline bool firmware_request_builtin(struct firmware *fw,
^
1 error generated.
vim +1085 lib/test_firmware.c
1064
1065 /*
1066 * In order to test this, set CONFIG_FW_LOADER_BUILTIN_FILES to a firmware file
1067 * which will be built into the kernel image. Then echo the name into the
1068 * "trigger_request_builtin" sysfs file of this module.
1069 */
1070 static ssize_t trigger_request_builtin_store(struct device *dev,
1071 struct device_attribute *attr,
1072 const char *buf, size_t count)
1073 {
1074 int rc = -ENOENT;
1075
1076 if (!test_fw_config->name) {
1077 pr_warn("unconfigured firmware settings\n");
1078 return rc;
1079 }
1080
1081 pr_info("loading builtin '%s'\n", test_fw_config->name);
1082
1083 mutex_lock(&test_fw_mutex);
1084
> 1085 if (firmware_request_builtin(&builtin_test_firmware, test_fw_config->name, NULL, 0)) {
1086 test_fw_config->is_builtin = true;
1087 /* This let's us diff against the firmware */
1088 pr_info("loaded: %zu\n", builtin_test_firmware.size);
1089 rc = count;
1090 goto out;
1091 }
1092
1093 pr_info("load of '%s' failed\n", test_fw_config->name);
1094
1095 out:
1096 mutex_unlock(&test_fw_mutex);
1097
1098 return rc;
1099 }
1100 static DEVICE_ATTR_WO(trigger_request_builtin);
1101
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32358 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mcgrof-next:20210915-firmware-builtin-v2 14/14] lib/test_firmware.c:1085:77: error: too many arguments to function call, expected 2, have 4
Date: Wed, 29 Sep 2021 14:53:37 +0800 [thread overview]
Message-ID: <202109291433.ECTUlOs9-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3516 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210915-firmware-builtin-v2
head: e7307db5fae2ba43c2984040a8329f0089be09d0
commit: e7307db5fae2ba43c2984040a8329f0089be09d0 [14/14] test_firmware: add support for testing built-in firmware
config: arm-buildonly-randconfig-r005-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?id=e7307db5fae2ba43c2984040a8329f0089be09d0
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210915-firmware-builtin-v2
git checkout e7307db5fae2ba43c2984040a8329f0089be09d0
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> lib/test_firmware.c:1085:77: error: too many arguments to function call, expected 2, have 4
if (firmware_request_builtin(&builtin_test_firmware, test_fw_config->name, NULL, 0)) {
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^
include/linux/firmware.h:26:20: note: 'firmware_request_builtin' declared here
static inline bool firmware_request_builtin(struct firmware *fw,
^
1 error generated.
vim +1085 lib/test_firmware.c
1064
1065 /*
1066 * In order to test this, set CONFIG_FW_LOADER_BUILTIN_FILES to a firmware file
1067 * which will be built into the kernel image. Then echo the name into the
1068 * "trigger_request_builtin" sysfs file of this module.
1069 */
1070 static ssize_t trigger_request_builtin_store(struct device *dev,
1071 struct device_attribute *attr,
1072 const char *buf, size_t count)
1073 {
1074 int rc = -ENOENT;
1075
1076 if (!test_fw_config->name) {
1077 pr_warn("unconfigured firmware settings\n");
1078 return rc;
1079 }
1080
1081 pr_info("loading builtin '%s'\n", test_fw_config->name);
1082
1083 mutex_lock(&test_fw_mutex);
1084
> 1085 if (firmware_request_builtin(&builtin_test_firmware, test_fw_config->name, NULL, 0)) {
1086 test_fw_config->is_builtin = true;
1087 /* This let's us diff against the firmware */
1088 pr_info("loaded: %zu\n", builtin_test_firmware.size);
1089 rc = count;
1090 goto out;
1091 }
1092
1093 pr_info("load of '%s' failed\n", test_fw_config->name);
1094
1095 out:
1096 mutex_unlock(&test_fw_mutex);
1097
1098 return rc;
1099 }
1100 static DEVICE_ATTR_WO(trigger_request_builtin);
1101
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32358 bytes --]
next reply other threads:[~2021-09-29 6:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-29 6:53 kernel test robot [this message]
2021-09-29 6:53 ` [mcgrof-next:20210915-firmware-builtin-v2 14/14] lib/test_firmware.c:1085:77: error: too many arguments to function call, expected 2, have 4 kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-09-16 1:44 kernel test robot
2021-09-16 1:44 ` 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=202109291433.ECTUlOs9-lkp@intel.com \
--to=lkp@intel.com \
--cc=bp@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mcgrof@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.