diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-02-28 15:38:41 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-02-29 19:41:29 +0300 |
commit | a184d9835a0a689261ea6a4a8dbc18173a031b77 (patch) | |
tree | 4657f121873e3b21eee07963361d361550108776 /fs/sysv/inode.c | |
parent | 8b3843ae3634b472530fb69c3861de0b70a5e6bf (diff) | |
download | linux-a184d9835a0a689261ea6a4a8dbc18173a031b77.tar.xz |
tick/sched: Fix build failure for CONFIG_NO_HZ_COMMON=n
In configurations with CONFIG_TICK_ONESHOT but no CONFIG_NO_HZ or
CONFIG_HIGH_RES_TIMERS, tick_sched_timer_dying() is stubbed out,
but still defined as a global function as well:
kernel/time/tick-sched.c:1599:6: error: redefinition of 'tick_sched_timer_dying'
1599 | void tick_sched_timer_dying(int cpu)
| ^
kernel/time/tick-sched.h:111:20: note: previous definition is here
111 | static inline void tick_sched_timer_dying(int cpu) { }
| ^
This configuration only appears with ARM CONFIG_ARCH_BCM_MOBILE,
which should not actually select CONFIG_TICK_ONESHOT.
Adjust the #ifdef for the stub to match the condition for building the
tick-sched.c file for consistency with the definition and to avoid
the build regression.
Fixes: 3aedb7fcd88a ("tick/sched: Remove useless oneshot ifdeffery")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240228123850.3499024-1-arnd@kernel.org
Diffstat (limited to 'fs/sysv/inode.c')
0 files changed, 0 insertions, 0 deletions