Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* kernel/bpf/syscall.c:1655:1: warning: unused label 'free'
@ 2026-05-12 14:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-12 14:25 UTC (permalink / raw)
  To: Leon Hwang; +Cc: llvm, oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Leon-Hwang/bpf-Extend-BPF-syscall-with-common-attributes-support/20260512-141718
head:   cf666930ba205510468d7879922c1237df7292c9
commit: 7cab8e74b4f11d29c3c1bc065fbdfc54b04ac102 bpf: Add syscall common attributes support for map_create
date:   8 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260512/202605121640.S7Uw0tDN-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260512/202605121640.S7Uw0tDN-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/202605121640.S7Uw0tDN-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/bpf/syscall.c:1655:1: warning: unused label 'free' [-Wunused-label]
    1655 | free:
         | ^~~~~
   1 warning generated.


vim +/free +1655 kernel/bpf/syscall.c

  1634	
  1635	static int map_create(union bpf_attr *attr, bpfptr_t uattr, struct bpf_common_attr *attr_common,
  1636			      bpfptr_t uattr_common, u32 size_common)
  1637	{
  1638		struct bpf_verifier_log *log;
  1639		struct bpf_log_attr attr_log;
  1640		int err, ret;
  1641	
  1642		log = bpf_log_attr_create_vlog(&attr_log, attr_common, uattr_common, size_common);
  1643		if (IS_ERR(log))
  1644			return PTR_ERR(log);
  1645	
  1646		err = __map_create(attr, uattr, log);
  1647	
  1648		ret = bpf_log_attr_finalize(&attr_log, log);
  1649		if (ret) {
  1650			if (err >= 0)
  1651				close_fd(err);
  1652			err = ret;
  1653		}
  1654	
> 1655	free:
  1656		kfree(log);
  1657		return err;
  1658	}
  1659	

--
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:[~2026-05-12 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 14:25 kernel/bpf/syscall.c:1655:1: warning: unused label 'free' 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