1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_ARM64_CFI_H 3 #define _ASM_ARM64_CFI_H 4 5 #ifdef CONFIG_CFI_CLANG 6 #define __bpfcall cfi_get_offset(void)7static inline int cfi_get_offset(void) 8 { 9 return 4; 10 } 11 #define cfi_get_offset cfi_get_offset 12 extern u32 cfi_bpf_hash; 13 extern u32 cfi_bpf_subprog_hash; 14 extern u32 cfi_get_func_hash(void *func); 15 #else 16 #define cfi_bpf_hash 0U 17 #define cfi_bpf_subprog_hash 0U cfi_get_func_hash(void * func)18static inline u32 cfi_get_func_hash(void *func) 19 { 20 return 0; 21 } 22 #endif /* CONFIG_CFI_CLANG */ 23 #endif /* _ASM_ARM64_CFI_H */ 24