Skip to contentSkip to conversation

RISCV:Kernel: Cleanup RISCV Kernel header files

PATCH In review G SatishKumar 2 participants 2 messages Jan 2, 2019 – Jan 9, 2019 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RISCV:Kernel: Cleanup RISCV Kernel header files

This patch cleanup unnecessary haeder files from RISCV kernel files

---
 arch/riscv/kernel/cacheinfo.c | 1 -
 arch/riscv/kernel/cpu.c       | 1 -
 arch/riscv/kernel/irq.c       | 2 --
 3 files changed, 4 deletions(-)
arch/riscv/kernel/cacheinfo.c +0 -1
index cb35ffd..0e710fc 100644
@@ -13,7 +13,6 @@
 
 #include <linux/cacheinfo.h>
 #include <linux/cpu.h>
-#include <linux/of.h>
 #include <linux/of_device.h>
 
 static void ci_leaf_init(struct cacheinfo *this_leaf,
arch/riscv/kernel/cpu.c +0 -1
index b4a7d44..f3f4690 100644
@@ -13,7 +13,6 @@
 
 #include <linux/init.h>
 #include <linux/seq_file.h>
-#include <linux/of.h>
 #include <asm/smp.h>
 
 /*
arch/riscv/kernel/irq.c +0 -2
index 48e6b7d..1d76b60 100644
@@ -7,9 +7,7 @@
 
 #include <linux/interrupt.h>
 #include <linux/irqchip.h>
-#include <linux/irqdomain.h>
 #include <linux/seq_file.h>
-#include <asm/smp.h>
 
 /*
  * Possible interrupt causes:
Signature · 7 lines
2.7.4


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#1 lore raw
Quoted 4 lines · G SatishKumar

This patch cleanup unnecessary haeder files from RISCV kernel files

When applied on top of upstream commit 7b5585136713, the build fails with errors similar to the following:

arch/riscv/kernel/cpu.c: In function 'riscv_of_processor_hartid':
arch/riscv/kernel/cpu.c:27:7: error: implicit declaration of function 'of_device_is_compatible'; did you mean 'file_ns_capable'? [-Werror=implicit-function-declaration]

  if (!of_device_is_compatible(node, "riscv")) {
       ^~~~~~~~~~~~~~~~~~~~~~~
       file_ns_capable
arch/riscv/kernel/cpu.c:32:6: error: implicit declaration of function 
'of_property_read_u32' [-Werror=implicit-function-declaration]
  if (of_property_read_u32(node, "reg", &hart)) {
      ^~~~~~~~~~~~~~~~~~~~

etc.

- Paul

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv