Skip to contentSkip to conversation

backlight: Fix old-style function definition

PATCH In review Mathieu Malaterre 2 participants 2 messages Dec 26, 2017 – Jan 3, 2018 Linux for power macintosh

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 backlight: Fix old-style function definition

Fix warning:

drivers/macintosh/via-pmu-backlight.c: In function ‘pmu_backlight_init’:
drivers/macintosh/via-pmu-backlight.c:140:13: warning: old-style function definition [-Wold-style-definition]
void __init pmu_backlight_init()

             ^~~~~~~~~~~~~~~~~~
---
 drivers/macintosh/via-pmu-backlight.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/macintosh/via-pmu-backlight.c +1 -1
index 89ed51571b62..50ada02ae75d 100644
@@ -137,7 +137,7 @@ void pmu_backlight_set_sleep(int sleep)
 }
 #endif /* CONFIG_PM */
 
-void __init pmu_backlight_init()
+void __init pmu_backlight_init(void)
 {
 	struct backlight_properties props;
 	struct backlight_device *bd;
Signature · 1 line
2.11.0
Acked-by on v1 2/2
#1 lore raw
Quoted 8 lines · Mathieu Malaterre

Fix warning:

drivers/macintosh/via-pmu-backlight.c: In function ‘pmu_backlight_init’:
drivers/macintosh/via-pmu-backlight.c:140:13: warning: old-style function definition [-Wold-style-definition]
void __init pmu_backlight_init()

             ^~~~~~~~~~~~~~~~~~
Quoted 20 lines
---
 drivers/macintosh/via-pmu-backlight.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/macintosh/via-pmu-backlight.c +1 -1
index 89ed51571b62..50ada02ae75d 100644
@@ -137,7 +137,7 @@ void pmu_backlight_set_sleep(int sleep)
 }
 #endif /* CONFIG_PM */
 
-void __init pmu_backlight_init()
+void __init pmu_backlight_init(void)
 {
 	struct backlight_properties props;
 	struct backlight_device *bd;
Signature · 1 line
2.11.0