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 <yanghuatao@xiaomi.com>
This commit is contained in:
yanghuatao 2024-04-23 18:42:30 +08:00 committed by archer
parent b2a739a67a
commit b3627bb8c6
1 changed files with 10 additions and 2 deletions

View File

@ -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)
*/