Re: [PATCH 2/2] clocksource: Make clocksource register functions void

From
Thomas Gleixner <hidden>
Date
2014-02-05 20:39:33
Also in
linux-arm-kernel, linux-arm-msm, linux-mips, linux-omap, linux-samsung-soc, linuxppc-dev
Reply to
Daniel Lezcano, 2014-01-23
On Thu, 23 Jan 2014, Daniel Lezcano wrote:
On 01/23/2014 08:12 AM, Yijing Wang wrote:
quoted
Currently, clocksource_register() and __clocksource_register_scale()
functions always return 0, it's pointless, make functions void.
And remove the dead code that check the clocksource_register_hz()
return value.

Signed-off-by: Yijing Wang <redacted>
Well, do we really want to change all these files to not take care of a return
value ? What about is we have to check it again later ?

I would recommend to investigate __clocksource_register_scale and the
underneath functions if there is not an error to be returned in the call stack
somewhere which is ignored today.

The same applies for clocksource_register.
There is really no point in making it fail. It's so low level that
anything more than a proper printk/BUG/WARN is overkill.

Thanks,

	tglx

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (11 messages) 11 messages, 7 authors, last reply 2014-02-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help