RTEMS | Remove machine/_kernel_types.h (#5279)
Chris Johns (@chris)
gitlab at rtems.org
Tue Jun 24 00:47:44 UTC 2025
Chris Johns created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5279
Assignee: Joel Sherrill
## Summary
This repo contains and installs the header file `machine/_kernel_types.h` however the kernel does not reference the header. It is referenced by [newlib/libc/sys/rtems/include/machine/types.h](https://gitlab.rtems.org/contrib/newlib-cygwin/-/blob/main/newlib/libc/sys/rtems/include/machine/types.h?ref_type=heads#L93) if `_KERNEL` is defined and it assumes a package needing these types has installed a suitable copy.
This file is only referenced by code that defines `_KERNEL` and currently this is the networking stacks. LibBSD installs a version specific to the version being built and installed. We cannot assume the kernel types in this repo match current or future versions of LibBSD or any other networking stack and it breaks now we support different versions of LibBSD. It is not realistic to try and get a common version in this repo to align to all current versions we support.
There is a danger a user may build RTEMS and install it and then build a package that assumes a network stack is installed when it is not. Removing this header and requiring a networking stack to install a version would enforce correct software stack building happens and the types of the installed software match.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5279
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250624/be49994b/attachment.htm>
More information about the bugs
mailing list