Re: [syzbot] upstream build error (18)

From: Baolin Wang
Date: Fri May 27 2022 - 04:24:47 EST


Hi,

On 5/27/2022 3:14 PM, syzbot wrote:
Hello,

syzbot found the following issue on:

HEAD commit: 7e284070abe5 Merge tag 'for-5.19/dm-changes' of git://git...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1233ae81f00000
kernel config: https://syzkaller.appspot.com/x/.config?x=854cea6cbaeb1d1b
dashboard link: https://syzkaller.appspot.com/bug?extid=a0b95614aef2afe9e488
compiler: aarch64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a0b95614aef2afe9e488@xxxxxxxxxxxxxxxxxxxxxxxxx

arch/arm64/mm/hugetlbpage.c:515:9: error: implicit declaration of function 'get_clear_flush'; did you mean 'ptep_clear_flush'? [-Werror=implicit-function-declaration]
arch/arm64/mm/hugetlbpage.c:515:9: error: incompatible types when returning type 'int' but 'pte_t' was expected
arch/arm64/mm/hugetlbpage.c:516:1: error: control reaches end of non-void function [-Werror=return-type]

I've sent out a fix patch [1], please try it. Thanks.

[1] https://lore.kernel.org/all/814e20c19b110209ee12ecae7cb05f8a78d021c8.1653625820.git.baolin.wang@xxxxxxxxxxxxxxxxx/