Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A982BC433EF for ; Thu, 25 Nov 2021 08:06:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347642AbhKYIJt (ORCPT ); Thu, 25 Nov 2021 03:09:49 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:27294 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347514AbhKYIHr (ORCPT ); Thu, 25 Nov 2021 03:07:47 -0500 Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4J09Q83DQ0zbj72; Thu, 25 Nov 2021 16:04:32 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 25 Nov 2021 16:04:35 +0800 Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Thu, 25 Nov 2021 16:04:34 +0800 Message-ID: Date: Thu, 25 Nov 2021 16:04:33 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [next] kasan: shadow.c:528:33: error: 'VM_DELAY_KMEMLEAK' undeclared Content-Language: en-US To: Stephen Rothwell , Naresh Kamboju CC: Linux-Next Mailing List , open list , linux-mm , Andrew Morton , Yongqiang Liu , Andrey Ryabinin , Dmitry Vyukov , Catalin Marinas , Will Deacon , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Alexander Gordeev , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Alexander Potapenko References: <20211125185313.77e20bc5@canb.auug.org.au> From: Kefeng Wang In-Reply-To: <20211125185313.77e20bc5@canb.auug.org.au> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggeme711-chm.china.huawei.com (10.1.199.107) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/11/25 15:53, Stephen Rothwell wrote: > Hi Naresh, > > On Thu, 25 Nov 2021 12:43:41 +0530 Naresh Kamboju wrote: >> [ Please ignore this email if it is already reported ] >> >> While building Linux next 20211125 x86 with CONFIG_KASAN=y gcc-11 >> following warnings / errors noticed. >> >> mm/kasan/shadow.c: In function 'kasan_module_alloc': >> mm/kasan/shadow.c:528:33: error: 'VM_DELAY_KMEMLEAK' undeclared (first >> use in this function); did you mean 'VM_DEFER_KMEMLEAK'? >> 528 | if (vm->flags & VM_DELAY_KMEMLEAK) >> | ^~~~~~~~~~~~~~~~~ >> | VM_DEFER_KMEMLEAK >> mm/kasan/shadow.c:528:33: note: each undeclared identifier is reported >> only once for each function it appears in >> make[3]: *** [scripts/Makefile.build:288: mm/kasan/shadow.o] Error 1 >> >> Build config: >> https://builds.tuxbuild.com/21OjEyx87iCX9bqOwJrZdl1wFFj/config >> >> >> Reported-by: Linux Kernel Functional Testing >> >> meta data: >> ----------- >> git describe: next-20211125 >> git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next >> git_sha: f81e94e91878bded599cc60f2881cfd50991aeb9 >> git_short_log: f81e94e91878 (\"Add linux-next specific files for 20211125\") >> target_arch: x86 >> toolchain: gcc-11 >> >> steps to reproduce: >> tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-11 >> --kconfig defconfig \ >> --kconfig-add https://builds.tuxbuild.com/21OjEyx87iCX9bqOwJrZdl1wFFj/config >> >> https://builds.tuxbuild.com/21OjEyx87iCX9bqOwJrZdl1wFFj/tuxmake_reproducer.sh >> >> -- >> Linaro LKFT >> https://lkft.linaro.org > Caused by commit > > f61bc9ffcab1 ("mm: defer kmemleak object creation of module_alloc()") > > from the akpm-current tree. The define is VM_DEFER_KMEMLEAK :-( Resend a new one, sorry for missing macro change when v3 version use new name. >