diff options
| author | Andy Shevchenko <[email protected]> | 2025-01-16 16:07:45 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-01-23 19:06:35 +0000 |
| commit | 27af31e44949fa85550176520ef7086a0d00fd7b (patch) | |
| tree | f2f86e5a9dbbca1f8c4035799862f39ba92e1bf9 /scripts/generate_rust_target.rs | |
| parent | Merge tag 'audit-pr-20250121' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff) | |
| download | kernel-27af31e44949fa85550176520ef7086a0d00fd7b.tar.gz kernel-27af31e44949fa85550176520ef7086a0d00fd7b.zip | |
hrtimers: Mark is_migration_base() with __always_inline
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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
