Content-Type: multipart/mixed; boundary="===============0946307928678834303==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH net-next] net: hsr: use hlist_head instead of list_head for mac addresses Date: Mon, 31 Jan 2022 19:46:40 +0800 Message-ID: <202201311904.frzcODO4-lkp@intel.com> In-Reply-To: <20220131090307.2654-1-claudiajkang@gmail.com> List-Id: --===============0946307928678834303== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Juhee, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Juhee-Kang/net-hsr-use-hli= st_head-instead-of-list_head-for-mac-addresses/20220131-170414 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git = ff58831fa02deb42fd731f830d8d9ec545573c7c config: nios2-randconfig-s031-20220131 (https://download.01.org/0day-ci/arc= hive/20220131/202201311904.frzcODO4-lkp(a)intel.com/config) compiler: nios2-linux-gcc (GCC) 11.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/0day-ci/linux/commit/4610359df4a1f524fe7c2b857= 02a561ebf53fee8 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Juhee-Kang/net-hsr-use-hlist_head-= instead-of-list_head-for-mac-addresses/20220131-170414 git checkout 4610359df4a1f524fe7c2b85702a561ebf53fee8 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH=3Dn= ios2 SHELL=3D/bin/bash net/hsr/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> net/hsr/hsr_framereg.c:52:17: sparse: sparse: cast removes address space= '__rcu' of expression net/hsr/hsr_framereg.c:101:33: sparse: sparse: cast removes address spac= e '__rcu' of expression net/hsr/hsr_framereg.c:122:25: sparse: sparse: cast removes address spac= e '__rcu' of expression net/hsr/hsr_framereg.c:595:25: sparse: sparse: cast removes address spac= e '__rcu' of expression vim +/__rcu +52 net/hsr/hsr_framereg.c 46 = 47 bool hsr_addr_is_self(struct hsr_priv *hsr, unsigned char *addr) 48 { 49 struct hsr_node *node; 50 = 51 node =3D hlist_empty(&hsr->self_node_db) ? NULL : > 52 hlist_entry(hlist_first_rcu(&hsr->self_node_db), 53 struct hsr_node, mac_list); 54 if (!node) { 55 WARN_ONCE(1, "HSR: No self node\n"); 56 return false; 57 } 58 = 59 if (ether_addr_equal(addr, node->macaddress_A)) 60 return true; 61 if (ether_addr_equal(addr, node->macaddress_B)) 62 return true; 63 = 64 return false; 65 } 66 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0946307928678834303==--