Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1422585 > unrolled thread

[PATCH -next] nios2: clocksource: Fix build error

Started byGuenter Roeck <linux@roeck-us.net>
First post2016-06-15 06:10 +0200
Last post2016-06-15 13:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] nios2: clocksource: Fix build error Guenter Roeck <linux@roeck-us.net> - 2016-06-15 06:10 +0200
    Re: [PATCH -next] nios2: clocksource: Fix build error Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-06-15 13:30 +0200

#1422585 — [PATCH -next] nios2: clocksource: Fix build error

FromGuenter Roeck <linux@roeck-us.net>
Date2016-06-15 06:10 +0200
Subject[PATCH -next] nios2: clocksource: Fix build error
Message-ID<rKajn-5WF-1@gated-at.bofh.it>
gcc has trouble parsing returen.

Fixes: 3e23d81046936 ("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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c
index f3686f038996..f337eefdccbd 100644
--- a/arch/nios2/kernel/time.c
+++ b/arch/nios2/kernel/time.c
@@ -303,7 +303,7 @@ static __init int nios2_clocksource_init(struct device_node *timer)
 	/* Calibrate the delay loop directly */
 	lpj_fine = freq / HZ;
 
-	returen 0;
+	return 0;
 }
 
 /*
-- 
2.5.0

[toc] | [next] | [standalone]


#1422922

FromDaniel Lezcano <daniel.lezcano@linaro.org>
Date2016-06-15 13:30 +0200
Message-ID<rKhbb-1UE-11@gated-at.bofh.it>
In reply to#1422585
On 06/15/2016 06:02 AM, Guenter Roeck wrote:
> gcc has trouble parsing returen.
>
> Fixes: 3e23d81046936 ("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 | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/nios2/kernel/time.c b/arch/nios2/kernel/time.c
> index f3686f038996..f337eefdccbd 100644
> --- a/arch/nios2/kernel/time.c
> +++ b/arch/nios2/kernel/time.c
> @@ -303,7 +303,7 @@ static __init int nios2_clocksource_init(struct device_node *timer)
>   	/* Calibrate the delay loop directly */
>   	lpj_fine = freq / HZ;
>
> -	returen 0;
> +	return 0;


Fixed, thanks !


-- 
  <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