Skip to content

Commit 2169b90

Browse files
chongjiapengjgunthorpe
authored andcommitted
IB/hfi1: make hist static
This symbol is not used outside of trace.c, so marks it static. Fix the following sparse warning: drivers/infiniband/hw/hfi1/trace.c:491:23: warning: symbol 'hist' was not declared. Should it be static? Link: https://lore.kernel.org/r/1630921723-21545-1-git-send-email-jiapeng.chong@linux.alibaba.com Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: chongjiapeng <jiapeng.chong@linux.alibaba.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent f1b195c commit 2169b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/hfi1/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ struct hfi1_ctxt_hist {
488488
atomic_t data[255];
489489
};
490490

491-
struct hfi1_ctxt_hist hist = {
491+
static struct hfi1_ctxt_hist hist = {
492492
.count = ATOMIC_INIT(0)
493493
};
494494

0 commit comments

Comments
 (0)