Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH] afs: fix no return statement in function returning non-void | Date | Wed, 16 Jun 2021 14:41:35 +0100 |
| |
Tom Rix <trix@redhat.com> wrote:
> A fix is to use the __noreturn attribute on this function and not add a return > like this > > -static int afs_dir_set_page_dirty(struct page *page) > +static int __noreturn afs_dir_set_page_dirty(struct page *page) > > and to the set of ~300 similar functions in these files.
BUG() really ought to handle it. Do you have CONFIG_BUG=y?
David
| |