bsps: Fix input data type on irq-generic.c/.h

- Constify bsp_interrupt_entry_find()

- bsp_interrupt_entry_find does not modify
the object referenced by arg, it only compares
pointer values against it.

- changed the parameter type from void* to
const void* in both declaration and
definition to make it correct and safer.

Update #4816
This commit is contained in:
Samuel Viegas
2026-04-23 13:38:23 +00:00
committed by Samuel Viegas
parent c5678f549f
commit 3889ed31d4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -703,7 +703,7 @@ rtems_status_code bsp_interrupt_check_and_lock(
rtems_interrupt_entry *bsp_interrupt_entry_find(
rtems_vector_number vector,
rtems_interrupt_handler routine,
void *arg,
const void *arg,
rtems_interrupt_entry ***previous_next
);
+1 -1
View File
@@ -136,7 +136,7 @@ rtems_status_code bsp_interrupt_check_and_lock(
rtems_interrupt_entry *bsp_interrupt_entry_find(
rtems_vector_number vector,
rtems_interrupt_handler routine,
void *arg,
const void *arg,
rtems_interrupt_entry ***previous_next
)
{