Re: [PATCH 1/3] cfq-iosched: Mark cfq_clear_cfqq_*() as __maybe_unused

From: Christoph Hellwig
Date: Sun May 28 2017 - 03:50:08 EST


On Fri, May 26, 2017 at 02:22:35PM -0700, Matthias Kaehlcke wrote:
> This fixes the following warning when building with clang:
>
> block/cfq-iosched.c:449:1: error: unused function 'cfq_clear_cfqq_sync'
> [-Werror,-Wunused-function]
>
> Signed-off-by: Matthias Kaehlcke <mka@xxxxxxxxxxxx>

Matthias, can you please stop sending these patches? Gcc semantics
correctly are that static inlines can be unused and it's perfectly
fine. It's your job to make clang fit that instead of spreading garbage
all over the kernel.