提交 4a7b8a49 编写于 作者: M Mathieu Malaterre 提交者: Michael Ellerman

powerpc: Fix old-style function definition

Fix warnings such as:

arch/powerpc/platforms/powermac/backlight.c: In function ‘pmac_backlight_get_legacy_brightness’:
arch/powerpc/platforms/powermac/backlight.c:189:5: error: old-style function definition [-Werror=old-style-definition]
 int pmac_backlight_get_legacy_brightness()
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: NMathieu Malaterre <malat@debian.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 104d55ae
......@@ -186,7 +186,7 @@ int pmac_backlight_set_legacy_brightness(int brightness)
return __pmac_backlight_set_legacy_brightness(brightness);
}
int pmac_backlight_get_legacy_brightness()
int pmac_backlight_get_legacy_brightness(void)
{
int result = -ENXIO;
......@@ -205,12 +205,12 @@ int pmac_backlight_get_legacy_brightness()
return result;
}
void pmac_backlight_disable()
void pmac_backlight_disable(void)
{
atomic_inc(&kernel_backlight_disabled);
}
void pmac_backlight_enable()
void pmac_backlight_enable(void)
{
atomic_dec(&kernel_backlight_disabled);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册