Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Leon Hwang <leon.hwang@linux.dev>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	0day robot <lkp@intel.com>
Subject: kernel/bpf/syscall.c:1655:1: warning: unused label 'free'
Date: Tue, 12 May 2026 16:25:56 +0200	[thread overview]
Message-ID: <202605121640.S7Uw0tDN-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-05-12 14:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202605121640.S7Uw0tDN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=leon.hwang@linux.dev \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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