From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Paul Gortmaker <paul.gortmaker@windriver.com>,
linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] clocksource: mips-gic-timer: make gic_clocksource_of_init return int
Date: Tue, 16 Aug 2016 15:57:27 +0200 [thread overview]
Message-ID: <57B31BC7.8000401@linaro.org> (raw)
In-Reply-To: <20160801033546.26472-1-paul.gortmaker@windriver.com>
On 08/01/2016 05:35 AM, Paul Gortmaker wrote:
> In commit d8152bf85d2c057fc39c3e20a4d623f524d9f09c:
> ("clocksource/drivers/mips-gic-timer: Convert init function to return error")
>
> several return values were added to a void function resulting in:
>
> clocksource/mips-gic-timer.c: In function 'gic_clocksource_of_init':
> clocksource/mips-gic-timer.c:175:3: warning: 'return' with a value, in function returning void [enabled by default]
> clocksource/mips-gic-timer.c:183:4: warning: 'return' with a value, in function returning void [enabled by default]
> clocksource/mips-gic-timer.c:190:3: warning: 'return' with a value, in function returning void [enabled by default]
> clocksource/mips-gic-timer.c:195:3: warning: 'return' with a value, in function returning void [enabled by default]
> clocksource/mips-gic-timer.c:200:3: warning: 'return' with a value, in function returning void [enabled by default]
> clocksource/mips-gic-timer.c:211:2: warning: 'return' with a value, in function returning void [enabled by default]
> clocksource/mips-gic-timer.c: At top level:
> clocksource/mips-gic-timer.c:213:1: warning: comparison of distinct pointer types lacks a cast [enabled by default]
> clocksource/mips-gic-timer.c: In function 'gic_clocksource_of_init':
> clocksource/mips-gic-timer.c:183:18: warning: ignoring return value of 'PTR_ERR', declared with attribute warn_unused_result [-Wunused-result]
>
> Given that the addition of the return values was intentional, it seems
> that the conversion of the containing function from void to int was
> simply overlooked.
>
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Cc: linux-mips@linux-mips.org
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
Hi Paul,
Thomas is in vacation and I'm returning back.
So I applied this patch as a fix.
Thanks!
-- 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
prev parent reply other threads:[~2016-08-16 13:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-01 3:35 [PATCH] clocksource: mips-gic-timer: make gic_clocksource_of_init return int Paul Gortmaker
2016-08-02 12:09 ` Daniel Lezcano
2016-08-16 13:57 ` Daniel Lezcano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57B31BC7.8000401@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=paul.gortmaker@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox