On Wed, 26 Jun 2024, Federico Serafini wrote: > MISRA C Rule 16.3 states that "An unconditional `break' statement shall > terminate every switch-clause". > > Add pseudo keyword fallthrough or missing break statement > to address violations of the rule. > > As a defensive measure, return -EOPNOTSUPP in case an unreachable > return statement is reached. > > Signed-off-by: Federico Serafini <federico.seraf...@bugseng.com>
Aside from the ASSERT_UNREACHABLE which is still under discussion: Reviewed-by: Stefano Stabellini <sstabell...@kernel.org>