coresight: tmc: mark symbols static where possible
authorBaoyou Xie <baoyou.xie@linaro.org>
Tue, 6 Sep 2016 08:03:50 +0000 (16:03 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 6 Sep 2016 15:18:43 +0000 (09:18 -0600)
commita559985c4a80c4bac6c10f0ba010d58e766090a9
treebb1ef47a50dbe49c7f64ff2ed7b11f17b542ffa5
parent4fd08c7ab6671256b43093c7967f33765963e3d4
coresight: tmc: mark symbols static where possible

We get a few warnings when building kernel with W=1:
drivers/hwtracing/coresight/coresight-tmc-etr.c:23:6: warning: no previous prototype for 'tmc_etr_enable_hw' [-Wmissing-prototypes]
drivers/hwtracing/coresight/coresight-tmc-etf.c:25:6: warning: no previous prototype for 'tmc_etb_enable_hw' [-Wmissing-prototypes]
drivers/hwtracing/coresight/coresight-tmc.c:250:9: warning: no previous prototype for ‘trigger_cntr_show’ [-Wmissing-prototypes]
...

In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
so this patch marks these functions with 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight-tmc-etf.c
drivers/hwtracing/coresight/coresight-tmc-etr.c
drivers/hwtracing/coresight/coresight-tmc.c
This page took 0.026771 seconds and 5 git commands to generate.