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 16056C433E0 for ; Wed, 3 Feb 2021 15:53:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BD38C64E3D for ; Wed, 3 Feb 2021 15:53:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234564AbhBCPwW (ORCPT ); Wed, 3 Feb 2021 10:52:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234683AbhBCPwK (ORCPT ); Wed, 3 Feb 2021 10:52:10 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE4A3C06178A for ; Wed, 3 Feb 2021 07:51:29 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id bl23so36554000ejb.5 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=XMRa7BtkIMOOILO/jvvo75+3qAZz28lV6TpUfwOidFbBZfXmVO2CwSwQAXdCm6dksy ueW4cIFZh7JRGP12kdLQvgLPj6xZIZYDrvTfidHCm+ks/Jht1lvwMjIuI+EUAEP8+1q1 6f3+yjl5cKnOZZOMzBsJHAzv6/Qh8fPiet58z9YC6hF14XGLe7esk2RwCIONxc4pWvl9 Is3NaSdK5cdULrgMpvpglrNRF5InoRn8tsR8+DNcmj0YDOVyvbvq4wJ1g/S6x16UhhWu 6p64WIWs2NBxKTwPNy/GH8qNnuL5LiYR40QVksYQmBCjaGGcA4rPfLVJUV+TBCGX1Z4j IlGw== X-Gm-Message-State: AOAM530POJBN958srli0xnEO8hVU0hWj4xrWBN6QEraV4hNHhCM+GVYd 743UXRrCbbGR+B/7AeDzvbbaHeqqGoEMTYifo8P5TeVqlE8vmxJG 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" Precedence: bulk List-ID: X-Mailing-List: linux-next@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