[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201610300909.5CNLaO1L%fengguang.wu@intel.com>
Date: Sun, 30 Oct 2016 09:16:12 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: pravin shelar <pshelar@....org>
Cc: kbuild-all@...org, netdev@...r.kernel.org
Subject: [net:master 113/114] drivers/net/vxlan.c:947:21: warning: unused
variable 'sock6'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
head: fceb9c3e38252992bbf1a3028cc2f7b871211533
commit: c6fcc4fc5f8b592600c7409e769ab68da0fb1eca [113/114] vxlan: avoid using stale vxlan socket.
config: i386-randconfig-x012-201644 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout c6fcc4fc5f8b592600c7409e769ab68da0fb1eca
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/net/vxlan.c: In function 'vxlan_group_used':
>> drivers/net/vxlan.c:947:21: warning: unused variable 'sock6' [-Wunused-variable]
struct vxlan_sock *sock6 = NULL;
^~~~~
vim +/sock6 +947 drivers/net/vxlan.c
931 NUD_REACHABLE,
932 NLM_F_EXCL|NLM_F_CREATE,
933 vxlan->cfg.dst_port,
934 vxlan->default_dst.remote_vni,
935 0, NTF_SELF);
936 spin_unlock(&vxlan->hash_lock);
937 }
938
939 return false;
940 }
941
942 /* See if multicast group is already in use by other ID */
943 static bool vxlan_group_used(struct vxlan_net *vn, struct vxlan_dev *dev)
944 {
945 struct vxlan_dev *vxlan;
946 struct vxlan_sock *sock4;
> 947 struct vxlan_sock *sock6 = NULL;
948 unsigned short family = dev->default_dst.remote_ip.sa.sa_family;
949
950 sock4 = rtnl_dereference(dev->vn4_sock);
951
952 /* The vxlan_sock is only used by dev, leaving group has
953 * no effect on other vxlan devices.
954 */
955 if (family == AF_INET && sock4 && atomic_read(&sock4->refcnt) == 1)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (28871 bytes)
Powered by blists - more mailing lists