This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit b3627bb8c6309c5a0aeb16d50c5f583b2c0ffacd
Author: yanghuatao <[email protected]>
AuthorDate: Tue Apr 23 18:42:30 2024 +0800

    toolchain/ghs: Fix zero used for undefined preprocessing identifier 
"NR_IRQS" warnings
    
    CC:  unistd/lib_setregid.c 
"/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/irq.h", line 53: 
warning #193-D:
              zero used for undefined preprocessing identifier "NR_IRQS"
      #  if NR_IRQS <= 256
            ^
    "/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/irq.h", line 
82: warning #193-D:
              zero used for undefined preprocessing identifier "NR_IRQS"
      #if NR_IRQS <= 256
    CC:  mount/fs_umount2.c 
"/mnt/yang/qixinwei_vela_warnings_04_23/nuttx/include/nuttx/irq.h", line 72: 
warning #193-D:
              zero used for undefined preprocessing identifier "NR_IRQS"
      #if NR_IRQS <= 256
    
    Signed-off-by: yanghuatao <[email protected]>
---
 arch/arm/include/irq.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/irq.h b/arch/arm/include/irq.h
index 137592728c..ccd28abb7a 100644
--- a/arch/arm/include/irq.h
+++ b/arch/arm/include/irq.h
@@ -34,14 +34,22 @@
 #  include <stdbool.h>
 #endif
 
-/* Include NuttX-specific IRQ definitions */
+/****************************************************************************
+ * Public Function Prototypes
+ ****************************************************************************/
 
-#include <nuttx/irq.h>
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
 
 /* Include chip-specific IRQ definitions (including IRQ numbers) */
 
 #include <arch/chip/irq.h>
 
+/* Include NuttX-specific IRQ definitions */
+
+#include <nuttx/irq.h>
+
 /* Include ARM architecture-specific IRQ definitions (including register
  * save structure and up_irq_save()/up_irq_restore() functions)
  */

Reply via email to