From: kernel test robot <lkp@intel.com>
To: Sun Shouxin <sunshouxin@chinatelecom.cn>,
j.vosburgh@gmail.com, vfalico@gmail.com, andy@greyhouse.net,
davem@davemloft.net, kuba@kernel.org, yoshfuji@linux-ipv6.org,
dsahern@kernel.org
Cc: kbuild-all@lists.01.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, huyd12@chinatelecom.cn,
sunshouxin@chinatelecom.cn
Subject: Re: [PATCH 1/3] net:ipv6:Add ndisc_bond_send_na to support sending na by slave directly
Date: Fri, 11 Mar 2022 22:44:40 +0800 [thread overview]
Message-ID: <202203112242.Gjf5MZjs-lkp@intel.com> (raw)
In-Reply-To: <20220311024958.7458-2-sunshouxin@chinatelecom.cn>
Hi Sun,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 2a9eef868a997ec575c2e6ae885e91313f635d59]
url: https://github.com/0day-ci/linux/commits/Sun-Shouxin/net-bonding-Add-support-for-IPV6-RLB-to-balance-alb-mode/20220311-110221
base: 2a9eef868a997ec575c2e6ae885e91313f635d59
config: mips-bmips_be_defconfig (https://download.01.org/0day-ci/archive/20220311/202203112242.Gjf5MZjs-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 11.2.0
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://github.com/0day-ci/linux/commit/9bd4966a283f758f100bd97d09967edc92903c76
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sun-Shouxin/net-bonding-Add-support-for-IPV6-RLB-to-balance-alb-mode/20220311-110221
git checkout 9bd4966a283f758f100bd97d09967edc92903c76
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash net/ipv6/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
net/ipv6/ndisc.c: In function 'ndisc_bond_send_na':
>> net/ipv6/ndisc.c:587:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
587 | int ret;
| ^~~
vim +/ret +587 net/ipv6/ndisc.c
574
575 void ndisc_bond_send_na(struct net_device *dev, const struct in6_addr *daddr,
576 const struct in6_addr *solicited_addr,
577 bool router, bool solicited, bool override,
578 bool inc_opt, unsigned short vlan_id,
579 const void *mac_dst, const void *mac_src)
580 {
581 struct sk_buff *skb;
582 const struct in6_addr *src_addr;
583 struct nd_msg *msg;
584 struct net *net = dev_net(dev);
585 struct sock *sk = net->ipv6.ndisc_sk;
586 int optlen = 0;
> 587 int ret;
588
589 src_addr = solicited_addr;
590 if (!dev->addr_len)
591 inc_opt = false;
592 if (inc_opt)
593 optlen += ndisc_opt_addr_space(dev,
594 NDISC_NEIGHBOUR_ADVERTISEMENT);
595
596 skb = ndisc_alloc_skb(dev, sizeof(*msg) + optlen);
597 if (!skb)
598 return;
599
600 msg = skb_put(skb, sizeof(*msg));
601 *msg = (struct nd_msg) {
602 .icmph = {
603 .icmp6_type = NDISC_NEIGHBOUR_ADVERTISEMENT,
604 .icmp6_router = router,
605 .icmp6_solicited = solicited,
606 .icmp6_override = override,
607 },
608 .target = *solicited_addr,
609 };
610
611 if (inc_opt)
612 ndisc_fill_addr_option(skb, ND_OPT_TARGET_LL_ADDR,
613 dev->dev_addr,
614 NDISC_NEIGHBOUR_ADVERTISEMENT);
615
616 if (vlan_id)
617 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q),
618 vlan_id);
619
620 msg->icmph.icmp6_cksum = csum_ipv6_magic(src_addr, daddr, skb->len,
621 IPPROTO_ICMPV6,
622 csum_partial(&msg->icmph,
623 skb->len, 0));
624
625 ip6_nd_hdr(skb, src_addr, daddr, inet6_sk(sk)->hop_limit, skb->len);
626
627 skb->protocol = htons(ETH_P_IPV6);
628 skb->dev = dev;
629 if (dev_hard_header(skb, dev, ETH_P_IPV6, mac_dst, mac_src, skb->len) < 0)
630 return;
631
632 ret = dev_queue_xmit(skb);
633 }
634 EXPORT_SYMBOL(ndisc_bond_send_na);
635
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next prev parent reply other threads:[~2022-03-11 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-11 2:49 [PATCH 0/3] net:bonding:Add support for IPV6 RLB to balance-alb mode Sun Shouxin
2022-03-11 2:49 ` [PATCH 1/3] net:ipv6:Add ndisc_bond_send_na to support sending na by slave directly Sun Shouxin
2022-03-11 14:44 ` kernel test robot [this message]
2022-03-11 16:58 ` David Ahern
2022-03-11 2:49 ` [PATCH 2/3] net:ipv6:Export inet6_ifa_finish_destroy and ipv6_get_ifaddr Sun Shouxin
2022-03-11 2:49 ` [PATCH 3/3] net:bonding:Add support for IPV6 RLB to balance-alb mode Sun Shouxin
2022-03-11 16:47 ` kernel test robot
2022-03-11 16:58 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202203112242.Gjf5MZjs-lkp@intel.com \
--to=lkp@intel.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=huyd12@chinatelecom.cn \
--cc=j.vosburgh@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sunshouxin@chinatelecom.cn \
--cc=vfalico@gmail.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).