diff options
author | Wang Wensheng <wangwensheng4@huawei.com> | 2020-09-14 15:26:15 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-16 15:05:18 +0300 |
commit | 3db8715ec9dc1d32ecafc67af9fb96508c98efe5 (patch) | |
tree | f0d5662b71773d8e2e5cb6f1cfa22c1c2b17c216 /drivers | |
parent | ca78ef2f08ccfa29b711d644964cdf9d7ace15e5 (diff) | |
download | linux-3db8715ec9dc1d32ecafc67af9fb96508c98efe5.tar.xz |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/macintosh/smu.c | 2 |
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]; |