Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6674580ybh; Thu, 8 Aug 2019 03:57:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeNdoSEYYKNhfa3GndIIusrCug0755Vokd70G+k4MyfDejY5PnlgpPc04PCiSv0IjTgfW3 X-Received: by 2002:aa7:8619:: with SMTP id p25mr14665378pfn.220.1565261873487; Thu, 08 Aug 2019 03:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565261873; cv=none; d=google.com; s=arc-20160816; b=ZEYZNZYmxtJKqUTsz8MgC2qbbBe0zU05zZeuKUmI/zWLxH1aqNnAl1b5bIPmrUmGGL q0XTU/TXMn232hiRqlcfwNMvXtxp21Ea+4jC+EUwkKQWjJYCRD1ZipzCX/ScuZDqj6mj aDeLo95kFRehjZ1V6fTPj95vJ+l1Bn1lz5+3dsECpl+C+3dwtrelm4j4AP1VwYjnCT6D 9J3JncUZfcoFBOFcReUdhXLaGWzZDzPL1T77sGtJO0GCyYGLjquH/fWEmwFfyqimkdQa gfzCGv/cwbKdbZQR6j3hAT0wAajko9KPkI600DcuEnXocYJQp0jnL2m0/3Y5m1YTz0D4 cbPA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=c4FWc2ha7Wa/gRL+RCaU0UlXc0GF9fKOSEimSRM1FkE=; b=WqwbwilmziCq9p4fiNPYHY/5wxK0H4/ze+x/J4urbGdiK8cr8hFfgKjdA4fgdIB8PR Dwc32H7bZ9qNXITr/QG/PreNauURdRI8Xo19quxvffD3YoYqwyVVEOe5nyd5GUxlGut8 hjGSi3pKtsXUjoiQdc5MewXUZrkAdUWqC//8EN3a+GhR1tGKxr0xcXYt5rP8J2r7eive 8J8yUPaO7EORvGFaz/TMnkiYisoKrWgiL5PnDE7IWF7VeKMHoNYsOXRWBp9496K6czev mLuJqfM2KtfhwcKyXxREzrWZ/PO2pbfkldxZ7mORDmhXjKwnfbAGHiHuC9p1Fn00X9wy xD4w== 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 65si57045653pff.220.2019.08.08.03.57.38; Thu, 08 Aug 2019 03:57:53 -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 S1731920AbfHHKde (ORCPT + 99 others); Thu, 8 Aug 2019 06:33:34 -0400 Received: from Chamillionaire.breakpoint.cc ([193.142.43.52]:58966 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728289AbfHHKde (ORCPT ); Thu, 8 Aug 2019 06:33:34 -0400 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.89) (envelope-from ) id 1hvfje-0008Ep-UW; Thu, 08 Aug 2019 12:33:30 +0200 Date: Thu, 8 Aug 2019 12:33:30 +0200 From: Florian Westphal To: Valdis =?utf-8?Q?Kl=C4=93tnieks?= Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/netfilter/nf_nat_proto.c - make tables static Message-ID: <20190808103330.ijyw6n4eystwury4@breakpoint.cc> References: <55481.1565243002@turing-police> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55481.1565243002@turing-police> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Valdis Klētnieks wrote: > Sparse warns about two tables not being declared. > > CHECK net/netfilter/nf_nat_proto.c > net/netfilter/nf_nat_proto.c:725:26: warning: symbol 'nf_nat_ipv4_ops' was not declared. Should it be static? > net/netfilter/nf_nat_proto.c:964:26: warning: symbol 'nf_nat_ipv6_ops' was not declared. Should it be static? > > And in fact they can indeed be static. Acked-by: Florian Westphal Seems i removed the static qualifier when i added inet nat support, but the patch that was merged doesn't use them outside of nf_nat_proto.c. Thanks for fixing this.