From 02cc902b907d472e2691efa5778253649e3a1dba Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Tue, 20 Jul 2021 11:23:06 +0200 Subject: [PATCH] cpumf/lswhc.c: Fix sparse warning and add missing static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Richter Suggested-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- cpumf/lshwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpumf/lshwc.c b/cpumf/lshwc.c index 13f63c4d..22e5213f 100644 --- a/cpumf/lshwc.c +++ b/cpumf/lshwc.c @@ -54,7 +54,7 @@ static unsigned char *ioctlbuffer; static bool allcpu; static unsigned int max_possible_cpus; /* No of possible CPUs */ -struct ctrname { /* List of defined counters */ +static struct ctrname { /* List of defined counters */ char *name; /* Counter name */ bool hitcnt; /* Counter number read from ioctl() */ unsigned long total; /* Total counter value */