Re: [PATCH] powerpc/pseries/svm: Make mem_encrypt.h self contained
From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-11-20 19:34:13
Also in:
linux-patches
From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-11-20 19:34:13
Also in:
linux-patches
On Thu, Nov 20, 2025 at 04:09:14PM +0100, Christophe Leroy wrote:
quoted
diff --git a/arch/powerpc/include/asm/mem_encrypt.h b/arch/powerpc/include/asm/mem_encrypt.h index 2f26b8fc8d297c..e355ca46fad933 100644 --- a/arch/powerpc/include/asm/mem_encrypt.h +++ b/arch/powerpc/include/asm/mem_encrypt.h@@ -9,6 +9,9 @@ #define _ASM_POWERPC_MEM_ENCRYPT_H #include <asm/svm.h> +#include <linux/types.h>Why do you need linux/types.h ? Isn't the below forward declaration enough ?
For bool:
quoted
+ +struct device; static inline bool force_dma_unencrypted(struct device *dev)
^^^^^^ Jason