IB/hfi1: Move a function from a header file into a .c file
authorBart Van Assche <bvanassche@acm.org>
Mon, 24 May 2021 04:12:07 +0000 (21:12 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 May 2021 23:21:20 +0000 (20:21 -0300)
commit17bb6b6bb50734a9e9629f08af8e251b5756b460
treedbadec2bd90d166e58fc3b3e73c9a67c5f68e020
parent68e11a6086b10e1a88d2b2c8432299f595db748d
IB/hfi1: Move a function from a header file into a .c file

Since ib_get_len() only has one caller, move it from a header file into a
.c file. Additionally, remove the superfluous u16 cast. That cast was
introduced by commit 7dafbab3753f ("IB/hfi1: Add functions to parse BTH/IB
headers").

Link: https://lore.kernel.org/r/20210524041211.9480-2-bvanassche@acm.org
Cc: Don Hiatt <don.hiatt@intel.com>
Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hfi1/trace.c
include/rdma/ib_hdrs.h