[PATCH 1/2] bsps: Remove unused includes

Kinsey Moore kinsey.moore at oarcorp.com
Fri Oct 13 03:16:31 UTC 2023


---
 bsps/aarch64/shared/cache/cache.c          | 1 -
 bsps/shared/dev/i2c/cadence-i2c.c          | 1 -
 bsps/shared/irq/irq-generic.c              | 3 ---
 bsps/shared/start/bspgetworkarea-default.c | 1 -
 4 files changed, 6 deletions(-)

diff --git a/bsps/aarch64/shared/cache/cache.c b/bsps/aarch64/shared/cache/cache.c
index 4d299bf665..d6e0930038 100644
--- a/bsps/aarch64/shared/cache/cache.c
+++ b/bsps/aarch64/shared/cache/cache.c
@@ -36,7 +36,6 @@
 
 #include <rtems.h>
 #include <bsp.h>
-#include <bsp/utility.h>
 #include <rtems/score/aarch64-system-registers.h>
 
 #define CPU_DATA_CACHE_ALIGNMENT 64
diff --git a/bsps/shared/dev/i2c/cadence-i2c.c b/bsps/shared/dev/i2c/cadence-i2c.c
index 6704288a79..67dec0da46 100644
--- a/bsps/shared/dev/i2c/cadence-i2c.c
+++ b/bsps/shared/dev/i2c/cadence-i2c.c
@@ -28,7 +28,6 @@
 #include <dev/i2c/cadence-i2c.h>
 #include <dev/i2c/cadence-i2c-regs.h>
 
-#include <rtems/irq-extension.h>
 #include <rtems/score/assert.h>
 
 #include <dev/i2c/i2c.h>
diff --git a/bsps/shared/irq/irq-generic.c b/bsps/shared/irq/irq-generic.c
index e2997da623..b6238025b7 100644
--- a/bsps/shared/irq/irq-generic.c
+++ b/bsps/shared/irq/irq-generic.c
@@ -35,9 +35,6 @@
  */
 
 #include <bsp/irq-generic.h>
-#include <bsp/fatal.h>
-
-#include <stdlib.h>
 
 #include <rtems/malloc.h>
 
diff --git a/bsps/shared/start/bspgetworkarea-default.c b/bsps/shared/start/bspgetworkarea-default.c
index 7080aa6053..5f956b124f 100644
--- a/bsps/shared/start/bspgetworkarea-default.c
+++ b/bsps/shared/start/bspgetworkarea-default.c
@@ -39,7 +39,6 @@
  */
 
 #include <bsp.h>
-#include <bsp/bootcard.h>
 
 #if defined(HAS_UBOOT) && !defined(BSP_DISABLE_UBOOT_WORK_AREA_CONFIG)
   #define USE_UBOOT
-- 
2.39.2



More information about the devel mailing list