bcm27xx: add support for linux v5.15
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0332-arch-arm-Add-__memset-alias-to-memset_rpi.S.patch
1 From f6b2421dd93a7eee29b58816cf7d3c1811dab9f9 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 8 Jan 2021 13:37:25 +0000
4 Subject: [PATCH] arch/arm: Add __memset alias to memset_rpi.S
5
6 memset_rpi.S is an optimised memset implementation, but doesn't define
7 __memset (which was just added to memset.S). As a result, building
8 for the BCM2835 platform causes a link failure.
9
10 Add __memset as yet another alias to our common implementation.
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 ---
14 arch/arm/lib/memset_rpi.S | 2 ++
15 1 file changed, 2 insertions(+)
16
17 --- a/arch/arm/lib/memset_rpi.S
18 +++ b/arch/arm/lib/memset_rpi.S
19 @@ -52,6 +52,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBI
20 */
21 ENTRY(mmioset)
22 ENTRY(memset)
23 +ENTRY(__memset)
24 ENTRY(__memset32)
25 ENTRY(__memset64)
26
27 @@ -124,5 +125,6 @@ ENTRY(__memset64)
28 .unreq DAT3
29 ENDPROC(__memset64)
30 ENDPROC(__memset32)
31 +ENDPROC(__memset)
32 ENDPROC(memset)
33 ENDPROC(mmioset)