diff --git a/drivers/timer/apic_timer.c b/drivers/timer/apic_timer.c index a95670ddc2e..00d646b6974 100644 --- a/drivers/timer/apic_timer.c +++ b/drivers/timer/apic_timer.c @@ -217,6 +217,8 @@ int z_clock_driver_init(struct device *device) { uint32_t val; + ARG_UNUSED(device); + val = x86_read_loapic(LOAPIC_TIMER_CONFIG); /* set divider */ val &= ~DCR_DIVIDER_MASK; val |= DCR_DIVIDER; diff --git a/drivers/timer/cortex_m_systick.c b/drivers/timer/cortex_m_systick.c index cdb3f1e2b3e..544ff835171 100644 --- a/drivers/timer/cortex_m_systick.c +++ b/drivers/timer/cortex_m_systick.c @@ -151,6 +151,8 @@ void z_clock_isr(void *arg) int z_clock_driver_init(struct device *device) { + ARG_UNUSED(device); + NVIC_SetPriority(SysTick_IRQn, _IRQ_PRIO_OFFSET); last_load = CYC_PER_TICK - 1; overflow_cyc = 0U; diff --git a/drivers/timer/hpet.c b/drivers/timer/hpet.c index 1fbf038570a..3d98b177bae 100644 --- a/drivers/timer/hpet.c +++ b/drivers/timer/hpet.c @@ -121,6 +121,8 @@ int z_clock_driver_init(struct device *device) extern int z_clock_hw_cycles_per_sec; uint32_t hz; + ARG_UNUSED(device); + DEVICE_MMIO_TOPLEVEL_MAP(hpet_regs, K_MEM_CACHE_NONE); IRQ_CONNECT(DT_INST_IRQN(0), diff --git a/drivers/timer/riscv_machine_timer.c b/drivers/timer/riscv_machine_timer.c index cd0f10e7360..257d5505132 100644 --- a/drivers/timer/riscv_machine_timer.c +++ b/drivers/timer/riscv_machine_timer.c @@ -81,6 +81,8 @@ static void timer_isr(void *arg) int z_clock_driver_init(struct device *device) { + ARG_UNUSED(device); + IRQ_CONNECT(RISCV_MACHINE_TIMER_IRQ, 0, timer_isr, NULL, 0); last_count = mtime(); set_mtimecmp(last_count + CYC_PER_TICK); diff --git a/drivers/timer/sys_clock_init.c b/drivers/timer/sys_clock_init.c index 63fd51affe0..f903919f5d3 100644 --- a/drivers/timer/sys_clock_init.c +++ b/drivers/timer/sys_clock_init.c @@ -25,6 +25,8 @@ void __weak z_clock_isr(void *arg) int __weak z_clock_driver_init(struct device *device) { + ARG_UNUSED(device); + return 0; } diff --git a/drivers/timer/xtensa_sys_timer.c b/drivers/timer/xtensa_sys_timer.c index 41f52156bab..72b921a1d8a 100644 --- a/drivers/timer/xtensa_sys_timer.c +++ b/drivers/timer/xtensa_sys_timer.c @@ -59,6 +59,8 @@ static void ccompare_isr(void *arg) int z_clock_driver_init(struct device *device) { + ARG_UNUSED(device); + IRQ_CONNECT(TIMER_IRQ, 0, ccompare_isr, 0, 0); set_ccompare(ccount() + CYC_PER_TICK); irq_enable(TIMER_IRQ);