[PATCH v2 07/11] riscv: Add asm/linkage.h

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Mar 1 06:01:02 EST 2021


From: Sascha Hauer <s.hauer at pengutronix.de>

Needed to include linux/linkage.h on riscv

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/riscv/include/asm/linkage.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 arch/riscv/include/asm/linkage.h

diff --git a/arch/riscv/include/asm/linkage.h b/arch/riscv/include/asm/linkage.h
new file mode 100644
index 000000000000..9e88ba23cd2b
--- /dev/null
+++ b/arch/riscv/include/asm/linkage.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2015 Regents of the University of California
+ */
+
+#ifndef _ASM_RISCV_LINKAGE_H
+#define _ASM_RISCV_LINKAGE_H
+
+#define __ALIGN		.balign 4
+#define __ALIGN_STR	".balign 4"
+
+#endif /* _ASM_RISCV_LINKAGE_H */
-- 
2.29.2




More information about the barebox mailing list