]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/hwlat: Make some internal symbols static
authorWang ShaoBo <bobo.shaobowang@huawei.com>
Thu, 21 Oct 2021 03:52:25 +0000 (11:52 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 26 Oct 2021 13:18:28 +0000 (09:18 -0400)
commite36682ba9f85996990259c62cb56bab9e266a837
tree4e66e85abd5056ec26f97f12aa1d7673d6deff1d
parentb31503e8e6ea7aa206e05a2f842e52e34cac42e4
tracing/hwlat: Make some internal symbols static

The sparse tool complains as follows:

kernel/trace/trace_hwlat.c:82:27: warning: symbol 'hwlat_single_cpu_data' was not declared. Should it be static?
kernel/trace/trace_hwlat.c:83:1: warning: symbol '__pcpu_scope_hwlat_per_cpu_data' was not declared. Should it be static?

This symbol is not used outside of trace_hwlat.c, so this commit
marks it static.

Link: https://lkml.kernel.org/r/20211021035225.1050685-1-bobo.shaobowang@huawei.com
Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_hwlat.c