lkml.org 
[lkml]   [2021]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] afs: fix no return statement in function returning non-void
Date
Zheng Zengkai <zhengzengkai@huawei.com> wrote:

> static int afs_dir_set_page_dirty(struct page *page)
> {
> BUG(); /* This should never happen. */
> + return 0;
> }

That shouldn't be necessary. BUG() should be marked as 'no return' to the
compiler. What arch and compiler are you using?

David

\
 
 \ /
  Last update: 2021-04-08 16:08    [W:0.070 / U:3.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site