CC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: Juhee Kang <[email protected]> TO: [email protected] TO: [email protected] TO: [email protected] TO: [email protected]
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-hlist_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 :::::: branch date: 6 hours ago :::::: commit date: 6 hours ago config: nios2-randconfig-m031-20220131 (https://download.01.org/0day-ci/archive/20220131/[email protected]/config) compiler: nios2-linux-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> New smatch warnings: net/hsr/hsr_framereg.c:603 hsr_get_next_node() warn: ignoring unreachable code. Old smatch warnings: arch/nios2/include/asm/thread_info.h:71 current_thread_info() error: uninitialized symbol 'sp'. vim +603 net/hsr/hsr_framereg.c f421436a591d34 Arvid Brodin 2013-10-30 584 70ebe4a47185db Arvid Brodin 2014-07-04 585 void *hsr_get_next_node(struct hsr_priv *hsr, void *_pos, f421436a591d34 Arvid Brodin 2013-10-30 586 unsigned char addr[ETH_ALEN]) f421436a591d34 Arvid Brodin 2013-10-30 587 { 70ebe4a47185db Arvid Brodin 2014-07-04 588 struct hsr_node *node; 4610359df4a1f5 Juhee Kang 2022-01-31 589 u32 hash; 4610359df4a1f5 Juhee Kang 2022-01-31 590 4610359df4a1f5 Juhee Kang 2022-01-31 591 hash = hsr_mac_hash(hsr, addr); f421436a591d34 Arvid Brodin 2013-10-30 592 f421436a591d34 Arvid Brodin 2013-10-30 593 if (!_pos) { 4610359df4a1f5 Juhee Kang 2022-01-31 594 node = hlist_empty(&hsr->node_db[hash]) ? NULL : 4610359df4a1f5 Juhee Kang 2022-01-31 595 hlist_entry(hlist_first_rcu(&hsr->node_db[hash]), 70ebe4a47185db Arvid Brodin 2014-07-04 596 struct hsr_node, mac_list); f421436a591d34 Arvid Brodin 2013-10-30 597 if (node) b1b4aa91408028 Murali Karicheri 2019-04-05 598 ether_addr_copy(addr, node->macaddress_A); f421436a591d34 Arvid Brodin 2013-10-30 599 return node; f421436a591d34 Arvid Brodin 2013-10-30 600 } f421436a591d34 Arvid Brodin 2013-10-30 601 f421436a591d34 Arvid Brodin 2013-10-30 602 node = _pos; 4610359df4a1f5 Juhee Kang 2022-01-31 @603 hlist_for_each_entry_continue_rcu(node, mac_list) { b1b4aa91408028 Murali Karicheri 2019-04-05 604 ether_addr_copy(addr, node->macaddress_A); f421436a591d34 Arvid Brodin 2013-10-30 605 return node; f421436a591d34 Arvid Brodin 2013-10-30 606 } f421436a591d34 Arvid Brodin 2013-10-30 607 f421436a591d34 Arvid Brodin 2013-10-30 608 return NULL; f421436a591d34 Arvid Brodin 2013-10-30 609 } f421436a591d34 Arvid Brodin 2013-10-30 610 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
