clocksource/drivers/timer-ti-dm: Fix compile test warning
PATCH v2 1/1 clocksource/drivers/timer-ti-dm: Fix compile test warning
We can get a warning with COMPILE_TEST enabled for omap_timer_match for 'omap_timer_match' defined but not used.
Fixes ab0bbef3ae0f ("clocksource/drivers/timer-ti-dm: Make timer selectable for ARCH_K3")
Reported-by kernel test robot <[email protected]>
Suggested-by Arnd Bergmann <[email protected]>
Signed-off-by Tony Lindgren <[email protected]>
---
Changes since v1:
- Remove of_match_ptr() instead of adding __maybe_unused as suggested by Arnd
--- drivers/clocksource/timer-ti-dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/timer-ti-dm.c +1 -1
@@ -1081,7 +1081,7 @@ static struct platform_driver omap_dm_timer_driver = { .remove = omap_dm_timer_remove, .driver = { .name = "omap_timer", - .of_match_table = of_match_ptr(omap_timer_match), + .of_match_table = omap_timer_match, .pm = &omap_dm_timer_pm_ops, }, };
Signature · 1 line
2.37.1
Quoted 9 lines · Tony Lindgren
We can get a warning with
COMPILE_TESTenabled foromap_timer_matchfor 'omap_timer_match' defined but not used.Fixes ab0bbef3ae0f ("clocksource/drivers/timer-ti-dm: Make timer selectable for ARCH_K3")Reported-by kernel test robot <[email protected]>Suggested-by Arnd Bergmann <[email protected]>Signed-off-by Tony Lindgren <[email protected]>
Quoted 6 lines
---
Changes since v1:
- Remove
of_match_ptr()instead of adding__maybe_unusedas suggested by Arnd
Looks good to me,
Acked-by Arnd Bergmann <[email protected]>
Quoted 8 lines · Tony Lindgren
We can get a warning with
COMPILE_TESTenabled foromap_timer_matchfor 'omap_timer_match' defined but not used.Fixes ab0bbef3ae0f ("clocksource/drivers/timer-ti-dm: Make timer selectable for ARCH_K3")Reported-by kernel test robot <[email protected]>Suggested-by Arnd Bergmann <[email protected]>Signed-off-by Tony Lindgren <[email protected]>
Quoted 5 lines
---
Changes since v1:
- Remove
of_match_ptr()instead of adding__maybe_unusedas suggested by Arnd
Applied for 6.0-rc, thanks
Signature · 5 lines
<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