Re: [PATCH v2] nfs: remove incorrect fallthrough label

From: Nick Desaulniers
Date: Thu Sep 17 2020 - 17:41:55 EST


On Wed, Sep 16, 2020 at 1:19 PM Joe Perches <joe@xxxxxxxxxxx> wrote:
>
> On Wed, 2020-09-16 at 13:02 -0700, Nick Desaulniers wrote:
> > * (call of function with __attribute__(__noreturn__))
>
> I guess panic counts. I count 11 of those.
>
> Are there any other uses of functions with __noreturn
> in switch/case label blocks?

If you look at global_noreturns in tools/objtool/check.c:
145 static const char * const global_noreturns[] = {
146 "__stack_chk_fail",
147 "panic",
148 "do_exit",
149 "do_task_dead",
150 "__module_put_and_exit",
151 "complete_and_exit",
152 "__reiserfs_panic",
153 "lbug_with_loc",
154 "fortify_panic",
155 "usercopy_abort",
156 "machine_real_restart",
157 "rewind_stack_do_exit",
158 "kunit_try_catch_throw",
159 };

Whether they occur or not at the position you ask; I haven't checked.
--
Thanks,
~Nick Desaulniers