treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / mem_encrypt.h
blobba9dab07c1bed492ff22f6973d47552131f3710f
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * SVM helper functions
5 * Copyright 2018 IBM Corporation
6 */
8 #ifndef _ASM_POWERPC_MEM_ENCRYPT_H
9 #define _ASM_POWERPC_MEM_ENCRYPT_H
11 #include <asm/svm.h>
13 static inline bool mem_encrypt_active(void)
15 return is_secure_guest();
18 static inline bool force_dma_unencrypted(struct device *dev)
20 return is_secure_guest();
23 int set_memory_encrypted(unsigned long addr, int numpages);
24 int set_memory_decrypted(unsigned long addr, int numpages);
26 #endif /* _ASM_POWERPC_MEM_ENCRYPT_H */