Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp392909pxb; Wed, 3 Feb 2021 07:57:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKWCIglXQhDeFnpu1iIZ2aMxpJeHHh1F3wPROGsXI0evmpeY3uwSw7HOIMOYPFf6Vas6Q9 X-Received: by 2002:a05:6402:26d5:: with SMTP id x21mr2240911edd.50.1612367821385; Wed, 03 Feb 2021 07:57:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612367821; cv=none; d=google.com; s=arc-20160816; b=oDlSU3ju4umT0qdJrhkFdhkNB1/Ond7Om+VaVvzlJUcjEsulZM0xuZegTk+NheDOrN bBqdZQlkOdtRBfVewwbj42Z6HN8sqkNeFUCqhLPShUuZvAMuJqrOEhCDX9ro4M08an/Z PorIhWnRC1QbgdrCoYvg3dOLVsI7179qD9TFW9xeWLBYZtOZrvA79GZkGDS5kI2trgds KZ42v3PsrISTiwGCDMeuu2C3QapfSKX6DT3m1hC/Da3Y8ZqFhnrbqGx5gZCexZxVXraY Ik/Jq3UF9Jis7fHYPiVWN0zIP9+SYKH8+Sv4xS5kz48oV5LS0HEwzUhfbTuvoi0OlG4F jx9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=8ZiZgrXUKTPqtav3uMw7TC7Q+Aei5KWAfNt52U+dlDQ=; b=CO1kj6X2mQXjwuqv+9rDLx6+hr2G+CEsAvZY7Ef12osw94qpqJ40Exj3D01xdXtntA xTzd+ra31NlZ3nWmr8hjGUNt4qZfSoUeNWkYUJk3o/Mi7TG5ANiAUreULaJEkwqUVtT5 1l6Dl4ujVQg0aBtWtbPHynphOQKfUtVGDqAbxcIVdqWx7ZaXV1ZljbI0qgKB47hXfFhW LfRVoPO7I9nPaTHgGBLaVxSajm8mloHRSOq3yyNNj4m6qDJRjMX32i1z4MQS9nA5yTex YgKRH20WzhjOyq7dxokSrc4h6CPZf35wURV/VpBsFke94D5HwJgED4jGht/3pDBWajPr XY8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rH0DqReY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si1605670edm.477.2021.02.03.07.56.35; Wed, 03 Feb 2021 07:57:01 -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=@linaro.org header.s=google header.b=rH0DqReY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234675AbhBCPx5 (ORCPT + 99 others); Wed, 3 Feb 2021 10:53:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234575AbhBCPw2 (ORCPT ); Wed, 3 Feb 2021 10:52:28 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A080AC06178B for ; Wed, 3 Feb 2021 07:51:30 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id i8so20090979ejc.7 for ; Wed, 03 Feb 2021 07:51:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=8ZiZgrXUKTPqtav3uMw7TC7Q+Aei5KWAfNt52U+dlDQ=; b=rH0DqReYRnjwzpX31BARiullKEije5kg479qo/hGnERWhpgzpT4X1769vLah48SIwg v+RJT5IyfS6o/zlQKNZCKMovJUucHYl2vvVPHFmEM6RJtNQeyp604riUlPBTsVpDW373 wo6gr7iWes5a1p9YYKBqNkERLiuQa+aqmylO8FIz7HD7P1E4gYQGlAco5XquUZvZim6b 25bJTvBTgrihKk16rJPk3ZK6Q5Hpvm9ehj9Qkj2TgX7rYqHsAofeovyxj3iO85X6TK3i WqoqVY6lPLaJxyt3zE3Pq5HvpMDWIDK9VhhRy1IYd38sM452Mq7O4TGohXZartCXVE46 Gf5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=8ZiZgrXUKTPqtav3uMw7TC7Q+Aei5KWAfNt52U+dlDQ=; b=iQzZ9VkPCVHa6lAQ33FHn0AC0K4eE2ERYqWmKsWm5aWrubxl4U1EnGGC7MaRUfhJxX 5W/olBab9whRmdrB9y6TVSlpBdXS8A3cfwAdQh+8y5AC3CIlKpHoRxYezmDEgqy6Ex/a GA3E68ys1qUC22kBA7tPgIsIICyg4f5P2Dv9+TVGc2PS8EHt9CfOtgANjs74RNA3C3KG CQdJ386ReGK7QtqpWc9dIaihUih6/xKYv4S2JrjBaFdcJuBj8AAA1FrLanK3Vg1Ir8SA kHwYP0VKYEQXAX0CEP1sRA+iw2uEvSnr8GZETZCbnomYhQI4ZAcHL1ig1etDfRpaRhDD xzhQ== X-Gm-Message-State: AOAM531GmspI9So4FWZbFsUH3Dz7MHyLpRJE6LasCwFHQVg1A9TEzjIb ZS5M29r2sd4AK8OwCp9suYtjqOD7NKZwa62Z1rBtJ8N27ye7XlUe X-Received: by 2002:a17:906:ca0d:: with SMTP id jt13mr3721106ejb.170.1612367488351; Wed, 03 Feb 2021 07:51:28 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Wed, 3 Feb 2021 21:21:16 +0530 Message-ID: Subject: memory_model.h:64:14: error: implicit declaration of function 'page_to_section' To: 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 Cc: Randy Dunlap , Stephen Rothwell , Arnd Bergmann , Andrew Morton , Geert Uytterhoeven , Pavel Tatashin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Linaro LKFT https://lkft.linaro.org