lib/lz4/lz4armv8: Fix build for Linux 4.14

The lz4armv8 assembly code uses SYM_FUNC_START and SYM_FUNC_END macros,
which are not compatible with Linux kernel version 4.14. To resolve
the build issues, these macros have been replaced with ENTRY and
ENDPROC macros.

Changes:
- Replaced SYM_FUNC_START with ENTRY for function declarations.
- Replaced SYM_FUNC_END with ENDPROC for function endings.
- Updated label definition for 'Failed' to align with the required syntax.

This patch ensures that the lz4armv8 assembly code compiles correctly
with Linux 4.14, maintaining functionality and compatibility.

Signed-off-by: Dark-Matter7232 <me@const.eu.org>
This commit is contained in:
Dark-Matter7232 2024-07-07 13:36:41 +05:30 committed by Richard Raya
parent d02a3f0611
commit a4fd0ee2e2

View File

@ -240,11 +240,11 @@
.text
.p2align 4
SYM_FUNC_START(_lz4_decompress_asm)
ENTRY(_lz4_decompress_asm)
lz4_decompress_asm_generic
SYM_FUNC_END(_lz4_decompress_asm)
ENDPROC(_lz4_decompress_asm)
SYM_INNER_LABEL(Failed, SYM_L_LOCAL)
Failed:
mov tmp, #-1
b Exit_here
@ -302,6 +302,6 @@ Copylength_table:
.text
.p2align 4
SYM_FUNC_START(_lz4_decompress_asm_noprfm)
ENTRY(_lz4_decompress_asm_noprfm)
lz4_decompress_asm_generic 0
SYM_FUNC_END(_lz4_decompress_asm_noprfm)
ENDPROC(_lz4_decompress_asm_noprfm)