From: Adrian Bunk Date: Tue, 31 Jul 2007 01:04:09 +0000 (-0700) Subject: [PKTGEN]: make get_ipsec_sa() static and non-inline X-Git-Tag: Ubuntu-5.13.0-19.19~48781^2~14 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=fea1ab0fcf117bc1e9c9285af6463d31d9cc0ac6;p=mirror_ubuntu-jammy-kernel.git [PKTGEN]: make 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 Signed-off-by: David S. Miller --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index be985f068e79..7bae576ac115 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -2159,8 +2159,7 @@ static inline int f_pick(struct pktgen_dev *pkt_dev) /* 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) {