From: kbuild test robot <lkp@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: kbuild-all@01.org, davem@davemloft.net, netdev@vger.kernel.org,
Stephen Hemminger <sthemmin@microsoft.com>
Subject: Re: [PATCH net 3/3] netvsc: fix RCU warning from set_multicast
Date: Tue, 6 Jun 2017 13:17:16 +0800 [thread overview]
Message-ID: <201706061340.6Vd23Fms%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170605211010.9571-4-sthemmin@microsoft.com>
[-- Attachment #1: Type: text/plain, Size: 2693 bytes --]
Hi Stephen,
[auto build test ERROR on net/master]
url: https://github.com/0day-ci/linux/commits/Stephen-Hemminger/netvsc-bug-fixes/20170606-120730
config: x86_64-allyesdebian (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
drivers/net//hyperv/netvsc_drv.c: In function 'do_set_multicast':
drivers/net//hyperv/netvsc_drv.c:70:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (nvdev)
^~
drivers/net//hyperv/netvsc_drv.c:73:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (rdev) {
^~
drivers/net//hyperv/netvsc_drv.c: At top level:
>> drivers/net//hyperv/netvsc_drv.c:84:2: warning: data definition has no type or storage class
rtnl_unlock();
^~~~~~~~~~~
>> drivers/net//hyperv/netvsc_drv.c:84:2: error: type defaults to 'int' in declaration of 'rtnl_unlock' [-Werror=implicit-int]
>> drivers/net//hyperv/netvsc_drv.c:84:2: error: function declaration isn't a prototype [-Werror=strict-prototypes]
>> drivers/net//hyperv/netvsc_drv.c:84:2: error: conflicting types for 'rtnl_unlock'
In file included from include/linux/inetdevice.h:13:0,
from drivers/net//hyperv/netvsc_drv.c:30:
include/linux/rtnetlink.h:28:13: note: previous declaration of 'rtnl_unlock' was here
extern void rtnl_unlock(void);
^~~~~~~~~~~
>> drivers/net//hyperv/netvsc_drv.c:85:1: error: expected identifier or '(' before '}' token
}
^
cc1: some warnings being treated as errors
vim +84 drivers/net//hyperv/netvsc_drv.c
64 struct net_device *ndev = hv_get_drvdata(device_obj);
65 struct netvsc_device *nvdev;
66 struct rndis_device *rdev;
67
68 rtnl_lock();
69 nvdev = rtnl_dereference(ndevctx->nvdev);
> 70 if (nvdev)
71 rdev = nvdev->extension;
72
> 73 if (rdev) {
74 if (ndev->flags & IFF_PROMISC)
75 rndis_filter_set_packet_filter(rdev,
76 NDIS_PACKET_TYPE_PROMISCUOUS);
77 else
78 rndis_filter_set_packet_filter(rdev,
79 NDIS_PACKET_TYPE_BROADCAST |
80 NDIS_PACKET_TYPE_ALL_MULTICAST |
81 NDIS_PACKET_TYPE_DIRECTED);
82 }
83 }
> 84 rtnl_unlock();
> 85 }
86
87 static void netvsc_set_multicast_list(struct net_device *net)
88 {
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38856 bytes --]
next prev parent reply other threads:[~2017-06-06 5:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-05 21:10 [PATCH net 0/3] netvsc bug fixes Stephen Hemminger
2017-06-05 21:10 ` [PATCH net 1/3] netvsc: fix rcu dereference warning from ethtool Stephen Hemminger
2017-06-05 21:10 ` [PATCH net 2/3] netvsc: fix net poll mode Stephen Hemminger
2017-06-05 21:10 ` [PATCH net 3/3] netvsc: fix RCU warning from set_multicast Stephen Hemminger
2017-06-06 5:17 ` kbuild test robot [this message]
2017-06-06 5:24 ` kbuild test robot
2017-06-06 19:55 ` David Miller
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=201706061340.6Vd23Fms%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=davem@davemloft.net \
--cc=kbuild-all@01.org \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=sthemmin@microsoft.com \
/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).