linux-yocto/kernel/time
Andy Shevchenko 5ae6c711ee hrtimers: Mark is_migration_base() with __always_inline
[ Upstream commit 27af31e449 ]

When is_migration_base() is unused, it prevents kernel builds
with clang, `make W=1` and CONFIG_WERROR=y:

kernel/time/hrtimer.c:156:20: error: unused function 'is_migration_base' [-Werror,-Wunused-function]
  156 | static inline bool is_migration_base(struct hrtimer_clock_base *base)
      |                    ^~~~~~~~~~~~~~~~~

Fix this by marking it with __always_inline.

[ tglx: Use __always_inline instead of __maybe_unused and move it into the
  	usage sites conditional ]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250116160745.243358-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:30:49 +02:00
..
alarmtimer.c
clockevents.c
clocksource.c clocksource: Use migrate_disable() to avoid calling get_random_u32() in atomic context 2025-03-13 12:47:20 +01:00
hrtimer.c hrtimers: Mark is_migration_base() with __always_inline 2025-04-10 14:30:49 +02:00
itimer.c
jiffies.c
Kconfig
Makefile
namespace.c
ntp_internal.h
ntp.c ntp: Safeguard against time_constant overflow 2024-08-19 05:41:18 +02:00
posix-clock.c posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime() 2024-11-08 16:21:59 +01:00
posix-cpu-timers.c
posix-stubs.c
posix-timers.c
posix-timers.h
sched_clock.c
test_udelay.c
tick-broadcast-hrtimer.c
tick-broadcast.c tick/broadcast: Move per CPU pointer access into the atomic section 2024-08-19 05:41:18 +02:00
tick-common.c tick/nohz_full: Don't abuse smp_call_function_single() in tick_setup_device() 2024-07-05 09:12:32 +02:00
tick-internal.h
tick-oneshot.c
tick-sched.c tick/sched: Preserve number of idle sleeps across CPU hotplug events 2024-02-23 08:42:01 +01:00
tick-sched.h tick: Detect and fix jiffies update stall 2023-08-30 16:23:17 +02:00
time.c time: Fix references to _msecs_to_jiffies() handling of values 2024-12-14 19:47:45 +01:00
timeconst.bc
timeconv.c
timecounter.c
timekeeping_debug.c
timekeeping_internal.h
timekeeping.c timekeeping: Fix cross-timestamp interpolation for non-x86 2024-03-26 18:21:48 -04:00
timekeeping.h
timer_list.c
timer.c timers: Rename del_timer_sync() to timer_delete_sync() 2024-04-13 12:57:58 +02:00
vsyscall.c