]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: apple: rtkit: add missing header linux/bug.h and linux/bitops.h
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 7 Jun 2025 21:11:19 +0000 (23:11 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 14 Jun 2025 15:11:10 +0000 (09:11 -0600)
The GENMASK/GENMASK_ULL macro requires inclusion of linux/bitops.h
header. It does currently work as bitfield.h includes it indirectly
but this will change when bitfield.h will be synced with new Linux
version.

Also raw printf require linux/bug.h header (also currently included
indirectly by bitfield.h)

Explicitly include the headers to fix future compilation error.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
arch/arm/mach-apple/rtkit.c

index f3561543a356020f500dbe6e0996a0dcf7f639f7..251c6056cbde98b3adcdd86183378d17dcec3e6e 100644 (file)
@@ -9,7 +9,9 @@
 
 #include <asm/arch/rtkit.h>
 #include <linux/apple-mailbox.h>
+#include <linux/bug.h>
 #include <linux/bitfield.h>
+#include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/sizes.h>
 #include <linux/types.h>