treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / kernel / image-vars.h
blob25a2a9b479c2f052174f9af5b26bb213ff35fac0
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Linker script variables to be set after section resolution, as
4 * ld.lld does not like variables assigned before SECTIONS is processed.
5 */
6 #ifndef __ARM64_KERNEL_IMAGE_VARS_H
7 #define __ARM64_KERNEL_IMAGE_VARS_H
9 #ifndef LINKER_SCRIPT
10 #error This file should only be included in vmlinux.lds.S
11 #endif
13 #ifdef CONFIG_EFI
15 __efistub_stext_offset = stext - _text;
18 * The EFI stub has its own symbol namespace prefixed by __efistub_, to
19 * isolate it from the kernel proper. The following symbols are legally
20 * accessed by the stub, so provide some aliases to make them accessible.
21 * Only include data symbols here, or text symbols of functions that are
22 * guaranteed to be safe when executed at another offset than they were
23 * linked at. The routines below are all implemented in assembler in a
24 * position independent manner
26 __efistub_memcmp = __pi_memcmp;
27 __efistub_memchr = __pi_memchr;
28 __efistub_memcpy = __pi_memcpy;
29 __efistub_memmove = __pi_memmove;
30 __efistub_memset = __pi_memset;
31 __efistub_strlen = __pi_strlen;
32 __efistub_strnlen = __pi_strnlen;
33 __efistub_strcmp = __pi_strcmp;
34 __efistub_strncmp = __pi_strncmp;
35 __efistub_strrchr = __pi_strrchr;
36 __efistub___flush_dcache_area = __pi___flush_dcache_area;
38 #ifdef CONFIG_KASAN
39 __efistub___memcpy = __pi_memcpy;
40 __efistub___memmove = __pi_memmove;
41 __efistub___memset = __pi_memset;
42 #endif
44 __efistub__text = _text;
45 __efistub__end = _end;
46 __efistub__edata = _edata;
47 __efistub_screen_info = screen_info;
49 #endif
51 #endif /* __ARM64_KERNEL_IMAGE_VARS_H */