]> Git Repo - linux.git/commitdiff
RDMA/bnxt_re: make bnxt_re_ib_init static
authorYueHaibing <[email protected]>
Mon, 30 Mar 2020 11:02:19 +0000 (19:02 +0800)
committerJason Gunthorpe <[email protected]>
Mon, 30 Mar 2020 18:03:19 +0000 (15:03 -0300)
Fix sparse warning:

drivers/infiniband/hw/bnxt_re/main.c:1313:5:
 warning: symbol 'bnxt_re_ib_init' was not declared. Should it be static?

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: YueHaibing <[email protected]>
Acked-by: Selvin Xavier <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/infiniband/hw/bnxt_re/main.c

index 4a8fb1ad74a88d0086584e300d137dab5b0ea771..b12fbc857f94253166aabb6aeeddc18d1184cb95 100644 (file)
@@ -1310,7 +1310,7 @@ static void bnxt_re_query_hwrm_intf_version(struct bnxt_re_dev *rdev)
                le16_to_cpu(resp.hwrm_intf_patch);
 }
 
-int bnxt_re_ib_init(struct bnxt_re_dev *rdev)
+static int bnxt_re_ib_init(struct bnxt_re_dev *rdev)
 {
        int rc = 0;
        u32 event;
This page took 0.062835 seconds and 4 git commands to generate.