Re: [next] sh: hugetlb.h:27:1: error: no return statement in function returning non-void [-Werror=return-type]

From: Matthew Wilcox
Date: Wed May 11 2022 - 14:37:50 EST


On Wed, May 11, 2022 at 09:26:45PM +0530, Naresh Kamboju wrote:
> arch/sh/include/asm/hugetlb.h: In function 'huge_ptep_clear_flush':
> arch/sh/include/asm/hugetlb.h:27:1: error: no return statement in
> function returning non-void [-Werror=return-type]
> 27 | }
> | ^
> cc1: some warnings being treated as errors

It's easy enough to figure out whose patch this was.

$ git log -p next-20220511 arch/sh/include/asm/hugetlb.h

commit 083af99303b9
Author: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
Date: Tue May 10 17:47:33 2022 -0700

mm: change huge_ptep_clear_flush() to return the original pte

You don't have to spray everybody who's ever touched the MM with email.