2014-10-27 18:13:44

by Fabian Frédérick

[permalink] [raw]
Subject: [PATCH 1/1 net-next] ipx: replace __inline__ by inline

Signed-off-by: Fabian Frederick <[email protected]>
---
net/ipx/af_ipx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c
index 91729b8..61ffe3c 100644
--- a/net/ipx/af_ipx.c
+++ b/net/ipx/af_ipx.c
@@ -306,7 +306,7 @@ void ipxitf_down(struct ipx_interface *intrfc)
spin_unlock_bh(&ipx_interfaces_lock);
}

-static __inline__ void __ipxitf_put(struct ipx_interface *intrfc)
+static inline void __ipxitf_put(struct ipx_interface *intrfc)
{
if (atomic_dec_and_test(&intrfc->refcnt))
__ipxitf_down(intrfc);
--
1.9.1


2014-10-27 19:46:48

by David Miller

[permalink] [raw]
Subject: Re: [PATCH 1/1 net-next] ipx: replace __inline__ by inline

From: Fabian Frederick <[email protected]>
Date: Mon, 27 Oct 2014 19:09:12 +0100

> Signed-off-by: Fabian Frederick <[email protected]>

If it's in a foo.c file, just kill the inline completely and let the
compiler decide.

Thanks.