Skip to content

Commit bc75e54

Browse files
YueHaibingmpe
authored andcommitted
powerpc/powernv: Make some symbols static
Fix sparse warnings: arch/powerpc/platforms/powernv/opal-psr.c:20:1: warning: symbol 'psr_mutex' was not declared. Should it be static? arch/powerpc/platforms/powernv/opal-psr.c:27:3: warning: symbol 'psr_attrs' was not declared. Should it be static? arch/powerpc/platforms/powernv/opal-powercap.c:20:1: warning: symbol 'powercap_mutex' was not declared. Should it be static? arch/powerpc/platforms/powernv/opal-sensor-groups.c:20:1: warning: symbol 'sg_mutex' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190702131733.44100-1-yuehaibing@huawei.com
1 parent 93a1544 commit bc75e54

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/powerpc/platforms/powernv/opal-powercap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <asm/opal.h>
1515

16-
DEFINE_MUTEX(powercap_mutex);
16+
static DEFINE_MUTEX(powercap_mutex);
1717

1818
static struct kobject *powercap_kobj;
1919

arch/powerpc/platforms/powernv/opal-psr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
#include <asm/opal.h>
1515

16-
DEFINE_MUTEX(psr_mutex);
16+
static DEFINE_MUTEX(psr_mutex);
1717

1818
static struct kobject *psr_kobj;
1919

20-
struct psr_attr {
20+
static struct psr_attr {
2121
u32 handle;
2222
struct kobj_attribute attr;
2323
} *psr_attrs;

arch/powerpc/platforms/powernv/opal-sensor-groups.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include <asm/opal.h>
1515

16-
DEFINE_MUTEX(sg_mutex);
16+
static DEFINE_MUTEX(sg_mutex);
1717

1818
static struct kobject *sg_kobj;
1919

0 commit comments

Comments
 (0)