[PATCH 1/2] powerpc: Fix old-style function definition

Subsystems: linux for power macintosh, linux for powerpc (32-bit and 64-bit), the rest

STALE3118d

2 messages, 2 authors, 2018-01-22 · open the first message on its own page

[PATCH 1/2] powerpc: Fix old-style function definition

From: Mathieu Malaterre <hidden>
Date: 2017-12-26 14:12:41

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: Mathieu Malaterre <redacted>
---
 arch/powerpc/platforms/powermac/backlight.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/platforms/powermac/backlight.c b/arch/powerpc/platforms/powermac/backlight.c
index a00096b1c713..6b5dcccae1d3 100644
--- a/arch/powerpc/platforms/powermac/backlight.c
+++ b/arch/powerpc/platforms/powermac/backlight.c
@@ -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);
 }
-- 
2.11.0

Re: [1/2] powerpc: Fix old-style function definition

From: Michael Ellerman <hidden>
Date: 2018-01-22 03:34:22

On Tue, 2017-12-26 at 14:12:33 UTC, Mathieu Malaterre wrote:
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: Mathieu Malaterre <redacted>
Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/4a7b8a499724c98493023e1e3009aa

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help