[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202501122252.dqEPb1Wd-lkp@intel.com>
Date: Sun, 12 Jan 2025 22:49:26 +0800
From: kernel test robot <lkp@...el.com>
To: Jason Xing <kerneljasonxing@...il.com>, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
dsahern@...nel.org, willemdebruijn.kernel@...il.com,
willemb@...gle.com, ast@...nel.org, daniel@...earbox.net,
andrii@...nel.org, martin.lau@...ux.dev, eddyz87@...il.com,
song@...nel.org, yonghong.song@...ux.dev, john.fastabend@...il.com,
kpsingh@...nel.org, sdf@...ichev.me, haoluo@...gle.com,
jolsa@...nel.org, horms@...nel.org
Cc: oe-kbuild-all@...ts.linux.dev, bpf@...r.kernel.org,
netdev@...r.kernel.org, Jason Xing <kerneljasonxing@...il.com>
Subject: Re: [PATCH net-next v5 01/15] net-timestamp: add support for
bpf_setsockopt()
Hi Jason,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Jason-Xing/net-timestamp-add-support-for-bpf_setsockopt/20250112-194115
base: net-next/main
patch link: https://lore.kernel.org/r/20250112113748.73504-2-kerneljasonxing%40gmail.com
patch subject: [PATCH net-next v5 01/15] net-timestamp: add support for bpf_setsockopt()
config: i386-buildonly-randconfig-005-20250112 (https://download.01.org/0day-ci/archive/20250112/202501122252.dqEPb1Wd-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250112/202501122252.dqEPb1Wd-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501122252.dqEPb1Wd-lkp@intel.com/
All warnings (new ones prefixed by >>):
net/core/filter.c: In function 'sk_bpf_set_cb_flags':
net/core/filter.c:5237:11: error: 'struct sock' has no member named 'sk_bpf_cb_flags'
5237 | sk->sk_bpf_cb_flags = sk_bpf_cb_flags;
| ^~
net/core/filter.c: At top level:
>> net/core/filter.c:5225:12: warning: 'sk_bpf_set_cb_flags' defined but not used [-Wunused-function]
5225 | static int sk_bpf_set_cb_flags(struct sock *sk, char *optval, bool getopt)
| ^~~~~~~~~~~~~~~~~~~
vim +/sk_bpf_set_cb_flags +5225 net/core/filter.c
5224
> 5225 static int sk_bpf_set_cb_flags(struct sock *sk, char *optval, bool getopt)
5226 {
5227 u32 sk_bpf_cb_flags;
5228
5229 if (getopt)
5230 return -EINVAL;
5231
5232 sk_bpf_cb_flags = *(u32 *)optval;
5233
5234 if (sk_bpf_cb_flags & ~SK_BPF_CB_MASK)
5235 return -EINVAL;
5236
> 5237 sk->sk_bpf_cb_flags = sk_bpf_cb_flags;
5238
5239 return 0;
5240 }
5241
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists