From f933b1644e9924bf2c83bc45dcdd1236b8f712dc Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Wed, 23 Oct 2024 20:46:14 +0800 Subject: [PATCH] boards/risc-v: Remove ref to riscv_internal.h `riscv_internal.h` is a private chip level header file, and it should not be included in the board files. Signed-off-by: Huang Qi --- .../esp32c3-legacy/esp32c3-devkit-rust-1/src/esp32c3_boot.c | 2 -- boards/risc-v/esp32c3-legacy/esp32c3-devkit/src/esp32c3_boot.c | 2 -- boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_boot.c | 2 -- boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_boot.c | 1 - boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_boot.c | 1 - boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_boot.c | 2 -- boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c | 1 - 7 files changed, 11 deletions(-) diff --git a/boards/risc-v/esp32c3-legacy/esp32c3-devkit-rust-1/src/esp32c3_boot.c b/boards/risc-v/esp32c3-legacy/esp32c3-devkit-rust-1/src/esp32c3_boot.c index 33c8a5d4505..6ab7c136f9d 100644 --- a/boards/risc-v/esp32c3-legacy/esp32c3-devkit-rust-1/src/esp32c3_boot.c +++ b/boards/risc-v/esp32c3-legacy/esp32c3-devkit-rust-1/src/esp32c3_boot.c @@ -25,8 +25,6 @@ #include #include -#include "riscv_internal.h" - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ diff --git a/boards/risc-v/esp32c3-legacy/esp32c3-devkit/src/esp32c3_boot.c b/boards/risc-v/esp32c3-legacy/esp32c3-devkit/src/esp32c3_boot.c index ccf2a843978..4605b870c76 100644 --- a/boards/risc-v/esp32c3-legacy/esp32c3-devkit/src/esp32c3_boot.c +++ b/boards/risc-v/esp32c3-legacy/esp32c3-devkit/src/esp32c3_boot.c @@ -24,8 +24,6 @@ #include -#include "riscv_internal.h" - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ diff --git a/boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_boot.c b/boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_boot.c index c133d101a31..1be97a68192 100644 --- a/boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_boot.c +++ b/boards/risc-v/esp32c3/esp32c3-generic/src/esp32c3_boot.c @@ -24,8 +24,6 @@ #include -#include "riscv_internal.h" - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ diff --git a/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_boot.c b/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_boot.c index 60d4022f4e7..0d4b0287da4 100644 --- a/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_boot.c +++ b/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_boot.c @@ -24,7 +24,6 @@ #include -#include "riscv_internal.h" #include "esp32c6-devkitc.h" /**************************************************************************** diff --git a/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_boot.c b/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_boot.c index da643c634c7..d4071137fe6 100644 --- a/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_boot.c +++ b/boards/risc-v/esp32c6/esp32c6-devkitm/src/esp32c6_boot.c @@ -24,7 +24,6 @@ #include -#include "riscv_internal.h" #include "esp32c6-devkitm.h" /**************************************************************************** diff --git a/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_boot.c b/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_boot.c index fa1c5bae282..d0cf03142cf 100644 --- a/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_boot.c +++ b/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_boot.c @@ -24,8 +24,6 @@ #include -#include "riscv_internal.h" - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ diff --git a/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c b/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c index 786a08d7715..e94fde9005d 100644 --- a/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c +++ b/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c @@ -40,7 +40,6 @@ #include "qemu_rv_memorymap.h" #include "qemu_rv_rptun.h" -#include "riscv_internal.h" #include "riscv_sbi.h" #include "romfs.h"