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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 506D1C433DB for ; Wed, 3 Feb 2021 15:51:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 80FE064F65 for ; Wed, 3 Feb 2021 15:51:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80FE064F65 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 053916B0070; Wed, 3 Feb 2021 10:51:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 004336B0072; Wed, 3 Feb 2021 10:51:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E5D5E6B0073; Wed, 3 Feb 2021 10:51:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0238.hostedemail.com [216.40.44.238]) by kanga.kvack.org (Postfix) with ESMTP id CC19D6B0070 for ; Wed, 3 Feb 2021 10:51:30 -0500 (EST) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 59A083632 for ; Wed, 3 Feb 2021 15:51:30 +0000 (UTC) X-FDA: 77777396340.07.fog31_410e5ea275d4 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin07.hostedemail.com (Postfix) with ESMTP id 370D41803F9A7 for ; Wed, 3 Feb 2021 15:51:30 +0000 (UTC) X-HE-Tag: fog31_410e5ea275d4 X-Filterd-Recvd-Size: 5597 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by imf33.hostedemail.com (Postfix) with ESMTP for ; Wed, 3 Feb 2021 15:51:29 +0000 (UTC) Received: by mail-ej1-f47.google.com with SMTP id y9so14940729ejp.10 for ; Wed, 03 Feb 2021 07:51:29 -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=XITpBJaxkSU+ODCtRr6sVSLsm59pZBeulpkh8NgdoVHU9TjwAfhg7OWumCvvDyazxd k0xKSQBlBe8mm5MN9n2+Od070OD7iJ5z06ntQI4m4ueWraFabltLwvlMVJ8VH1m4JZPV Rg8mdOioeZfPvwqb2DXniAyBjoOWP/LuNZJlzOTKfvOztvZ+lUnh65NmsRsawQqYYWUA T27hJOFhDQBijfiwN2aTfgmulJToOhw5Gev7LGYlsuV7TRTqpDjOHnVirDYn+kHo2/RB hKS3kTO3gtY/MYDUSXFSkDNuwsp3YkLhljH838kEv2PQ/dcT2gfP8UbSlU9IcZ54GVzM 8Zog== X-Gm-Message-State: AOAM5306DtUqW55PHC8lMPlSmfN5CYXXxrgnB1vbMqjIpvRFM8ndt8Mw eUxRt5qlsBFUrElpoV49LutgsSPxpCed+bBpZdWW2A== X-Google-Smtp-Source: ABdhPJw325Fj8DcUghMscoJ2RIXBEp961uIMC8z8Cv3Nbs+QLRe4xLzgr/K6gPQUWefmsx1FIqrtaU0BHyw9vjMq0Pc= 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" 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: 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