Re: [PATCH] checkpatch: Print an error if rwlock.h is included directly.

From: Sebastian Andrzej Siewior
Date: Thu Aug 25 2022 - 12:09:48 EST


On 2022-08-16 09:51:18 [+0200], To linux-kernel@xxxxxxxxxxxxxxx wrote:
> rwlock.h shouldn't be included directly in source code. PREEMPT_RT uses
> a different implementation and this rwlock.h include breaks it.
>
> Add an error message if linux/rwlock.h is included.

This can be ignored, I found a more efficient way of doing this.

> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>

Sebastian