habanalabs: remove implicit include from header files
authorDotan Barak <dbarak@habana.ai>
Wed, 27 Feb 2019 07:55:57 +0000 (09:55 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 27 Feb 2019 07:55:57 +0000 (09:55 +0200)
This will prevent unneeded include of header files, which may increase
compilation time.

Signed-off-by: Dotan Barak <dbarak@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya_security.c
drivers/misc/habanalabs/include/goya/goya.h

index 57500323840132241d20f613b2e6f474a3634c82..9d2dee67e46fac38c0dbc3f5225c4ded25f34603 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "goyaP.h"
+#include "include/goya/asic_reg/goya_regs.h"
 
 /*
  * goya_set_block_as_protected - set the given block as protected
index 614149efa41200b1ef3a0fd539c2e87258d7cac6..3f02a52ba4ce9847c6b4f94141314c26f6e7896d 100644 (file)
@@ -8,10 +8,6 @@
 #ifndef GOYA_H
 #define GOYA_H
 
-#include "asic_reg/goya_regs.h"
-
-#include <linux/types.h>
-
 #define SRAM_CFG_BAR_ID                0
 #define MSIX_BAR_ID            2
 #define DDR_BAR_ID             4