summaryrefslogtreecommitdiff
path: root/ports/linux/gnu/src
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-09-15 23:08:23 -0400
committerGitHub <[email protected]>2026-09-15 23:08:23 -0400
commit26e4aa182c600f77409db1e1a24d45bc5b48560a (patch)
treef9eb9cb027748518661bad276820a76bf5507122 /ports/linux/gnu/src
parent9e4c57138dfa004cd512b60259c1c5047a8b3dd1 (diff)
Fixed the build of tx_misra.c with MISRA and event trace enabled (#746)
tx_misra.c defines five pointer conversions for the trace component, and their prototypes sit in tx_trace.h behind TX_SOURCE_CODE. tx_misra.c is the one kernel source that does not define that macro, so it defines all five with no previous declaration. Under -Wmissing-declarations -Werror, which the kernel target is built with, the file does not compile at all, so TX_MISRA_ENABLE and TX_ENABLE_EVENT_TRACE cannot be enabled together. No build configuration defines both, which is why this has never surfaced. The five prototypes move out of the TX_SOURCE_CODE guard into their own block, next to where tx_api.h already declares _tx_misra_trace_event_insert - the sixth function of the same region, which escapes the problem for exactly that reason. Declarations only; no definition moves and no macro changes meaning. All 185 files in common/src now compile clean under all four combinations of the two macros with -Wall -Wextra -Wmissing-declarations -Werror, against five errors in tx_misra.c for the both-enabled case before. Object code is byte identical for the three combinations that already built: 0 of 185 files differ in each. Assisted-by: Claude Code (Opus 5) <[email protected]>
Diffstat (limited to 'ports/linux/gnu/src')
0 files changed, 0 insertions, 0 deletions