[saeed:mlx5-queue 9/13] net/core/filter.c:7426:1: warning: unused label 'err_out'

From: kernel test robot
Date: Sun Oct 17 2021 - 06:52:53 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git mlx5-queue
head: 46fb2d6328c851496c3bcc5e50a1e58786c83acb
commit: 1a0dafe601fbde2b5de8bfd64bfbdd0cd173d229 [9/13] bpf: Add a helper to issue timestamp cookies in XDP
config: i386-randconfig-a003-20211017 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 746dd6a700931988dd9021d3d04718f1929885a5)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git/commit/?id=1a0dafe601fbde2b5de8bfd64bfbdd0cd173d229
git remote add saeed https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git
git fetch --no-tags saeed mlx5-queue
git checkout 1a0dafe601fbde2b5de8bfd64bfbdd0cd173d229
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> net/core/filter.c:7426:1: warning: unused label 'err_out' [-Wunused-label]
err_out:
^~~~~~~~
1 warning generated.


vim +/err_out +7426 net/core/filter.c

7405
7406 BPF_CALL_4(bpf_tcp_raw_gen_tscookie, struct tcphdr *, th, u32, th_len,
7407 __be32 *, tsopt, u32, tsopt_len)
7408 {
7409 int err;
7410
7411 #ifdef CONFIG_SYN_COOKIES
7412 if (tsopt_len != sizeof(u64)) {
7413 err = -EINVAL;
7414 goto err_out;
7415 }
7416
7417 if (!cookie_init_timestamp_raw(th, &tsopt[0], &tsopt[1])) {
7418 err = -ENOENT;
7419 goto err_out;
7420 }
7421
7422 return 0;
7423 #else
7424 err = -EOPNOTSUPP;
7425 #endif
> 7426 err_out:
7427 memset(tsopt, 0, tsopt_len);
7428 return err;
7429 }
7430

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip