Skip to contentSkip to conversation

thinkpad_acpi: Fix old style declaration GCC warning

PATCH In review Tobias Klauser 3 participants 3 messages Nov 25, 2016 – Dec 12, 2016 1 message not in the archive x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thinkpad_acpi: Fix old style declaration GCC warning

Fix an [-Wold-style-declaration] GCC warning by moving the inline keyword before the return type.

---
 drivers/platform/x86/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +1 -1
index b65ce7519411..c24ce1adc577 100644
@@ -7716,7 +7716,7 @@ static struct ibm_struct volume_driver_data = {
 
 #define alsa_card NULL
 
-static void inline volume_alsa_notify_change(void)
+static inline void volume_alsa_notify_change(void)
 {
 }
 
Signature · 1 line
2.11.0.rc0.7.gbe5a750

A message that is not in the archive (sent off-list or not yet received): 20161125131807.3885-1-tklauser-93Khv+1bN0NyDzI6CaY1VQ@public.gmane.org

#2 lore raw
Quoted 4 lines · Tobias Klauser

Fix an [-Wold-style-declaration] GCC warning by moving the inline keyword before the return type.

Quoted 17 lines
---
 drivers/platform/x86/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/thinkpad_acpi.c +1 -1
index b65ce7519411..c24ce1adc577 100644
@@ -7716,7 +7716,7 @@ static struct ibm_struct volume_driver_data = {
 
 #define alsa_card NULL
 
-static void inline volume_alsa_notify_change(void)
+static inline void volume_alsa_notify_change(void)
 {
 }
 
Signature · 3 lines
  Henrique Holschuh

------------------------------------------------------------------------------