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 5750032..9d2dee6 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 614149e..3f02a52 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