summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Wensheng <wangwensheng4@huawei.com>2020-09-14 14:26:15 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-09-16 14:05:18 +0200
commit3db8715ec9dc1d32ecafc67af9fb96508c98efe5 (patch)
treef0d5662b71773d8e2e5cb6f1cfa22c1c2b17c216
parentpowerpc/papr_scm: Fix warning triggered by perf_stats_show() (diff)
downloadlinux-3db8715ec9dc1d32ecafc67af9fb96508c98efe5.tar.xz
linux-3db8715ec9dc1d32ecafc67af9fb96508c98efe5.zip
drivers/macintosh/smu.c: Fix undeclared symbol warning
Make kernel with `C=2`: drivers/macintosh/smu.c:1018:30: warning: symbol '__smu_get_sdb_partition' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200914122615.65669-1-wangwensheng4@huawei.com
-rw-r--r--drivers/macintosh/smu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c
index 23f1f41c8602..ca2a0bc5c33e 100644
--- a/drivers/macintosh/smu.c
+++ b/drivers/macintosh/smu.c
@@ -1015,7 +1015,7 @@ static struct smu_sdbp_header *smu_create_sdb_partition(int id)
/* Note: Only allowed to return error code in pointers (using ERR_PTR)
* when interruptible is 1
*/
-const struct smu_sdbp_header *__smu_get_sdb_partition(int id,
+static const struct smu_sdbp_header *__smu_get_sdb_partition(int id,
unsigned int *size, int interruptible)
{
char pname[32];