Skip to content

Commit 3db8715

Browse files
Wang Wenshengmpe
authored andcommitted
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
1 parent ca78ef2 commit 3db8715

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/macintosh/smu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ static struct smu_sdbp_header *smu_create_sdb_partition(int id)
10151015
/* Note: Only allowed to return error code in pointers (using ERR_PTR)
10161016
* when interruptible is 1
10171017
*/
1018-
const struct smu_sdbp_header *__smu_get_sdb_partition(int id,
1018+
static const struct smu_sdbp_header *__smu_get_sdb_partition(int id,
10191019
unsigned int *size, int interruptible)
10201020
{
10211021
char pname[32];

0 commit comments

Comments
 (0)