ARM: amba: Make driver_override output consistent with other buses
[linux/fpc-iii.git] / arch / powerpc / include / asm / ima.h
blobead488cf3981eafd6f59d26fe53e9ab26be1a70e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_IMA_H
3 #define _ASM_POWERPC_IMA_H
5 struct kimage;
7 int ima_get_kexec_buffer(void **addr, size_t *size);
8 int ima_free_kexec_buffer(void);
10 #ifdef CONFIG_IMA
11 void remove_ima_buffer(void *fdt, int chosen_node);
12 #else
13 static inline void remove_ima_buffer(void *fdt, int chosen_node) {}
14 #endif
16 #ifdef CONFIG_IMA_KEXEC
17 int arch_ima_add_kexec_buffer(struct kimage *image, unsigned long load_addr,
18 size_t size);
20 int setup_ima_buffer(const struct kimage *image, void *fdt, int chosen_node);
21 #else
22 static inline int setup_ima_buffer(const struct kimage *image, void *fdt,
23 int chosen_node)
25 remove_ima_buffer(fdt, chosen_node);
26 return 0;
28 #endif /* CONFIG_IMA_KEXEC */
30 #endif /* _ASM_POWERPC_IMA_H */