make pktgen.c:get_ipsec_sa() static and non-inline
Subsystems (2)
PATCH 1/1 make pktgen.c:get_ipsec_sa() static and non-inline
Non-static inline code usually doesn't makes sense.
In this case making is static and non-inline is the correct solution.
Signed-off-by Adrian Bunk <[email protected]>
---
net/core/pktgen.c renamed from net/core/pktgen.c.old +1 -2
@@ -2156,8 +2156,7 @@/* If there was already an IPSEC SA, we keep it as is, else * we go look for it ... */ -inline -void get_ipsec_sa (struct pktgen_dev *pkt_dev,int flow) +static void get_ipsec_sa (struct pktgen_dev *pkt_dev,int flow) {struct xfrm_state *x = pkt_dev->flows[flow].x;if (!x) {
From: Adrian Bunk <[email protected]>
Date: Sun, 29 Jul 2007 16:58:40 +0200
Quoted 5 lines
Non-static inline code usually doesn't makes sense.
In this case making is static and non-inline is the correct solution.
Signed-off-by Adrian Bunk <[email protected]>
Applied, thanks Adrian.