treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / include / asm / vdso.h
blob07468428fd2907a6e9453e840da0d95694fcf541
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2012 ARM Limited
4 */
5 #ifndef __ASM_VDSO_H
6 #define __ASM_VDSO_H
8 /*
9 * Default link address for the vDSO.
10 * Since we randomise the VDSO mapping, there's little point in trying
11 * to prelink this.
13 #define VDSO_LBASE 0x0
15 #ifndef __ASSEMBLY__
17 #include <generated/vdso-offsets.h>
18 #ifdef CONFIG_COMPAT_VDSO
19 #include <generated/vdso32-offsets.h>
20 #endif
22 #define VDSO_SYMBOL(base, name) \
23 ({ \
24 (void *)(vdso_offset_##name - VDSO_LBASE + (unsigned long)(base)); \
27 #endif /* !__ASSEMBLY__ */
29 #endif /* __ASM_VDSO_H */