Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3672022pxu; Mon, 30 Nov 2020 08:01:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwl1TzWi09cZp+rE/CIqlQNhosmSMA9qIv6JC6gJdnO7WLCypyUref9D/k8gOmcLoxrEOu X-Received: by 2002:a05:6402:1b0c:: with SMTP id by12mr8256666edb.17.1606752066322; Mon, 30 Nov 2020 08:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606752066; cv=none; d=google.com; s=arc-20160816; b=ewJUpWwMpkppZFuev7VtQFPIEocijYnAasTReFBDKzyPAtanrrJHjuHMhalLgMQwlr x2urmx0N6v9TBIkGEz3YCAbGZ9IQBT+7F5A+M1Nd9RuK0YCOkgIDTLNU+ZBs1zQsh+pG wLz82/5fC8fiLqfMSY3xhofXxwv102Ymxe7Rhk4ZublZeFVOdxKmg/nDPBTr1ibzOzNQ WUEKGoLKm0Cc1xclG6Ywm5P2baBVoQLIdOofihcbdHce/CvIREkE4kkL7Fo1JvI3VD/L 5yOrj9lIh21Am5SI0b9TFk3ZtiSidLIZjGkP1ziKla74ZRQA0RvxyGctwzbfzI0OFsIa ptdw== 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; bh=Mx2V57jqiNYK/Dv64LN6I8409Bs9dv1GCwUQfEGlUIY=; b=rm3x5sfYTCjYCdimhoqixHAcjWvOwk3MMeLStSZR6zjEAB1/Xz3F9ywldkY7jr2S+m BFwaR0uxnP4gkvyiHFVkkYlOUNh+OJqTm2rQUmDidVwDStEcOJ06neBuZQSh4bfU4kHd lqoIowkjdwA1+IJS1tOJnXmhBoTVjGuqHjtmI8CTiBp/LxueWMeQ/wNQw7aIPduRDTON DxqgpbFtdWUEbQDQ0OjDRWHAs3Pz4ZnIwo5pwl7h/PGVGwXXGsFTO2q3FotNEA8SST4g +MfbL3ju1iDJm9a4rLRSiPoPZmacY5xNwhYcAiKZ5+FpIMtlpPccEkBj10idPtJfkbf7 xGkg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n8si1192985eju.315.2020.11.30.08.00.41; Mon, 30 Nov 2020 08:01:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728429AbgK3P5y (ORCPT + 99 others); Mon, 30 Nov 2020 10:57:54 -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-kernel@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 > >