[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202112010929.w3wcdBWp-lkp@intel.com>
Date: Wed, 1 Dec 2021 09:24:22 +0800
From: kernel test robot <lkp@...el.com>
To: Paul Blakey <paulb@...dia.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Saeed Mahameed <saeedm@...dia.com>,
Oz Shlomo <ozsh@...dia.com>
Subject: [saeed:net-next 612/668] net/openvswitch/flow.c:915:19: warning:
variable 'zone' is uninitialized when used here
tree: https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git net-next
head: 960dff4cc0bfc59cc7a168c8f1e1f58c93f6a10d
commit: dff3da2f663fdac40a3d72b85ee3b5f89e88501f [612/668] net: openvswitch: Fix matching zone id for invalid conns arriving from tc
config: x86_64-randconfig-r022-20211130 (https://download.01.org/0day-ci/archive/20211201/202112010929.w3wcdBWp-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 25eb7fa01d7ebbe67648ea03841cda55b4239ab2)
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=dff3da2f663fdac40a3d72b85ee3b5f89e88501f
git remote add saeed https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git
git fetch --no-tags saeed net-next
git checkout dff3da2f663fdac40a3d72b85ee3b5f89e88501f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash net/openvswitch/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> net/openvswitch/flow.c:915:19: warning: variable 'zone' is uninitialized when used here [-Wuninitialized]
key->ct_zone = zone;
^~~~
net/openvswitch/flow.c:864:10: note: initialize the variable 'zone' to silence this warning
u16 zone;
^
= 0
1 warning generated.
vim +/zone +915 net/openvswitch/flow.c
910
911 err = key_extract(skb, key);
912 if (!err) {
913 ovs_ct_fill_key(skb, key, post_ct); /* Must be after key_extract(). */
914 if (post_ct && !skb_get_nfct(skb))
> 915 key->ct_zone = zone;
916 }
917 return err;
918 }
919
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists