[saeed:testing/mlx5-queue-next 597/628] net/openvswitch/flow.c:915:19: warning: variable 'zone' is uninitialized when used here
From: kernel test robot
Date: Tue Nov 30 2021 - 17:24:38 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git testing/mlx5-queue-next
head: 28c32f565d2be3795dfe2acd0c00b7dcda32645a
commit: 0685a5cf41c932ac2392ebb9145cd002c5b687d0 [597/628] 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/202112010637.b4mONzF9-lkp@xxxxxxxxx/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=0685a5cf41c932ac2392ebb9145cd002c5b687d0
git remote add saeed https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git
git fetch --no-tags saeed testing/mlx5-queue-next
git checkout 0685a5cf41c932ac2392ebb9145cd002c5b687d0
# 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@xxxxxxxxx>
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@xxxxxxxxxxxx