[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z5JUoM70IVkkxo3i@smile.fi.intel.com>
Date: Thu, 23 Jan 2025 16:39:28 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: linux-kernel@...r.kernel.org
Cc: linux-tip-commits@...r.kernel.org, Thomas Gleixner <tglx@...utronix.de>,
x86@...nel.org
Subject: Re: [tip: timers/urgent] hrtimers: Mark is_migration_base() with
__always_inline
On Thu, Jan 23, 2025 at 10:57:32AM -0000, tip-bot2 for Andy Shevchenko wrote:
> The following commit has been merged into the timers/urgent branch of tip:
>
> Commit-ID: 3ff6e36be060f0a8870f76155e14de128058b964
> Gitweb: https://git.kernel.org/tip/3ff6e36be060f0a8870f76155e14de128058b964
> Author: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> AuthorDate: Thu, 16 Jan 2025 18:07:45 +02:00
> Committer: Thomas Gleixner <tglx@...utronix.de>
> CommitterDate: Thu, 23 Jan 2025 11:47:23 +01:00
>
> 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 ]
Thanks, but it doesn't fix the problem:
kernel/time/hrtimer.c:156:29: error: unused function 'is_migration_base' [-Werror,-Wunused-function]
156 | static __always_inline bool is_migration_base(struct hrtimer_clock_base *base)
| ^~~~~~~~~~~~~~~~~
1 error generated.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists