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.3 required=3.0 tests=BAYES_00, 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 A26C4C64E7B for ; Mon, 30 Nov 2020 15:57:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 531322076E for ; Mon, 30 Nov 2020 15:57:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728372AbgK3P5x (ORCPT ); Mon, 30 Nov 2020 10:57:53 -0500 Received: from foss.arm.com ([217.140.110.172]:57044 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbgK3P5x (ORCPT ); Mon, 30 Nov 2020 10:57:53 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0029AD6E; Mon, 30 Nov 2020 07:57:08 -0800 (PST) Received: from [192.168.1.179] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4A75A3F718; Mon, 30 Nov 2020 07:57:06 -0800 (PST) Subject: Re: [next] arm64: mte.c:176:17: error: 'struct thread_struct' has no member named 'sctlr_tcf0' To: Naresh Kamboju , Linux-Next Mailing List , open list , Linux ARM , lkft-triage@lists.linaro.org Cc: Arnd Bergmann , Vincenzo Frascino , Catalin Marinas , Stephen Rothwell , Will Deacon , andreyknvl@google.com, Andrew Morton , Peter Collingbourne References: From: Steven Price Message-ID: <2fd63f1f-9552-760c-baf8-9ccf1df69de2@arm.com> Date: Mon, 30 Nov 2020 15:57:05 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On 30/11/2020 15:42, Naresh Kamboju wrote: > Linux next tag 20201130 arm64 build failed due to below error, > - gcc-9, gcc-10 and clang-10 build FAIL > - gcc-8 build PASS. > > make --silent --keep-going --jobs=8 > O=/home/tuxbuild/.cache/tuxmake/builds/2/tmp ARCH=arm64 > CROSS_COMPILE=aarch64-linux-gnu- 'CC=sccache aarch64-linux-gnu-gcc' > 'HOSTCC=sccache gcc' > arch/arm64/kernel/mte.c: In function 'set_sctlr_el1_tcf0': > arch/arm64/kernel/mte.c:176:17: error: 'struct thread_struct' has no > member named 'sctlr_tcf0' > 176 | current->thread.sctlr_tcf0 = tcf0; > | ^ > At top level: > arch/arm64/kernel/mte.c:168:13: warning: 'set_sctlr_el1_tcf0' defined > but not used [-Wunused-function] > 168 | static void set_sctlr_el1_tcf0(u64 tcf0) > | ^~~~~~~~~~~~~~~~~~ > make[3]: *** [scripts/Makefile.build:283: arch/arm64/kernel/mte.o] Error 1 > make[3]: Target '__build' not remade because of errors. This looks like a bad conflict resolution of a patch in Andrew's set. 3394cb084a8d ("arm64: mte: add in-kernel MTE helpers") has reintroduced set_sctlr_el1_tcf0() which was removed in e710c29e0177 ("arm64: mte: make the per-task SCTLR_EL1 field usable elsewhere") (in arm64 tree). But this doesn't happen in the original patch arm64-mte-add-in-kernel-mte-helpers.patch in Andrew's set. Steve > Reported-by: Naresh Kamboju > > 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 docker --target-arch arm64 --toolchain gcc-9 > --kconfig defconfig --kconfig-add > https://builds.tuxbuild.com/1l0FGU7GBRQu6kT79iDAwsHkQ6d/config > >