Commit bc75e543 authored by YueHaibing's avatar YueHaibing Committed by Michael Ellerman

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190702131733.44100-1-yuehaibing@huawei.com
parent 93a1544a
......@@ -13,7 +13,7 @@
#include <asm/opal.h>
DEFINE_MUTEX(powercap_mutex);
static DEFINE_MUTEX(powercap_mutex);
static struct kobject *powercap_kobj;
......
......@@ -13,11 +13,11 @@
#include <asm/opal.h>
DEFINE_MUTEX(psr_mutex);
static DEFINE_MUTEX(psr_mutex);
static struct kobject *psr_kobj;
struct psr_attr {
static struct psr_attr {
u32 handle;
struct kobj_attribute attr;
} *psr_attrs;
......
......@@ -13,7 +13,7 @@
#include <asm/opal.h>
DEFINE_MUTEX(sg_mutex);
static DEFINE_MUTEX(sg_mutex);
static struct kobject *sg_kobj;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment