dma-mapping: drop unneeded includes from dma-mapping.h
authorChristoph Hellwig <hch@lst.de>
Sun, 13 Oct 2024 05:19:48 +0000 (07:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Oct 2024 07:54:18 +0000 (08:54 +0100)
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>
arch/powerpc/platforms/pseries/svm.c
include/linux/dma-mapping.h

index 3b4045d508ec844d5c5be1c7bedd49717632b691..384c9dc1899abd34448535bda4e2697cd39132d5 100644 (file)
@@ -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>
index 1524da363734af676054d68698c7bb10373c8f4f..b79925b1c4333ce25e66c57d8ac1dae5c7b7fe37 100644 (file)
@@ -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