Skip to content

Conversation

@stephanosio
Copy link
Member

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]

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]>
@stephanosio
Copy link
Member Author

Similar to the issue #20605.

@stephanosio stephanosio added the area: Portability Standard compliant code, toolchain abstraction label Nov 12, 2019
@zephyrbot zephyrbot added the area: API Changes to public APIs label Nov 12, 2019
@ioannisg ioannisg requested a review from andrewboie November 12, 2019 13:25
Copy link
Member

@ioannisg ioannisg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me - I think we can still merge this during freeze period - it's cleanup.

@andrewboie andrewboie merged commit 1ae7ae8 into zephyrproject-rtos:master Nov 12, 2019
@stephanosio stephanosio deleted the fix_compat_irq_offload_routine_t_dup branch November 12, 2019 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: Portability Standard compliant code, toolchain abstraction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants