Linux 4.13.16
[linux/fpc-iii.git] / arch / powerpc / include / asm / ima.h
blob2313bdface346070a31c49e2d27eb91e702670a8
1 #ifndef _ASM_POWERPC_IMA_H
2 #define _ASM_POWERPC_IMA_H
4 struct kimage;
6 int ima_get_kexec_buffer(void **addr, size_t *size);
7 int ima_free_kexec_buffer(void);
9 #ifdef CONFIG_IMA
10 void remove_ima_buffer(void *fdt, int chosen_node);
11 #else
12 static inline void remove_ima_buffer(void *fdt, int chosen_node) {}
13 #endif
15 #ifdef CONFIG_IMA_KEXEC
16 int arch_ima_add_kexec_buffer(struct kimage *image, unsigned long load_addr,
17 size_t size);
19 int setup_ima_buffer(const struct kimage *image, void *fdt, int chosen_node);
20 #else
21 static inline int setup_ima_buffer(const struct kimage *image, void *fdt,
22 int chosen_node)
24 remove_ima_buffer(fdt, chosen_node);
25 return 0;
27 #endif /* CONFIG_IMA_KEXEC */
29 #endif /* _ASM_POWERPC_IMA_H */