Re: [PATCH -next] coresight: etm: perf: Make symbol 'format_attr_contextid' static

From: Suzuki K Poulose
Date: Mon Mar 08 2021 - 07:32:07 EST


On 3/8/21 12:32 PM, 'Wei Yongjun wrote:
From: Wei Yongjun <weiyongjun1@xxxxxxxxxx>

The sparse tool complains as follows:

drivers/hwtracing/coresight/coresight-etm-perf.c:61:25: warning:
symbol 'format_attr_contextid' was not declared. Should it be static?

This symbol is not used outside of coresight-etm-perf.c, so this
commit marks it static.

Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>

Reviewed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>