* [brauner-github:work.fd.prepare.scoped 36/51] arch/powerpc/platforms/pseries/papr-hvpipe.c:512:8: error: use of undeclared label 'free_buf'
@ 2025-11-23 2:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-23 2:03 UTC (permalink / raw)
To: Christian Brauner; +Cc: llvm, oe-kbuild-all, Christian Brauner
tree: https://github.com/brauner/linux.git work.fd.prepare.scoped
head: 09ba3707485de081133d97c9bdc7fa364d318f46
commit: 32d597046f4f06db9377a81c80cf4cec01f4c3c4 [36/51] papr-hvpipe: convert papr_hvpipe_dev_create_handle() to FD_PREPARE()
config: powerpc64-randconfig-002-20251123 (https://download.01.org/0day-ci/archive/20251123/202511231206.7og5sgu2-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9e9fe08b16ea2c4d9867fb4974edf2a3776d6ece)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251123/202511231206.7og5sgu2-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/202511231206.7og5sgu2-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/platforms/pseries/papr-hvpipe.c:512:8: error: use of undeclared label 'free_buf'
512 | goto free_buf;
| ^
1 error generated.
vim +/free_buf +512 arch/powerpc/platforms/pseries/papr-hvpipe.c
814ef095f12c9f Haren Myneni 2025-09-09 479
814ef095f12c9f Haren Myneni 2025-09-09 480 static int papr_hvpipe_dev_create_handle(u32 srcID)
814ef095f12c9f Haren Myneni 2025-09-09 481 {
32d597046f4f06 Christian Brauner 2025-11-20 482 struct hvpipe_source_info *src_info __free(kfree) = NULL;
814ef095f12c9f Haren Myneni 2025-09-09 483 long err;
814ef095f12c9f Haren Myneni 2025-09-09 484
814ef095f12c9f Haren Myneni 2025-09-09 485 spin_lock(&hvpipe_src_list_lock);
814ef095f12c9f Haren Myneni 2025-09-09 486 /*
814ef095f12c9f Haren Myneni 2025-09-09 487 * Do not allow more than one process communicates with
814ef095f12c9f Haren Myneni 2025-09-09 488 * each source.
814ef095f12c9f Haren Myneni 2025-09-09 489 */
814ef095f12c9f Haren Myneni 2025-09-09 490 src_info = hvpipe_find_source(srcID);
814ef095f12c9f Haren Myneni 2025-09-09 491 if (src_info) {
814ef095f12c9f Haren Myneni 2025-09-09 492 spin_unlock(&hvpipe_src_list_lock);
814ef095f12c9f Haren Myneni 2025-09-09 493 pr_err("pid(%d) is already using the source(%d)\n",
814ef095f12c9f Haren Myneni 2025-09-09 494 src_info->tsk->pid, srcID);
814ef095f12c9f Haren Myneni 2025-09-09 495 return -EALREADY;
814ef095f12c9f Haren Myneni 2025-09-09 496 }
814ef095f12c9f Haren Myneni 2025-09-09 497 spin_unlock(&hvpipe_src_list_lock);
814ef095f12c9f Haren Myneni 2025-09-09 498
814ef095f12c9f Haren Myneni 2025-09-09 499 src_info = kzalloc(sizeof(*src_info), GFP_KERNEL_ACCOUNT);
814ef095f12c9f Haren Myneni 2025-09-09 500 if (!src_info)
814ef095f12c9f Haren Myneni 2025-09-09 501 return -ENOMEM;
814ef095f12c9f Haren Myneni 2025-09-09 502
814ef095f12c9f Haren Myneni 2025-09-09 503 src_info->srcID = srcID;
814ef095f12c9f Haren Myneni 2025-09-09 504 src_info->tsk = current;
814ef095f12c9f Haren Myneni 2025-09-09 505 init_waitqueue_head(&src_info->recv_wqh);
814ef095f12c9f Haren Myneni 2025-09-09 506
32d597046f4f06 Christian Brauner 2025-11-20 507 FD_PREPARE(fdf, O_RDONLY | O_CLOEXEC,
32d597046f4f06 Christian Brauner 2025-11-20 508 anon_inode_getfile("[papr-hvpipe]", &papr_hvpipe_handle_ops,
32d597046f4f06 Christian Brauner 2025-11-20 509 (void *)src_info, O_RDWR));
32d597046f4f06 Christian Brauner 2025-11-20 510 err = ACQUIRE_ERR(fd_prepare, &fdf);
32d597046f4f06 Christian Brauner 2025-11-20 511 if (err)
814ef095f12c9f Haren Myneni 2025-09-09 @512 goto free_buf;
814ef095f12c9f Haren Myneni 2025-09-09 513
32d597046f4f06 Christian Brauner 2025-11-20 514 retain_and_null_ptr(src_info);
814ef095f12c9f Haren Myneni 2025-09-09 515 spin_lock(&hvpipe_src_list_lock);
814ef095f12c9f Haren Myneni 2025-09-09 516 /*
814ef095f12c9f Haren Myneni 2025-09-09 517 * If two processes are executing ioctl() for the same
814ef095f12c9f Haren Myneni 2025-09-09 518 * source ID concurrently, prevent the second process to
814ef095f12c9f Haren Myneni 2025-09-09 519 * acquire FD.
814ef095f12c9f Haren Myneni 2025-09-09 520 */
814ef095f12c9f Haren Myneni 2025-09-09 521 if (hvpipe_find_source(srcID)) {
814ef095f12c9f Haren Myneni 2025-09-09 522 spin_unlock(&hvpipe_src_list_lock);
32d597046f4f06 Christian Brauner 2025-11-20 523 return -EALREADY;
814ef095f12c9f Haren Myneni 2025-09-09 524 }
814ef095f12c9f Haren Myneni 2025-09-09 525 list_add(&src_info->list, &hvpipe_src_list);
814ef095f12c9f Haren Myneni 2025-09-09 526 spin_unlock(&hvpipe_src_list_lock);
32d597046f4f06 Christian Brauner 2025-11-20 527 return fd_publish(fdf);
814ef095f12c9f Haren Myneni 2025-09-09 528 }
814ef095f12c9f Haren Myneni 2025-09-09 529
:::::: The code at line 512 was first introduced by commit
:::::: 814ef095f12c9fa142043ee689500f3a41bb6dab powerpc/pseries: Add papr-hvpipe char driver for HVPIPE interfaces
:::::: TO: Haren Myneni <haren@linux.ibm.com>
:::::: CC: Madhavan Srinivasan <maddy@linux.ibm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-11-23 2:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-23 2:03 [brauner-github:work.fd.prepare.scoped 36/51] arch/powerpc/platforms/pseries/papr-hvpipe.c:512:8: error: use of undeclared label 'free_buf' kernel test robot
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).