[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1604641431-6295-1-git-send-email-alex.shi@linux.alibaba.com>
Date: Fri, 6 Nov 2020 13:43:51 +0800
From: Alex Shi <alex.shi@...ux.alibaba.com>
To: davem@...emloft.net
Cc: Jakub Kicinski <kuba@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Jesper Dangaard Brouer <hawk@...nel.org>,
John Fastabend <john.fastabend@...il.com>,
netdev@...r.kernel.org, bpf@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] net/xdp: remove unused macro REG_STATE_NEW
To tame gcc warning on it:
net/core/xdp.c:20:0: warning: macro "REG_STATE_NEW" is not used
[-Wunused-macros]
Signed-off-by: Alex Shi <alex.shi@...ux.alibaba.com>
Cc: "David S. Miller" <davem@...emloft.net>
Cc: Jakub Kicinski <kuba@...nel.org>
Cc: Alexei Starovoitov <ast@...nel.org>
Cc: Daniel Borkmann <daniel@...earbox.net>
Cc: Jesper Dangaard Brouer <hawk@...nel.org>
Cc: John Fastabend <john.fastabend@...il.com>
Cc: netdev@...r.kernel.org
Cc: bpf@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
---
net/core/xdp.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/core/xdp.c b/net/core/xdp.c
index 48aba933a5a8..3d88aab19c89 100644
--- a/net/core/xdp.c
+++ b/net/core/xdp.c
@@ -19,7 +19,6 @@
#include <trace/events/xdp.h>
#include <net/xdp_sock_drv.h>
-#define REG_STATE_NEW 0x0
#define REG_STATE_REGISTERED 0x1
#define REG_STATE_UNREGISTERED 0x2
#define REG_STATE_UNUSED 0x3
--
1.8.3.1
Powered by blists - more mailing lists