2d362c2cec8a0048748c30ec74f064bb6aef13c0
current variable to currentPos
Compiler gets confused between current variable in lz4.c and the
current macro in current.h.
This fixes the following compilation errors:
../lib/lz4/lz4.c:1145:15: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
1145 | U32 const current = (U32)(forwardIp - base);
| ^
../arch/arm64/include/asm/current.h:24:28: note: expanded from macro 'current'
24 | #define current get_current()
| ^
../lib/lz4/lz4.c:1145:15: error: conflicting types for 'get_current'
../arch/arm64/include/asm/current.h:24:17: note: expanded from macro 'current'
24 | #define current get_current()
| ^
../arch/arm64/include/asm/current.h:15:44: note: previous definition is here
15 | static __always_inline struct task_struct *get_current(void)
| ^
../lib/lz4/lz4.c:1145:15: error: illegal initializer (only variables can be initialized)
1145 | U32 const current = (U32)(forwardIp - base);
| ^
../arch/arm64/include/asm/current.h:24:17: note: expanded from macro 'current'
24 | #define current get_current()
| ^
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: Helium-Studio <67852324+Helium-Studio@users.noreply.github.com>
…
Linux kernel ============ This file was moved to Documentation/admin-guide/README.rst Please notice that there are several guides for kernel developers and users. These guides can be rendered in a number of formats, like HTML and PDF. In order to build the documentation, use ``make htmldocs`` or ``make pdfdocs``. There are various text files in the Documentation/ subdirectory, several of them using the Restructured Text markup notation. See Documentation/00-INDEX for a list of what is contained in each file. Please read the Documentation/process/changes.rst file, as it contains the requirements for building and running the kernel, and information about the problems which may result by upgrading your kernel.
Description
Languages
C
98%
Assembly
1.3%
Makefile
0.3%