[PATCH] afs: fix no return statement in function returning non-void
Linus Torvalds
torvalds at linux-foundation.org
Wed Jun 16 07:34:16 PDT 2021
On Wed, Jun 16, 2021 at 5:56 AM Tom Rix <trix at redhat.com> wrote:
>
> A fix is to use the __noreturn attribute on this function
That's certainly a better thing. It would be better yet to figure out
why BUG() didn't do it automatically.
Without CONFIG_BUG, it looks like powerpc picks up
#ifndef HAVE_ARCH_BUG
#define BUG() do {} while (1)
which should still make it pointless to have the return. But I might
have missed something.
Linus
More information about the linux-afs
mailing list