[PATCH] powerpc/pseries/svm: Make mem_encrypt.h self contained

Jason Gunthorpe jgg at nvidia.com
Fri Nov 21 03:40:53 AEDT 2025


On Thu, Nov 20, 2025 at 04:09:14PM +0100, Christophe Leroy wrote:
> > 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:

> > +
> > +struct device;
> >   static inline bool force_dma_unencrypted(struct device *dev)
                   ^^^^^^

Jason


More information about the Linuxppc-dev mailing list