Skip to content

Commit bf127df

Browse files
nathanchancedlezcano
authored andcommitted
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: 10720e1 ("clocksource/drivers/imx-tpm: Exclude sched clock for ARM64") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20220303184212.2356245-1-nathan@kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 8c4b810 commit bf127df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clocksource/timer-imx-tpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ static unsigned long tpm_read_current_timer(void)
7373
{
7474
return tpm_read_counter();
7575
}
76-
#endif
7776

7877
static u64 notrace tpm_read_sched_clock(void)
7978
{
8079
return tpm_read_counter();
8180
}
81+
#endif
8282

8383
static int tpm_set_next_event(unsigned long delta,
8484
struct clock_event_device *evt)

0 commit comments

Comments
 (0)