* [PATCH] clocksource/drivers/timer-ti-dm: Make timer_get_irq static
@ 2022-10-28 10:36 Tony Lindgren
2022-12-09 15:47 ` [tip: timers/core] " tip-bot2 for Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Tony Lindgren @ 2022-10-28 10:36 UTC (permalink / raw)
To: Daniel Lezcano, Thomas Gleixner
Cc: Grygorii Strashko, Keerthy, Ladislav Michl, Nishanth Menon,
Suman Anna, Vignesh Raghavendra, linux-kernel, linux-omap,
linux-arm-kernel, Janusz Krzysztofik
We can make timer_get_irq() static as noted by Janusz. It is only used by
omap_rproc_get_timer_irq() via platform data.
Reported-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
drivers/clocksource/timer-ti-dm.c | 2 +-
include/clocksource/timer-ti-dm.h | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
--- a/drivers/clocksource/timer-ti-dm.c
+++ b/drivers/clocksource/timer-ti-dm.c
@@ -643,7 +643,7 @@ static int omap_dm_timer_free(struct omap_dm_timer *cookie)
return 0;
}
-int omap_dm_timer_get_irq(struct omap_dm_timer *cookie)
+static int omap_dm_timer_get_irq(struct omap_dm_timer *cookie)
{
struct dmtimer *timer = to_dmtimer(cookie);
if (timer)
diff --git a/include/clocksource/timer-ti-dm.h b/include/clocksource/timer-ti-dm.h
--- a/include/clocksource/timer-ti-dm.h
+++ b/include/clocksource/timer-ti-dm.h
@@ -62,8 +62,6 @@
struct omap_dm_timer {
};
-int omap_dm_timer_get_irq(struct omap_dm_timer *timer);
-
u32 omap_dm_timer_modify_idlect_mask(u32 inputmask);
/*
--
2.37.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip: timers/core] clocksource/drivers/timer-ti-dm: Make timer_get_irq static
2022-10-28 10:36 [PATCH] clocksource/drivers/timer-ti-dm: Make timer_get_irq static Tony Lindgren
@ 2022-12-09 15:47 ` tip-bot2 for Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Tony Lindgren @ 2022-12-09 15:47 UTC (permalink / raw)
To: linux-tip-commits
Cc: Janusz Krzysztofik, Tony Lindgren, Daniel Lezcano, x86,
linux-kernel
The following commit has been merged into the timers/core branch of tip:
Commit-ID: dedb2aced3e958c6f4811d3e6b392652ff0eea01
Gitweb: https://git.kernel.org/tip/dedb2aced3e958c6f4811d3e6b392652ff0eea01
Author: Tony Lindgren <tony@atomide.com>
AuthorDate: Fri, 28 Oct 2022 13:36:04 +03:00
Committer: Daniel Lezcano <daniel.lezcano@kernel.org>
CommitterDate: Fri, 02 Dec 2022 13:16:46 +01:00
clocksource/drivers/timer-ti-dm: Make timer_get_irq static
We can make timer_get_irq() static as noted by Janusz. It is only used by
omap_rproc_get_timer_irq() via platform data.
Reported-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20221028103604.40385-1-tony@atomide.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
---
drivers/clocksource/timer-ti-dm.c | 2 +-
include/clocksource/timer-ti-dm.h | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
index 00af1a8..eeeeb3c 100644
--- a/drivers/clocksource/timer-ti-dm.c
+++ b/drivers/clocksource/timer-ti-dm.c
@@ -643,7 +643,7 @@ static int omap_dm_timer_free(struct omap_dm_timer *cookie)
return 0;
}
-int omap_dm_timer_get_irq(struct omap_dm_timer *cookie)
+static int omap_dm_timer_get_irq(struct omap_dm_timer *cookie)
{
struct dmtimer *timer = to_dmtimer(cookie);
if (timer)
diff --git a/include/clocksource/timer-ti-dm.h b/include/clocksource/timer-ti-dm.h
index 77eceea..dcc1712 100644
--- a/include/clocksource/timer-ti-dm.h
+++ b/include/clocksource/timer-ti-dm.h
@@ -62,8 +62,6 @@
struct omap_dm_timer {
};
-int omap_dm_timer_get_irq(struct omap_dm_timer *timer);
-
u32 omap_dm_timer_modify_idlect_mask(u32 inputmask);
/*
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-09 15:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-28 10:36 [PATCH] clocksource/drivers/timer-ti-dm: Make timer_get_irq static Tony Lindgren
2022-12-09 15:47 ` [tip: timers/core] " tip-bot2 for Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox