coresight: "DEVICE_ATTR_RO" should defined as static.
authorEric Long <eric.long@linaro.org>
Thu, 18 Feb 2016 00:51:43 +0000 (17:51 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:30:10 +0000 (15:30 -0600)
commitfea6fe15e3ac5fae3f220c17f4f56601bbcf4d02
tree8bd8fc2ca667870c6397552638e714aafaee4f52
parent8a403a74c16625044c3bc83ae76791e562952727
coresight: "DEVICE_ATTR_RO" should defined as static.

"DEVICE_ATTR_RO(name)" should be defined as static. And
there is an unnecessary space at the front of the code.

The sparse tool output logs as the following:
coresight-etm4x.c:2224:1: warning: symbol 'dev_attr_trcoslsr' was
not declared. Should it be static?
coresight-etm4x.c:2225:1: warning: symbol 'dev_attr_trcpdcr' was
not declared. Should it be static?
coresight-etm4x.c:2226:1: warning: symbol 'dev_attr_trcpdsr' was
not declared. Should it be static?
And the smatch tool output logs as the following:
of_coresight.c:89 of_coresight_alloc_memory() warn:
inconsistent indenting

Signed-off-by: Eric Long <eric.long@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit bf16e5b8cdeabc1fe6565af0be475bb2084dc388)
drivers/hwtracing/coresight/coresight-etm4x.c
drivers/hwtracing/coresight/of_coresight.c