From 3be4478f5a118bd55e0426c0d36f75b1db335ceb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 26 Jun 2018 07:13:28 +0200 Subject: riscv: Avoid namespace pollution Remove include from (which is visible via for example). Update #3433. --- bsps/riscv/riscv/clock/clockdrv.c | 1 + cpukit/score/cpu/riscv/cpu.c | 5 ++--- cpukit/score/cpu/riscv/include/rtems/score/cpu.h | 8 +------- cpukit/score/cpu/riscv/riscv-context-switch.S | 1 + 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/bsps/riscv/riscv/clock/clockdrv.c b/bsps/riscv/riscv/clock/clockdrv.c index 8be203757c..6a5d2dbfcd 100644 --- a/bsps/riscv/riscv/clock/clockdrv.c +++ b/bsps/riscv/riscv/clock/clockdrv.c @@ -33,6 +33,7 @@ */ #include +#include #include #include diff --git a/cpukit/score/cpu/riscv/cpu.c b/cpukit/score/cpu/riscv/cpu.c index 7c14a8bffd..deae25d34f 100644 --- a/cpukit/score/cpu/riscv/cpu.c +++ b/cpukit/score/cpu/riscv/cpu.c @@ -29,10 +29,9 @@ * SUCH DAMAGE. */ -#include -#include -#include #include +#include +#include /* bsp_start_vector_table_begin is the start address of the vector table * containing addresses to ISR Handlers. It's defined at the BSP linkcmds diff --git a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h index 15a75c8af3..30adbbca38 100644 --- a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h @@ -40,13 +40,7 @@ extern "C" { #endif #include -#include /* pick up machine definitions */ -#include -#ifndef ASM -#include -#include -#include /* for printk */ -#endif +#include #define RISCV_MSTATUS_MIE 0x8 diff --git a/cpukit/score/cpu/riscv/riscv-context-switch.S b/cpukit/score/cpu/riscv/riscv-context-switch.S index 705cd77175..b5e43522c7 100644 --- a/cpukit/score/cpu/riscv/riscv-context-switch.S +++ b/cpukit/score/cpu/riscv/riscv-context-switch.S @@ -32,6 +32,7 @@ #include #include +#include .section .text, "ax", @progbits .align 2 -- cgit v1.2.3