s390/perf: make cf_diag_csd static

Since there is really no reason for cf_diag_csd per cpu variable to be
globally visible make it static to avoid the following sparse warning:
arch/s390/kernel/perf_cpum_cf_diag.c:37:1: warning: symbol 'cf_diag_csd' was not declared. Should it be static?

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
Vasily Gorbik 2019-07-17 20:05:11 +02:00
parent d25220d2f2
commit 06f9895fda
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ struct cf_diag_csd { /* Counter set data per CPU */
unsigned char start[PAGE_SIZE]; /* Counter set at event start */ unsigned char start[PAGE_SIZE]; /* Counter set at event start */
unsigned char data[PAGE_SIZE]; /* Counter set at event delete */ unsigned char data[PAGE_SIZE]; /* Counter set at event delete */
}; };
DEFINE_PER_CPU(struct cf_diag_csd, cf_diag_csd); static DEFINE_PER_CPU(struct cf_diag_csd, cf_diag_csd);
/* Counter sets are stored as data stream in a page sized memory buffer and /* Counter sets are stored as data stream in a page sized memory buffer and
* exported to user space via raw data attached to the event sample data. * exported to user space via raw data attached to the event sample data.