From d2ed92cb07bf0fbd0fc94076745477c60b0e2cd5 Mon Sep 17 00:00:00 2001 From: Vincent de Phily Date: Sat, 15 Apr 2023 21:13:48 +0100 Subject: [PATCH] Fix function prototypes Clang is stricter than gcc and refuses to build without this fix. --- src/clevo_leds.h | 2 +- src/uniwill_leds.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clevo_leds.h b/src/clevo_leds.h index ebd29af..5714756 100644 --- a/src/clevo_leds.h +++ b/src/clevo_leds.h @@ -376,7 +376,7 @@ int clevo_leds_remove(struct platform_device *dev) { } EXPORT_SYMBOL(clevo_leds_remove); -enum clevo_kb_backlight_types clevo_leds_get_backlight_type() { +enum clevo_kb_backlight_types clevo_leds_get_backlight_type(void) { return clevo_kb_backlight_type; } EXPORT_SYMBOL(clevo_leds_get_backlight_type); diff --git a/src/uniwill_leds.h b/src/uniwill_leds.h index 63639fa..2145252 100644 --- a/src/uniwill_leds.h +++ b/src/uniwill_leds.h @@ -275,7 +275,7 @@ int uniwill_leds_remove(struct platform_device *dev) } EXPORT_SYMBOL(uniwill_leds_remove); -enum uniwill_kb_backlight_types uniwill_leds_get_backlight_type() { +enum uniwill_kb_backlight_types uniwill_leds_get_backlight_type(void) { return uniwill_kb_backlight_type; } EXPORT_SYMBOL(uniwill_leds_get_backlight_type);