mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
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>
This commit is contained in:
parent
f1b195ce81
commit
2169b90889
@ -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)
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user