summaryrefslogtreecommitdiffstats
path: root/include/target/target_core_base.h
diff options
context:
space:
mode:
authorBart Van Assche2016-11-15 00:47:14 +0100
committerBart Van Assche2016-12-09 19:22:28 +0100
commit8dcf07be2d0bcbfcebc49b9451a4feaf83e3428b (patch)
treea02df7bcdab36e16170b06c950dedb407a10d179 /include/target/target_core_base.h
parenttarget/user: Add an #include directive (diff)
downloadkernel-qcow2-linux-8dcf07be2d0bcbfcebc49b9451a4feaf83e3428b.tar.gz
kernel-qcow2-linux-8dcf07be2d0bcbfcebc49b9451a4feaf83e3428b.tar.xz
kernel-qcow2-linux-8dcf07be2d0bcbfcebc49b9451a4feaf83e3428b.zip
target: Minimize #include directives
Remove superfluous #include directives from the include/target/*.h files. Add missing #include directives to other *.h and *.c files. Use forward declarations for structures where possible. This change reduces the build time for make M=drivers/target on my laptop from 27.1s to 18.7s or by about 30%. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Diffstat (limited to 'include/target/target_core_base.h')
-rw-r--r--include/target/target_core_base.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index c2119008990a..ca8ec7218f39 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -1,14 +1,10 @@
#ifndef TARGET_CORE_BASE_H
#define TARGET_CORE_BASE_H
-#include <linux/in.h>
-#include <linux/configfs.h>
-#include <linux/dma-mapping.h>
-#include <linux/blkdev.h>
-#include <linux/percpu_ida.h>
-#include <linux/t10-pi.h>
-#include <net/sock.h>
-#include <net/tcp.h>
+#include <linux/configfs.h> /* struct config_group */
+#include <linux/dma-direction.h> /* enum dma_data_direction */
+#include <linux/percpu_ida.h> /* struct percpu_ida */
+#include <linux/semaphore.h> /* struct semaphore */
#define TARGET_CORE_VERSION "v5.0"