[Concept,02/21] linux: Add unaligned.h redirect header

Message ID 20260416165733.2923423-3-sjg@u-boot.org
State New
Headers
Series fs: Add ISO 9660 filesystem driver ported from Linux |

Commit Message

Simon Glass April 16, 2026, 4:56 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

Linux 6.x moved unaligned access helpers from <asm-generic/unaligned.h>
to <linux/unaligned.h>

Add a redirect header so that Linux-ported drivers using the new path
find the existing U-Boot implementation.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/linux/unaligned.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 include/linux/unaligned.h
  

Patch

diff --git a/include/linux/unaligned.h b/include/linux/unaligned.h
new file mode 100644
index 00000000000..1949a7b7a49
--- /dev/null
+++ b/include/linux/unaligned.h
@@ -0,0 +1,11 @@ 
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Linux 6.x moved unaligned access helpers to <linux/unaligned.h>
+ * In U-Boot the implementation lives in <asm-generic/unaligned.h>
+ */
+#ifndef _LINUX_UNALIGNED_H
+#define _LINUX_UNALIGNED_H
+
+#include <asm-generic/unaligned.h>
+
+#endif