--- zzzz-none-000/linux-4.1.52/include/linux/vtime.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/vtime.h 2022-03-02 11:37:13.000000000 +0000 @@ -66,10 +66,10 @@ #else /* !CONFIG_VIRT_CPU_ACCOUNTING */ -static inline void vtime_task_switch(struct task_struct *prev) { } -static inline void vtime_account_system(struct task_struct *tsk) { } -static inline void vtime_account_user(struct task_struct *tsk) { } -static inline void vtime_account_irq_enter(struct task_struct *tsk) { } +static inline void vtime_task_switch(struct task_struct *prev __maybe_unused) { } +static inline void vtime_account_system(struct task_struct *tsk __maybe_unused) { } +static inline void vtime_account_user(struct task_struct *tsk __maybe_unused) { } +static inline void vtime_account_irq_enter(struct task_struct *tsk __maybe_unused) { } #endif /* !CONFIG_VIRT_CPU_ACCOUNTING */ #ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN @@ -97,17 +97,17 @@ /* On hard|softirq exit we always account to hard|softirq cputime */ vtime_account_system(tsk); } -static inline void vtime_user_enter(struct task_struct *tsk) { } -static inline void vtime_user_exit(struct task_struct *tsk) { } -static inline void vtime_guest_enter(struct task_struct *tsk) { } -static inline void vtime_guest_exit(struct task_struct *tsk) { } -static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { } +static inline void vtime_user_enter(struct task_struct *tsk __maybe_unused) { } +static inline void vtime_user_exit(struct task_struct *tsk __maybe_unused) { } +static inline void vtime_guest_enter(struct task_struct *tsk __maybe_unused) { } +static inline void vtime_guest_exit(struct task_struct *tsk __maybe_unused) { } +static inline void vtime_init_idle(struct task_struct *tsk __maybe_unused, int cpu __maybe_unused) { } #endif #ifdef CONFIG_IRQ_TIME_ACCOUNTING extern void irqtime_account_irq(struct task_struct *tsk); #else -static inline void irqtime_account_irq(struct task_struct *tsk) { } +static inline void irqtime_account_irq(struct task_struct *tsk __maybe_unused) { } #endif static inline void account_irq_enter_time(struct task_struct *tsk)