* [PATCH] clocksource/drivers/timer-ti-dm: Change to new style declaration
@ 2019-05-21 12:26 Philippe Mazenauer
2019-05-21 13:00 ` Daniel Lezcano
0 siblings, 1 reply; 2+ messages in thread
From: Philippe Mazenauer @ 2019-05-21 12:26 UTC (permalink / raw)
Cc: Philippe Mazenauer, Daniel Lezcano, Thomas Gleixner,
open list:CLOCKSOURCE, CLOCKEVENT DRIVERS
Variable 'dmtimer_ops' was declared const static instead of static const.
../drivers/clocksource/timer-ti-dm.c:899:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
const static struct omap_dm_timer_ops dmtimer_ops = {
^~~~~
Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
---
drivers/clocksource/timer-ti-dm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
index e40b55a7086f..5394d9dbdfbc 100644
--- a/drivers/clocksource/timer-ti-dm.c
+++ b/drivers/clocksource/timer-ti-dm.c
@@ -896,7 +896,7 @@ static int omap_dm_timer_remove(struct platform_device *pdev)
return ret;
}
-const static struct omap_dm_timer_ops dmtimer_ops = {
+static const struct omap_dm_timer_ops dmtimer_ops = {
.request_by_node = omap_dm_timer_request_by_node,
.request_specific = omap_dm_timer_request_specific,
.request = omap_dm_timer_request,
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] clocksource/drivers/timer-ti-dm: Change to new style declaration
2019-05-21 12:26 [PATCH] clocksource/drivers/timer-ti-dm: Change to new style declaration Philippe Mazenauer
@ 2019-05-21 13:00 ` Daniel Lezcano
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Lezcano @ 2019-05-21 13:00 UTC (permalink / raw)
To: Philippe Mazenauer
Cc: Thomas Gleixner, open list:CLOCKSOURCE, CLOCKEVENT DRIVERS
On 21/05/2019 14:26, Philippe Mazenauer wrote:
> Variable 'dmtimer_ops' was declared const static instead of static const.
>
> ../drivers/clocksource/timer-ti-dm.c:899:1: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]
> const static struct omap_dm_timer_ops dmtimer_ops = {
> ^~~~~
>
> Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
> ---
Applied as fix, 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-21 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-21 12:26 [PATCH] clocksource/drivers/timer-ti-dm: Change to new style declaration Philippe Mazenauer
2019-05-21 13:00 ` Daniel Lezcano
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.