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=-5.2 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 1B45BC433E0 for ; Wed, 3 Feb 2021 19:55:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1893964F68 for ; Wed, 3 Feb 2021 19:55:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1893964F68 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6111B6B0005; Wed, 3 Feb 2021 14:55:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5C16B6B006C; Wed, 3 Feb 2021 14:55:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4D7166B006E; Wed, 3 Feb 2021 14:55:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0127.hostedemail.com [216.40.44.127]) by kanga.kvack.org (Postfix) with ESMTP id 33CB16B0005 for ; Wed, 3 Feb 2021 14:55:40 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id E0D82180AD81A for ; Wed, 3 Feb 2021 19:55:39 +0000 (UTC) X-FDA: 77778011598.30.war35_0c05f53275d6 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id B3E79180B3C8B for ; Wed, 3 Feb 2021 19:55:39 +0000 (UTC) X-HE-Tag: war35_0c05f53275d6 X-Filterd-Recvd-Size: 5455 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by imf36.hostedemail.com (Postfix) with ESMTP for ; Wed, 3 Feb 2021 19:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=lZIM2DPH255woCpuEYzpAbqOgqBRxAkE8W2SBU4ewJE=; b=ceCUCEaJD39WM5gPnzKJ8wCMMB luJoynXfntKH0PrBYD0kV1boOM9EYOyikVf1bjeNLMp+UGrLsgPi/id7egUyvAw1XP2smeHy1aHvB THbPIkej5ErUCXA1NJhHsy9Sy58pIDNM5U1INSPEEMp3hay4Mzyul/jY5dhFLyIux8lRst/i7Xhff eN0djcpHrWSFX4bf2MlxDBJEtxfjmeXnDyZkydj3I+GPHP5y5kGCdEbAbjI/wEBSZpwvhfi7qh6LY ZRkz88wlLjuctiw2HWUek5QMoiFZmg4e630jPWnPaXnaL+b9dY3em0hinWaB7lFlsH9QUOY5EWGWB 6Hg+KPqQ==; Received: from [2601:1c0:6280:3f0::aec2] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7OFM-0003dU-EK; Wed, 03 Feb 2021 19:55:28 +0000 Subject: Re: memory_model.h:64:14: error: implicit declaration of function 'page_to_section' To: Naresh Kamboju , Linux Kernel Mailing List , Linux Next Mailing List , linux-mm , Linux-Arch , lkft-triage@lists.linaro.org, linux-mips@vger.kernel.org, Linux-sh list , Mike Rapoport Cc: Stephen Rothwell , Arnd Bergmann , Andrew Morton , Geert Uytterhoeven , Pavel Tatashin References: From: Randy Dunlap Message-ID: <201a2712-d708-7f83-9272-730b32e7a842@infradead.org> Date: Wed, 3 Feb 2021 11:55:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 2/3/21 7:51 AM, Naresh Kamboju wrote: > Linux next tag 20210203 the mips and sh builds failed due to below errors. > Following builds failed with gcc-8, gcc-9 and gcc-10, > - mips (cavium_octeon_defconfig) > - sh (defconfig) > - sh (shx3_defconfig) > > make --silent --keep-going --jobs=8 > O=/home/tuxbuild/.cache/tuxmake/builds/1/tmp ARCH=mips > CROSS_COMPILE=mips-linux-gnu- 'CC=sccache mips-linux-gnu-gcc' > 'HOSTCC=sccache gcc' uImage.gz > In file included from arch/mips/include/asm/page.h:258, > from arch/mips/include/asm/io.h:29, > from include/linux/io.h:13, > from arch/mips/include/asm/mips-cps.h:10, > from arch/mips/include/asm/smp-ops.h:16, > from arch/mips/include/asm/smp.h:21, > from include/linux/smp.h:84, > from arch/mips/include/asm/cpu-type.h:12, > from arch/mips/include/asm/timex.h:19, > from include/linux/timex.h:65, > from include/linux/time32.h:13, > from include/linux/time.h:60, > from include/linux/compat.h:10, > from arch/mips/kernel/asm-offsets.c:12: > include/linux/mm.h: In function 'is_pinnable_page': > include/asm-generic/memory_model.h:64:14: error: implicit declaration > of function 'page_to_section'; did you mean 'present_section'? > [-Werror=implicit-function-declaration] > int __sec = page_to_section(__pg); \ > ^~~~~~~~~~~~~~~ > include/asm-generic/memory_model.h:81:21: note: in expansion of macro > '__page_to_pfn' > #define page_to_pfn __page_to_pfn > ^~~~~~~~~~~~~ > include/linux/mm.h:1135:15: note: in expansion of macro 'page_to_pfn' > is_zero_pfn(page_to_pfn(page)); > ^~~~~~~~~~~ > In file included from arch/mips/kernel/asm-offsets.c:15: > include/linux/mm.h: At top level: > include/linux/mm.h:1512:29: error: conflicting types for 'page_to_section' > static inline unsigned long page_to_section(const struct page *page) > ^~~~~~~~~~~~~~~ > 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 mips --toolchain gcc-10 > --kconfig cavium_octeon_defconfig Looks to me like this is due to : #if defined(CONFIG_SPARSEMEM) && !defined(CONFIG_SPARSEMEM_VMEMMAP) #define SECTION_IN_PAGE_FLAGS #endif with CONFIG_SPARSEMEM=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y # CONFIG_SPARSEMEM_VMEMMAP is not set I'm still digging. -- ~Randy