Re: [PATCH] gpio: Do not include <linux/kernel.h> when not really needed.

From: Linus Walleij
Date: Sun Nov 27 2022 - 17:07:55 EST


On Sun, Nov 27, 2022 at 10:52 PM Christophe JAILLET
<christophe.jaillet@xxxxxxxxxx> wrote:

> <linux/kernel.h> is included only for using container_of().
> Include <linux/container_of.h> instead, it is much lighter.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

This is fine.
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

As Andy split out the container_of header file a year ago or
so he certainly want to ACK this too.

Yours,
Linus Walleij