From patchwork Fri Nov 6 08:35:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Shi X-Patchwork-Id: 320782 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp278848ejb; Fri, 6 Nov 2020 00:35:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxquFJGCwCd8ScP5EmvOTPSj0KKphKXaFkR6oPWABwF4X1L18+lIn/odM4AGCYmE0CYKewt X-Received: by 2002:a05:6402:a53:: with SMTP id bt19mr900666edb.26.1604651724578; Fri, 06 Nov 2020 00:35:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604651724; cv=none; d=google.com; s=arc-20160816; b=hGG7EnqMAe8XGiD1hkxKCFCJGufP2XDpPvYK6FFTigXv5eYYe6jJ4aMzMd2sejgSto 1n2ljMIO9O67VbZ6ZPJWhwiakuG0v5XdcBjvY4SBZJtaGmnK/kdap4XBJDckCAdTtT9O BG3zqGzyPaOIDzdkiwnhnjdmDSqFCnwdi1zAbIrTktauxq+t1qkyNFkHdsJsPXpO3CcX wqrMbU944nNgYhv/muNff7nj4iIU2Mbi9U+DHFAGHcRTJYEALIJ//phHtUJaljPC+ak5 c7T5hdAvyfiwFverVWF7qI+pL9q/YlZF471y+bpzkUtGvUPmkEpEtA2veyIuWOCltyll NE7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=od2kde0zzgGhU05+YrWxXAKeCXgEbN3rtYAblJ++GQY=; b=MW3M5LGjspW131G6ov4ATeh1Jg5+fp99MEjaiAFN5e1pOdxYxkhttHC507dJf1J5b4 zOlQ9nUnoEOzOXFeOjtd6Ltmk6ndNuL8JnFkuAZn12/xh3rRhY8W/eCpBHcJb12G7Z0R DjBVzdx5DQPNtioTZLKsfD5CoLANTx7TflU6+jDGFi3IN11aLK9mmZF8SLh51HCJjj2M CetVg13SApp8ceAp9YKY+JNDYd0bOciG0rb+zGrqikrqB9ss8kgfQ7McLX8y5rUNHyG5 9n5SBJtbOX+0iNJ/4GgAB63rX79igMEHWa5yDQMRt6Czk+Qw8ez3aWCoQKAbTW9l98ej QGvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si456821edn.504.2020.11.06.00.35.24; Fri, 06 Nov 2020 00:35:24 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726541AbgKFIfT (ORCPT + 8 others); Fri, 6 Nov 2020 03:35:19 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:40756 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbgKFIfT (ORCPT ); Fri, 6 Nov 2020 03:35:19 -0500 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R931e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04394; MF=alex.shi@linux.alibaba.com; NM=1; PH=DS; RN=8; SR=0; TI=SMTPD_---0UEP0dwV_1604651716; Received: from aliy80.localdomain(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0UEP0dwV_1604651716) by smtp.aliyun-inc.com(127.0.0.1); Fri, 06 Nov 2020 16:35:16 +0800 From: Alex Shi To: pablo@netfilter.org 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: [PATCH] netfilter: remove unused macro DUMP_INIT to tame gcc Date: Fri, 6 Nov 2020 16:35:13 +0800 Message-Id: <1604651713-9920-1-git-send-email-alex.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org net/netfilter/ipset/ip_set_core.c:1416:0: warning: macro "DUMP_INIT" is not used [-Wunused-macros] This macro unused and cause above warning. So let's remove it. Signed-off-by: Alex Shi Cc: Pablo Neira Ayuso Cc: Jozsef Kadlecsik Cc: Florian Westphal Cc: "David S. Miller" Cc: netfilter-devel@vger.kernel.org Cc: coreteam@netfilter.org Cc: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- net/netfilter/ipset/ip_set_core.c | 1 - 1 file changed, 1 deletion(-) -- 1.8.3.1 diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c index c7eaa3776238..69c10878bf97 100644 --- a/net/netfilter/ipset/ip_set_core.c +++ b/net/netfilter/ipset/ip_set_core.c @@ -1420,7 +1420,6 @@ static int ip_set_swap(struct net *net, struct sock *ctnl, struct sk_buff *skb, /* List/save set data */ -#define DUMP_INIT 0 #define DUMP_ALL 1 #define DUMP_ONE 2 #define DUMP_LAST 3