From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3B2AC433E0 for ; Wed, 10 Mar 2021 07:24:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3164C64FCA for ; Wed, 10 Mar 2021 07:24:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3164C64FCA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A9A548D0179; Wed, 10 Mar 2021 02:24:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A4C758D0148; Wed, 10 Mar 2021 02:24:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8C6A18D0179; Wed, 10 Mar 2021 02:24:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0151.hostedemail.com [216.40.44.151]) by kanga.kvack.org (Postfix) with ESMTP id 6CC018D0148 for ; Wed, 10 Mar 2021 02:24:23 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 3046E181AF5E1 for ; Wed, 10 Mar 2021 07:24:23 +0000 (UTC) X-FDA: 77903126406.19.17BC2A0 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf24.hostedemail.com (Postfix) with ESMTP id 02BC8A0009DD for ; Wed, 10 Mar 2021 07:24:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2BDEBAC1F; Wed, 10 Mar 2021 07:24:21 +0000 (UTC) Date: Wed, 10 Mar 2021 08:24:17 +0100 From: Oscar Salvador To: Naresh Kamboju Cc: clang-built-linux , Linux-Next Mailing List , Andrew Morton , David Hildenbrand , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , X86 ML , "H . Peter Anvin" , Michal Hocko , Zi Yan , linux-mm , open list , lkft-triage@lists.linaro.org, Stephen Rothwell , Arnd Bergmann , Nathan Chancellor Subject: Re: [PATCH v6 3/4] x86/vmemmap: Handle unpopulated sub-pmd ranges Message-ID: References: <20210309214050.4674-1-osalvador@suse.de> <20210309214050.4674-4-osalvador@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 02BC8A0009DD X-Stat-Signature: ho1z5yi7t57emsfqks51agzn84y3ou55 Received-SPF: none (suse.de>: No applicable sender policy available) receiver=imf24; identity=mailfrom; envelope-from=""; helo=mx2.suse.de; client-ip=195.135.220.15 X-HE-DKIM-Result: none/none X-HE-Tag: 1615361058-43138 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Mar 10, 2021 at 11:37:53AM +0530, Naresh Kamboju wrote: > Hi Oscar, Hi Naresh, > While building the linux next 20210310 tag for x86_64 architecture with clang-12 > and gcc-9 the following warnings / errors were noticed. > > arch/x86/mm/init_64.c:1585:6: error: implicit declaration of function > 'vmemmap_use_new_sub_pmd' [-Werror,-Wimplicit-function-declaration] > vmemmap_use_new_sub_pmd(addr, next); > ^ > arch/x86/mm/init_64.c:1591:4: error: implicit declaration of function > 'vmemmap_use_sub_pmd' [-Werror,-Wimplicit-function-declaration] > vmemmap_use_sub_pmd(addr, next); > ^ > 2 errors generated. > make[3]: *** [scripts/Makefile.build:271: arch/x86/mm/init_64.o] Error 1 > > Reported-by: Naresh Kamboju Yes, this was also reported by Zi Yan here [1]. Looking into your .config, seems to be the same issue as you have CONFIG_SPARSE_VMEMMAP but !CONFIG_MEMORY_HOTPLUG. This version fixes those compilation errors. Thanks for reporting it anyway! [1] https://lore.kernel.org/linux-mm/YEfoH8US4YVxak7r@localhost.localdomain/T/#ma566ff437ff4bf8fcc5f80f62cd0cc8761edd12d > Steps to reproduce: > ------------------- > # TuxMake is a command line tool and Python library that provides > # portable and repeatable Linux kernel builds across a variety of > # architectures, toolchains, kernel configurations, and make targets. > # > # TuxMake supports the concept of runtimes. > # See https://docs.tuxmake.org/runtimes/, for that to work it requires > # that you install podman or docker on your system. > # > # To install tuxmake on your system globally: > # sudo pip3 install -U tuxmake > # > # See https://docs.tuxmake.org/ for complete documentation. > > > tuxmake --runtime podman --target-arch x86_64 --toolchain clang-12 > --kconfig defconfig --kconfig-add > https://builds.tuxbuild.com/1pYCPt4WlgSfSdv1BULm6ABINeJ/config > > > Build pipeline error link, > https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/jobs/1085496613#L428 > > -- > Linaro LKFT > https://lkft.linaro.org -- Oscar Salvador SUSE L3