* [km13park-linux-1:master 7/7] drivers/scan_at_field/scan_at_field.c:300:11: error: 'out' undeclared
@ 2021-05-01 0:51 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-01 0:51 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3814 bytes --]
tree: https://github.com/km13park/linux-1.git master
head: b84574828fa90183ca2d48edf9712fcd41ae8286
commit: b84574828fa90183ca2d48edf9712fcd41ae8286 [7/7] another fix3 for warning
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/km13park/linux-1/commit/b84574828fa90183ca2d48edf9712fcd41ae8286
git remote add km13park-linux-1 https://github.com/km13park/linux-1.git
git fetch --no-tags km13park-linux-1 master
git checkout b84574828fa90183ca2d48edf9712fcd41ae8286
# save the attached .config to linux build tree
make W=1 W=1 ARCH=x86_64
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 >>):
drivers/scan_at_field/scan_at_field.c: In function 'load_scan_binaries':
>> drivers/scan_at_field/scan_at_field.c:300:11: error: 'out' undeclared (first use in this function)
300 | return out;
| ^~~
drivers/scan_at_field/scan_at_field.c:300:11: note: each undeclared identifier is reported only once for each function it appears in
vim +/out +300 drivers/scan_at_field/scan_at_field.c
244
245 /*
246 * Load scan hash and data binaries. Scan hash copy and authentication must be run on
247 * the first cpu for each package.
248 * The first byte of scan hash holds the information to determine whether it is for scan
249 * at field or not.
250 */
251 int load_scan_binaries(void)
252 {
253 char name[20], hash_path[256], scan_path[256];
254 const struct firmware *hash_fw, *test_fw;
255 int cpu, ret, curr_pkg;
256 u64 current_blob_ptr;
257
258 package_authenticated = kzalloc(sizeof(bool) * NR_CPUS, GFP_KERNEL);
259 if (!package_authenticated)
260 return -EINVAL;
261 snprintf(name, sizeof(name), "%02x-%02x-%02x", boot_cpu_data.x86, boot_cpu_data.x86_model,
262 boot_cpu_data.x86_stepping);
263
264 /* scan hash and test files will be named as "ff-mm--ss.hash" and "ff-mm--ss.scan" */
265 snprintf(hash_path, sizeof(hash_path), "%s%s%s", saf_path, name, ".hash");
266 snprintf(scan_path, sizeof(scan_path), "%s%s%s", saf_path, name, ".scan");
267
268 current_blob_ptr = saf_params.hash_blob_ptr;
269
270 /* load the scan hash and authenticate per package */
271 for_each_online_cpu(cpu) {
272 curr_pkg = topology_physical_package_id(cpu);
273 if (package_authenticated[curr_pkg])
274 continue;
275 package_authenticated[curr_pkg] = 1;
276 sema_init(&sems[curr_pkg], max_cores);
277
278 hash_fw = load_scan_binary(hash_path, 1);
279 if (!hash_fw)
280 goto out;
281
282 if (!has_newer_binary_blob((char *)current_blob_ptr, (char *)hash_fw->data))
283 goto out;
284
285 saf_params.hash_blob_ptr = (u64)hash_fw->data;
286
287 if (*(hash_fw->data) == SCAN_PROGRAM) {
288 test_fw = load_scan_binary(scan_path, 0);
289 } else {
290 pr_err("wrong module type for scan test");
291 goto out;
292 }
293 if (!test_fw)
294 goto out;
295
296 saf_params.test_blob_ptr = (u64)test_fw->data;
297
298 ret = smp_call_function_single(cpu, (void *)copy_scan_hashes_authenticate, NULL, 1);
299 if (ret)
> 300 return out;
301 }
302 out:
303 kfree(package_authenticated);
304 release_firmware(hash_fw);
305 release_firmware(test_fw);
306
307 return 0;
308 }
309
---
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: 65052 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-01 0:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-01 0:51 [km13park-linux-1:master 7/7] drivers/scan_at_field/scan_at_field.c:300:11: error: 'out' undeclared kernel test robot
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.