Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp570868pxb; Wed, 3 Feb 2021 11:58:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfCor22J5dewZSUw9BCTPFDZU8fjalg3Mvlwq7IlDhohNOTB2+4tGyOO2aJJF08ottPpQo X-Received: by 2002:a50:a6ce:: with SMTP id f14mr4785753edc.346.1612382333912; Wed, 03 Feb 2021 11:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612382333; cv=none; d=google.com; s=arc-20160816; b=aqCysRUjqCoGVrKBJChG+VVvqThhQq6hXvQp86R4jqpkN1g0MpRjZdXi2phIZ+tFQw Jb7capkzDMUXR7StH6XDNJGkVLxKrf2m2UwsKWUgFFA7syay0oO8sQJj8hroBXH8TJg7 OSPLPmVQk4RCsMgYtgSFTbpzII26NGhuzQLEFIAJ7tv+q31/dLLvKj1FrWSpIuUJOI/q qIBhd2WLwN4uPg/8C0rgehbz88/kBocMGvnM9eig5hJxlVXNxUItoAOf//cme37juBfB fqDUp9kGeHMbu8KCArvqwwxSYu9qucFvj0Nga/Sym4HzjgrNrli2tsVBG3IWNmvYMMh9 L43A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=lZIM2DPH255woCpuEYzpAbqOgqBRxAkE8W2SBU4ewJE=; b=s66ipv6VaTvVTF3ukvwyAkxkyDbh8UveHNs8FOwhOV4GHhlrkuZZ1Si8/6xWEql75s aRY56UTsUK0FX346FbA2Np5S/bwEm6crkjygJTZsjhubvm1WfnmTkQI8TrOXqlUfq4V+ 0nWGg+V6cYeMPlvATPW22mSmPCm/ZW2ZlcD6LBsyKYFLW88qw2V8RDil5ubOfGK2ks6v AXWW3Udeq7U/yzTIMpBa234VVEdZ3fuAOtrMvoQiRTE/gwWY4nJukcfm40iPdcrpEPKf yCEp7pBlezwYS7d7/muYBPfs0xXtm+VbzoKgPf7gSOsfda8Pdh0hbAmmJgBAgT5xSbLM r5Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=ceCUCEaJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm10si2146456ejc.64.2021.02.03.11.58.28; Wed, 03 Feb 2021 11:58:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=ceCUCEaJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231487AbhBCT4V (ORCPT + 99 others); Wed, 3 Feb 2021 14:56:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbhBCT4R (ORCPT ); Wed, 3 Feb 2021 14:56:17 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 906A7C061573; Wed, 3 Feb 2021 11:55:37 -0800 (PST) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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