openwrt/target/linux/bcm27xx/patches-6.1/950-0694-fixup-Export-optimised-__memcpy.patch
Álvaro Fernández Rojas 793f8ab62c bcm27xx: 6.1: add kernel patches
Add kernel patches for version 6.1.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-06-09 19:12:30 +02:00

28 lines
787 B
Diff

From b8b90753b5c70bfe57c460305e30992e027d0d7a Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 11 Apr 2023 08:55:49 +0100
Subject: [PATCH] fixup! Export optimised __memcpy
Sinc [1] uaccess_with_memcpy.c uses __memcpy instead of memcpy. Make
the optimised memcpy available as __memcpy as well to avoid linkage
failures.
[1] ceac10c83b33 ("ARM: 9290/1: uaccess: Fix KASAN false-positives")
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
arch/arm/lib/memcpy_rpi.S | 2 ++
1 file changed, 2 insertions(+)
--- a/arch/arm/lib/memcpy_rpi.S
+++ b/arch/arm/lib/memcpy_rpi.S
@@ -58,6 +58,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
ENTRY(mmiocpy)
ENTRY(memcpy)
+ENTRY(__memcpy)
memcpy 0
+ENDPROC(__memcpy)
ENDPROC(memcpy)
ENDPROC(mmiocpy)