Re: [PATCH] btrfs: don't include '<linux/rwlock_types.h>' directly
From: Wolfram Sang
Date: Thu Dec 19 2024 - 06:27:56 EST
Hi,
> > -#include <linux/rwlock_types.h>
> > +#include <linux/spinlock_types.h>
>
> I think we can just remove the *_type.h include header completely.
I agree, spinlock.h is enough.
> For non-RT build, spinlock.h will include linux/rwlock.h, and
> spinlock_types.h unconditionally.
Yet, isn't it always included unconditionally?
spinlock.h -> spinlock_types.h -> rwlock_types.h
I don't see any conditionals there.
Thanks for the review and happy hacking,
Wolfram
Attachment:
signature.asc
Description: PGP signature