diff options
| author | Nathan Chancellor <[email protected]> | 2022-03-03 18:42:12 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2022-03-07 17:27:22 +0000 |
| commit | bf127df3cceada8693888fc86a3121c38ef25701 (patch) | |
| tree | 3bffa583942a3f7a78d5d3f0aaf1f695ff18dc86 /drivers/clocksource/timer-imx-tpm.c | |
| parent | clocksource/drivers/arm_arch_timer: Use event stream scaling when available (diff) | |
| download | kernel-bf127df3cceada8693888fc86a3121c38ef25701.tar.gz kernel-bf127df3cceada8693888fc86a3121c38ef25701.zip | |
clocksource/drivers/imx-tpm: Move tpm_read_sched_clock() under CONFIG_ARM
When building this driver for an architecture other than ARCH=arm:
drivers/clocksource/timer-imx-tpm.c:78:20: error: unused function 'tpm_read_sched_clock' [-Werror,-Wunused-function]
static u64 notrace tpm_read_sched_clock(void)
^
1 error generated.
Move the function definition under the existing CONFIG_ARM section so
there is no more warning.
Fixes: 10720e120e2b ("clocksource/drivers/imx-tpm: Exclude sched clock for ARM64")
Signed-off-by: Nathan Chancellor <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
Diffstat (limited to 'drivers/clocksource/timer-imx-tpm.c')
| -rw-r--r-- | drivers/clocksource/timer-imx-tpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index 60cefc247b71..bd64a8a8427f 100644 --- a/drivers/clocksource/timer-imx-tpm.c +++ b/drivers/clocksource/timer-imx-tpm.c @@ -73,12 +73,12 @@ static unsigned long tpm_read_current_timer(void) { return tpm_read_counter(); } -#endif static u64 notrace tpm_read_sched_clock(void) { return tpm_read_counter(); } +#endif static int tpm_set_next_event(unsigned long delta, struct clock_event_device *evt) |
