From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752398AbcBOIBT (ORCPT ); Mon, 15 Feb 2016 03:01:19 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:36903 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbcBOIBR (ORCPT ); Mon, 15 Feb 2016 03:01:17 -0500 Subject: Re: linux-next: build warning after merge of the net-next tree To: Stephen Rothwell , David Miller , netdev@vger.kernel.org References: <20160215130941.4ce2ae28@canb.auug.org.au> Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org From: Nikolay Borisov Message-ID: <56C185C9.4020407@kyup.com> Date: Mon, 15 Feb 2016 10:01:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20160215130941.4ce2ae28@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/15/2016 04:09 AM, Stephen Rothwell wrote: > Hi all, > > After merging the net-next tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > net/ipv4/igmp.c: In function 'igmp_group_added': > net/ipv4/igmp.c:1227:14: warning: unused variable 'net' [-Wunused-variable] > struct net *net = dev_net(in_dev->dev); > ^ > net/ipv4/igmp.c: In function 'ip_mc_inc_group': > net/ipv4/igmp.c:1319:14: warning: unused variable 'net' [-Wunused-variable] > struct net *net = dev_net(in_dev->dev); > ^ > net/ipv4/igmp.c: In function 'ip_mc_init_dev': > net/ipv4/igmp.c:1646:14: warning: unused variable 'net' [-Wunused-variable] > struct net *net = dev_net(in_dev->dev); > ^ > net/ipv4/igmp.c: In function 'ip_mc_up': > net/ipv4/igmp.c:1665:14: warning: unused variable 'net' [-Wunused-variable] > struct net *net = dev_net(in_dev->dev); > ^ > > Introduced by commits > > 87a8a2ae65b7 ("igmp: Namespaceify igmp_llm_reports sysctl knob") > 165094afcee7 ("igmp: Namespacify igmp_qrv sysctl knob") > > CONFIG_IP_MULTICAST is not set for this build. Right, I have forgotten to add the ifdef guards for the respective variables, will squeeze a patch in the next series on namespaceifying various sysctls. Thanks for testing!