]> Git Repo - linux.git/commitdiff
RDMA/cxgb4: Make _c4iw_write_mem_dma() static
authorRashika <[email protected]>
Sat, 14 Dec 2013 13:12:14 +0000 (18:42 +0530)
committerRoland Dreier <[email protected]>
Sun, 15 Dec 2013 16:04:15 +0000 (08:04 -0800)
This patch marks the function _c4iw_write_mem_dma() as static
because it is not used outside this file, which fixes the warning:

    drivers/infiniband/hw/cxgb4/mem.c:176:5: warning: no previous prototype for ‘_c4iw_write_mem_dma’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <[email protected]>
Acked-by: Steve Wise <[email protected]>
Reviewed-by: Josh Triplett <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
drivers/infiniband/hw/cxgb4/mem.c

index 4cb8eb24497cfa61821b4863c4026ff5a061405a..84e45006451cd3983cd1b28bfb22d2c0a9c02ef7 100644 (file)
@@ -173,7 +173,7 @@ static int _c4iw_write_mem_inline(struct c4iw_rdev *rdev, u32 addr, u32 len,
        return ret;
 }
 
-int _c4iw_write_mem_dma(struct c4iw_rdev *rdev, u32 addr, u32 len, void *data)
+static int _c4iw_write_mem_dma(struct c4iw_rdev *rdev, u32 addr, u32 len, void *data)
 {
        u32 remain = len;
        u32 dmalen;
This page took 0.053969 seconds and 4 git commands to generate.