diff mbox series

[5/8] headers: Add linux/align.h file

Message ID 20240707225646.1924882-5-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series [1/8] defconfig: Add new Mediatek and Realtek drivers | expand

Commit Message

Hauke Mehrtens July 7, 2024, 10:56 p.m. UTC
The linux/align.h file was extracted from the linux/bitmap.h file.
The new WFX driver is using this header file.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 backport/backport-include/linux/align.h | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 backport/backport-include/linux/align.h
diff mbox series

Patch

diff --git a/backport/backport-include/linux/align.h b/backport/backport-include/linux/align.h
new file mode 100644
index 00000000..5cf9f351
--- /dev/null
+++ b/backport/backport-include/linux/align.h
@@ -0,0 +1,7 @@ 
+#include <linux/version.h>
+
+#if LINUX_VERSION_IS_GEQ(5,13,0)
+#include_next <linux/align.h>
+#else
+#include <linux/bitmap.h>
+#endif