aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.15/950-0332-arch-arm-Add-__memset-alias-to-memset_rpi.S.patch
blob: 2a2798a540ef0c2d62778c20f8bdf90a8222a107 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From f6b2421dd93a7eee29b58816cf7d3c1811dab9f9 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Fri, 8 Jan 2021 13:37:25 +0000
Subject: [PATCH] arch/arm: Add __memset alias to memset_rpi.S

memset_rpi.S is an optimised memset implementation, but doesn't define
__memset (which was just added to memset.S). As a result, building
for the BCM2835 platform causes a link failure.

Add __memset as yet another alias to our common implementation.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
 arch/arm/lib/memset_rpi.S | 2 ++
 1 file changed, 2 insertions(+)

--- a/arch/arm/lib/memset_rpi.S
+++ b/arch/arm/lib/memset_rpi.S
@@ -52,6 +52,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
  */
 ENTRY(mmioset)
 ENTRY(memset)
+ENTRY(__memset)
 ENTRY(__memset32)
 ENTRY(__memset64)
 
@@ -124,5 +125,6 @@ ENTRY(__memset64)
         .unreq  DAT3
 ENDPROC(__memset64)
 ENDPROC(__memset32)
+ENDPROC(__memset)
 ENDPROC(memset)
 ENDPROC(mmioset)