netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/xdp: remove unused macro REG_STATE_NEW
@ 2020-11-06  5:43 Alex Shi
  2020-11-06 16:13 ` Jesper Dangaard Brouer
  0 siblings, 1 reply; 5+ messages in thread
From: Alex Shi @ 2020-11-06  5:43 UTC (permalink / raw)
  To: davem
  Cc: Jakub Kicinski, Alexei Starovoitov, Daniel Borkmann,
	Jesper Dangaard Brouer, John Fastabend, netdev, bpf,
	linux-kernel

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@linux.alibaba.com>
Cc: "David S. Miller" <davem@davemloft.net> 
Cc: Jakub Kicinski <kuba@kernel.org> 
Cc: Alexei Starovoitov <ast@kernel.org> 
Cc: Daniel Borkmann <daniel@iogearbox.net> 
Cc: Jesper Dangaard Brouer <hawk@kernel.org> 
Cc: John Fastabend <john.fastabend@gmail.com> 
Cc: netdev@vger.kernel.org 
Cc: bpf@vger.kernel.org 
Cc: linux-kernel@vger.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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-10 11:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06  5:43 [PATCH] net/xdp: remove unused macro REG_STATE_NEW Alex Shi
2020-11-06 16:13 ` Jesper Dangaard Brouer
2020-11-07 13:08   ` Alex Shi
2020-11-09 21:44     ` John Fastabend
2020-11-10 11:43       ` Jesper Dangaard Brouer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).