Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1425107 > unrolled thread
| Started by | Guenter Roeck <linux@roeck-us.net> |
|---|---|
| First post | 2016-06-17 15:50 +0200 |
| Last post | 2016-06-17 19:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH -next] nios2: time: Fix build error and warning Guenter Roeck <linux@roeck-us.net> - 2016-06-17 15:50 +0200
Re: [PATCH -next] nios2: time: Fix build error and warning Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-06-17 19:30 +0200
| From | Guenter Roeck <linux@roeck-us.net> |
|---|---|
| Date | 2016-06-17 15:50 +0200 |
| Subject | [PATCH -next] nios2: time: Fix build error and warning |
| Message-ID | <rL2jM-7aI-19@gated-at.bofh.it> |
nios2 builds fail with
arch/nios2/kernel/time.c: In function 'time_init':
arch/nios2/kernel/time.c:354:2: warning:
'return' with a value, in function returning void
include/linux/of.h:999:2: warning:
ISO C90 forbids mixed declarations and code
include/linux/of.h:999:22: error:
expected declaration or statement at end of input
Fixes: 2ef9162920dc ("clocksource/drivers/nios2: Convert init function to return error")
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
arch/nios2/kernel/time.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c
index f337eefdccbd..d9563ddb337e 100644
--- a/arch/nios2/kernel/time.c
+++ b/arch/nios2/kernel/time.c
@@ -346,12 +346,10 @@ void __init time_init(void)
for_each_compatible_node(np, NULL, ALTR_TIMER_COMPATIBLE)
count++;
- if (count < 2) {
+ if (count < 2)
panic("%d timer is found, it needs 2 timers in system\n", count);
clocksource_probe();
-
- return 0;
}
CLOCKSOURCE_OF_DECLARE(nios2_timer, ALTR_TIMER_COMPATIBLE, nios2_time_init);
--
2.5.0
[toc] | [next] | [standalone]
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Date | 2016-06-17 19:30 +0200 |
| Message-ID | <rL5KF-Zn-5@gated-at.bofh.it> |
| In reply to | #1425107 |
On 06/17/2016 03:47 PM, Guenter Roeck wrote:
> nios2 builds fail with
>
> arch/nios2/kernel/time.c: In function 'time_init':
> arch/nios2/kernel/time.c:354:2: warning:
> 'return' with a value, in function returning void
>
> include/linux/of.h:999:2: warning:
> ISO C90 forbids mixed declarations and code
>
> include/linux/of.h:999:22: error:
> expected declaration or statement at end of input
>
> Fixes: 2ef9162920dc ("clocksource/drivers/nios2: Convert init function to return error")
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
Thanks ! I merged this fix with the commit.
-- Daniel
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web