[PATCH] list: include linux/kernel.h
Tom Rini
trini at konsulko.com
Thu Sep 2 15:51:53 CEST 2021
On Wed, Aug 25, 2021 at 11:58:52AM +0800, Mark-PK Tsai wrote:
> linux/list.h uses container_of, therefore it depends on linux/kernel.h.
> Sync from below linux commit:
>
> commit 8b21d9ca17ff8 ("list: include linux/kernel.h")
>
> Signed-off-by: Mark-PK Tsai <mark-pk.tsai at mediatek.com>
> Cc: YJ Chiang <yj.chiang at mediatek.com>
> ---
> include/linux/list.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/linux/list.h b/include/linux/list.h
> index f62afa092c..5320c04bf3 100644
> --- a/include/linux/list.h
> +++ b/include/linux/list.h
> @@ -3,6 +3,7 @@
>
> #include <linux/stddef.h>
> #include <linux/poison.h>
> +#include <linux/kernel.h>
>
> #ifndef ARCH_HAS_PREFETCH
> #define ARCH_HAS_PREFETCH
This causes sandbox to fail to build.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210902/c806fadd/attachment.sig>
More information about the U-Boot
mailing list