diff options
author | Christoph Hellwig <hch@lst.de> | 2024-10-13 07:19:48 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2024-10-29 08:54:18 +0100 |
commit | be164349e173a8e71cd76f17c7ed720813b8d69b (patch) | |
tree | e69c748fe324347a59996e057532b99da5ca894f | |
parent | 68b6dbf1f441c4eba3b8511728a41cf9b01dca35 (diff) | |
download | lwn-be164349e173a8e71cd76f17c7ed720813b8d69b.tar.gz lwn-be164349e173a8e71cd76f17c7ed720813b8d69b.zip |
dma-mapping: drop unneeded includes from dma-mapping.h
Back in the day a lot of logic was implemented inline in dma-mapping.h and
needed various includes. Move of this has long been moved out of line,
so we can drop various includes to improve kernel rebuild times.
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | arch/powerpc/platforms/pseries/svm.c | 1 | ||||
-rw-r--r-- | include/linux/dma-mapping.h | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/pseries/svm.c b/arch/powerpc/platforms/pseries/svm.c index 3b4045d508ec..384c9dc1899a 100644 --- a/arch/powerpc/platforms/pseries/svm.c +++ b/arch/powerpc/platforms/pseries/svm.c @@ -8,6 +8,7 @@ #include <linux/mm.h> #include <linux/memblock.h> +#include <linux/mem_encrypt.h> #include <linux/cc_platform.h> #include <asm/machdep.h> #include <asm/svm.h> diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 1524da363734..b79925b1c433 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -2,15 +2,11 @@ #ifndef _LINUX_DMA_MAPPING_H #define _LINUX_DMA_MAPPING_H -#include <linux/cache.h> -#include <linux/sizes.h> -#include <linux/string.h> #include <linux/device.h> #include <linux/err.h> #include <linux/dma-direction.h> #include <linux/scatterlist.h> #include <linux/bug.h> -#include <linux/mem_encrypt.h> /** * List of possible attributes associated with a DMA mapping. The semantics |