[PATCH] xfrm: Remove the repeated declaration

Subsystems: networking [general], networking [ipsec], the rest

STALE1889d

2 messages, 2 authors, 2021-06-03 · open the first message on its own page

[PATCH] xfrm: Remove the repeated declaration

From: Shaokun Zhang <hidden>
Date: 2021-05-29 07:52:15

Function 'xfrm_parse_spi' is declared twice, so remove the
repeated declaration.

Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net> 
Signed-off-by: Shaokun Zhang <redacted>
---
 include/net/xfrm.h | 1 -
 1 file changed, 1 deletion(-)
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index c58a6d4eb610..5ae00e522a14 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -1570,7 +1570,6 @@ int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi,
 		    int encap_type);
 int xfrm4_transport_finish(struct sk_buff *skb, int async);
 int xfrm4_rcv(struct sk_buff *skb);
-int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq);
 
 static inline int xfrm4_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi)
 {
-- 
2.7.4

Re: [PATCH] xfrm: Remove the repeated declaration

From: Steffen Klassert <steffen.klassert@secunet.com>
Date: 2021-06-03 08:17:32

On Sat, May 29, 2021 at 03:52:02PM +0800, Shaokun Zhang wrote:
Function 'xfrm_parse_spi' is declared twice, so remove the
repeated declaration.

Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net> 
Signed-off-by: Shaokun Zhang <redacted>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help