aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2007-10-23 11:44:24 -0700
committerRoland Dreier <rolandd@cisco.com>2007-10-23 11:44:24 -0700
commitd8aa0ddd4ca9e5647188baefaafccf2d6c632d86 (patch)
tree0fb3dcf04ad4a87012c39dfd9a4a0cd38f467ac7
parentaa363c4b8913fa9cd97b45c70f3842ae90e31d62 (diff)
downloadlibmlx4-d8aa0ddd4ca9e5647188baefaafccf2d6c632d86.tar.gz
Change __always_inline to inline
__always_inline is a kernel macro, so we can't use it in userspace code. The inline keyword seems to work just as well in the one place libmlx4 uses it, so just change __always_inline to inline. Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/qp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qp.c b/src/qp.c
index b13eaad..8b4adaa 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -115,8 +115,8 @@ static int wq_overflow(struct mlx4_wq *wq, int nreq, struct mlx4_cq *cq)
return cur + nreq >= wq->max_post;
}
-static __always_inline void set_raddr_seg(struct mlx4_wqe_raddr_seg *rseg,
- uint64_t remote_addr, uint32_t rkey)
+static inline void set_raddr_seg(struct mlx4_wqe_raddr_seg *rseg,
+ uint64_t remote_addr, uint32_t rkey)
{
rseg->raddr = htonll(remote_addr);
rseg->rkey = htonl(rkey);