Commit 2169b908 authored by chongjiapeng's avatar chongjiapeng Committed by Jason Gunthorpe

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.comReported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarchongjiapeng <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent f1b195ce
......@@ -488,7 +488,7 @@ struct hfi1_ctxt_hist {
atomic_t data[255];
};
struct hfi1_ctxt_hist hist = {
static struct hfi1_ctxt_hist hist = {
.count = ATOMIC_INIT(0)
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment