Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4854430yba; Tue, 30 Apr 2019 05:34:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU01WEswkrfG0hij4NFSSpVJQnfKcqZvNlwMvis5TWb/04DQt3tHUqr8AS7wV5/d+NdrLc X-Received: by 2002:aa7:818a:: with SMTP id g10mr50093849pfi.178.1556627650553; Tue, 30 Apr 2019 05:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556627650; cv=none; d=google.com; s=arc-20160816; b=Sq9Y4snHFLJ2tw1aqhQz5tUsvpyXB33t/JBAoUfwwM24ICNkRWkLVSSsyiq7v6xs06 x8xI4cZE1PyE+IehxYMsNa+jrPIpFnZ1mHKEsY2FQJAWvOG0eVsj0yYShdFW+7blqdy9 ux8wLcsYLh6ZWFnQOy9q5lXitNjK+XAFVrRobslm7gwNHj/HApGKUh198xyxDIL2Il5I kt9GHfdIxrfNn5JD6DMTx4pem8Uhr29sUpMpaGmkWKFJa04SpTUARaUgOF30LmCHhhn4 p2Eh1IotCjn0jwVp1cPS9eNyqy8gi4yFhgqjD4pTqnl4Hdaga7Sv6lRMT8cZlVN1Ydzr k0sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5HO5K6rcjz+mXMPw5BAFdnpXzxcecp1/7KooLyS8kHE=; b=iEdt3fxqxkDZdIJ6EObeo+3xZ8RuvpKoq5GnwtEtrB6aVz5eJVNCH79PefL+EOMKEO fwkHSqhWhD5vrPDcv9t3kobFsClj96BWudG2IEM17MV1RbOMLAhg/dHcb8KQwEaYFRdN 9LyeO4f6qicYcusTU/OUY04jv+QuEVQjh/RCwRc+1P009xsgHHD8aDXyPdLZUoKerG/y LQNK6WPqA+nDmsA9T61Et0L0Sf3tOZRpdtc8DrTsLqHmIfaOjLka4kGVbVq+oCFuOvt/ WGZnohAv/XBnhLG2AtbOsjP8KGiy0lb9Jw5nEhAOrFPYF++UgBmf/+zGNVQ5ReWfFVFZ MyTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si1054612pgj.413.2019.04.30.05.33.53; Tue, 30 Apr 2019 05:34:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727829AbfD3MbI (ORCPT + 99 others); Tue, 30 Apr 2019 08:31:08 -0400 Received: from mail.us.es ([193.147.175.20]:49734 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbfD3MbH (ORCPT ); Tue, 30 Apr 2019 08:31:07 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id AE7E811FF80 for ; Tue, 30 Apr 2019 14:31:05 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 99CDEDA713 for ; Tue, 30 Apr 2019 14:31:05 +0200 (CEST) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id 990F5DA712; Tue, 30 Apr 2019 14:31:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on antivirus1-rhel7.int X-Spam-Level: X-Spam-Status: No, score=-108.2 required=7.5 tests=ALL_TRUSTED,BAYES_50, SMTPAUTH_US2,USER_IN_WHITELIST autolearn=disabled version=3.4.1 Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 8D924DA707; Tue, 30 Apr 2019 14:31:03 +0200 (CEST) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Tue, 30 Apr 2019 14:31:03 +0200 (CEST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from us.es (129.166.216.87.static.jazztel.es [87.216.166.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 1984lsi) by entrada.int (Postfix) with ESMTPSA id 546204265A31; Tue, 30 Apr 2019 14:31:03 +0200 (CEST) Date: Tue, 30 Apr 2019 14:31:02 +0200 X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: Arnd Bergmann Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] netfilter: nat: avoid unused-variable warning Message-ID: <20190430123102.xia5kwlkqsvinqvi@salvia> References: <20190325135336.2107801-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190325135336.2107801-1-arnd@arndb.de> User-Agent: NeoMutt/20170113 (1.7.2) X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 02:53:05PM +0100, Arnd Bergmann wrote: > masq_refcnt6 was added at the start of the file, but it is > only used in the option IPv6 section of the file, causing > a harmless compiler warning if IPv6 is disabled: > > net/netfilter/nf_nat_masquerade.c:15:21: error: 'masq_refcnt6' defined but not used [-Werror=unused-variable] > static unsigned int masq_refcnt6 __read_mostly; > > Move the variable next to the user to avoid that warning. > > Fixes: 46f7487e161b ("netfilter: nat: don't register device notifier twice") > Signed-off-by: Arnd Bergmann > ---- > This is an older patch stack, for some reason I seem to have never > sent it, and I can't find any indication of anyone else sending > a similar fix, so sending this out now. > > If it's already fixed upstream, please ignore. Yes, Florian fixed this in nf-next.