The header file <rtems/irq.h> provides a legacy API. Do not provide it by default through <bsp/irq.h>.