On 16/12/2025 09:22, Dmytro Prokopchuk1 wrote: > MISRA C Rule 2.1 states: "A project shall not contain unreachable code." > The GIC LPI driver callbacks violate this due to the use of the BUG() > macro, which causes the function to never return. > > Swap BUG() for ASSERT_UNREACHABLE() to satisfy the rule without needing > an additional deviation. > > Signed-off-by: Dmytro Prokopchuk <[email protected]> Reviewed-by: Michal Orzel <[email protected]> ~Michal
- [PATCH v2] gic: Replace BUG() with ASSERT_UNREACHABLE()... Dmytro Prokopchuk1
- Re: [PATCH v2] gic: Replace BUG() with ASSERT_UNRE... Orzel, Michal
