[PATCH] rtems: Include <rtems/score/cpuopts.h>

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Sep 8 06:11:51 UTC 2022


Directly include <rtems/score/cpuopts.h> in header files using CPU build
options.
---
 cpukit/include/rtems/config.h      | 1 +
 cpukit/include/rtems/rtems/intr.h  | 1 +
 cpukit/include/rtems/rtems/types.h | 1 +
 3 files changed, 3 insertions(+)

diff --git a/cpukit/include/rtems/config.h b/cpukit/include/rtems/config.h
index f3c806d494..56d8f2dd46 100644
--- a/cpukit/include/rtems/config.h
+++ b/cpukit/include/rtems/config.h
@@ -61,6 +61,7 @@
 #include <stdint.h>
 #include <rtems/rtems/config.h>
 #include <rtems/score/cpu.h>
+#include <rtems/score/cpuopts.h>
 #include <rtems/score/isr.h>
 #include <rtems/score/memory.h>
 #include <rtems/score/object.h>
diff --git a/cpukit/include/rtems/rtems/intr.h b/cpukit/include/rtems/rtems/intr.h
index 8128ff08af..07c55b27a8 100644
--- a/cpukit/include/rtems/rtems/intr.h
+++ b/cpukit/include/rtems/rtems/intr.h
@@ -67,6 +67,7 @@
 #include <rtems/score/basedefs.h>
 #include <rtems/score/chain.h>
 #include <rtems/score/cpu.h>
+#include <rtems/score/cpuopts.h>
 #include <rtems/score/isr.h>
 #include <rtems/score/isrlevel.h>
 #include <rtems/score/isrlock.h>
diff --git a/cpukit/include/rtems/rtems/types.h b/cpukit/include/rtems/rtems/types.h
index 4779e61b9c..1dd5f8da86 100644
--- a/cpukit/include/rtems/rtems/types.h
+++ b/cpukit/include/rtems/rtems/types.h
@@ -61,6 +61,7 @@
 #include <sys/_timeval.h>
 #include <sys/cpuset.h>
 #include <rtems/rtems/modes.h>
+#include <rtems/score/cpuopts.h>
 #include <rtems/score/mppkt.h>
 #include <rtems/score/object.h>
 #include <rtems/score/watchdogticks.h>
-- 
2.35.3



More information about the devel mailing list