Skip to content

Commit 1ae7ae8

Browse files
stephanosioandrewboie
authored andcommitted
arch_interface: Remove duplicate irq_offload_routine_t typedef.
This commit removes duplicate 'irq_offload_routine_t' typedef declaration in sys/arch_interface.h. This typedef is provided by irq_offload.h and, since this header file is included at the top of sys/arch_interface.h, it is guaranteed to be defined for arch_irq_offload definition. While this does not cause a compilation error when compiling with GCC 4.6 and above, GCC 4.5 and below strictly enforce the C99 standard and do not allow redeclaration of the same typedef in the same scope. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent fdf809d commit 1ae7ae8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/sys/arch_interface.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@ int arch_irq_connect_dynamic(unsigned int irq, unsigned int priority,
301301
*/
302302

303303
#ifdef CONFIG_IRQ_OFFLOAD
304-
typedef void (*irq_offload_routine_t)(void *parameter);
305-
306304
/**
307305
* Run a function in interrupt context.
308306
*

0 commit comments

Comments
 (0)