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=-15.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 3C0CDC433ED for ; Thu, 15 Apr 2021 12:42:55 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DCB8D610E8 for ; Thu, 15 Apr 2021 12:42:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DCB8D610E8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VxLoUdNkdKNKC6Dejg1sNnt5RTKR2yeNxh4qcReNnKE=; b=RryL3t2r/sYN1vA0/XCD6Blcr ZnbIuR0N0szAARiCNeYlHgnvqthnqFalwgtpmOdTJrmIN2z+fKxAivrnOe53UqQDG3RfIuVEFLfTe E8Vskjk6HJI3QF/mWhpOox0/wtpw1FIEEqccyW2hABjlgV4FAQsb16knIXWfJqeMwY5Ztoz2Ov/Yg tssZ9ErHSRpgrLP7nN/2eUKxgnvAzBtI/gx+kVLXs7U+8HscFBhfhY3CT/qM0NdtZeHo792mcQSOd w5BZDLwzrPm/MBBAojX5mnuuUO3qKXHLHP6vulOcbyB94MKrJjikfY8o7YNmnsIRpCLcvx0OYkjm3 P4xqkkpLg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lX1JL-00G8u9-W4; Thu, 15 Apr 2021 12:41:32 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX1JK-00G8tu-2T for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 12:41:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zwuMhoF4bMjCYWWyrxgFCU5JbsgJLyGf9YjNjhccfh0=; b=oF+sPtXsd4f4jOX574CeGJPIyI eI/HeEvP1vaawJR57egY0+CPY4utx7G/j4sO7VpJMg+NkG8hZ60FFujJgs568GQ0YOtEGM8+grgz6 6DV/iN5fM4iXVBTDNnPFuszMXSBN+VzsQykT8OjHy8kqjvmnJqcl7AcS85X5Evc6qRZuFK1jLP2Ac MQ6fxSnLFB069YiNZmsUhAn4X1uAJ4qBbBUUW48+0HdI/oHsLigLTZKA0UIw52/ctSL9ttnhaDXA6 Om9/0C5R4d6GlRJtNHBhDHxzFzVYn7lk3evoJI3nHU6EO995VQwaHmouQTrrC+pnpyxrrRgtiOBrD AA7Y+j2g==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lX1JH-008ZVp-4s for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 12:41:28 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55BDB61166; Thu, 15 Apr 2021 12:41:25 +0000 (UTC) Date: Thu, 15 Apr 2021 13:41:22 +0100 From: Catalin Marinas To: kernel test robot Cc: Mark Brown , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-arm-kernel@lists.infradead.org Subject: Re: [arm64:for-next/misc 13/14] ld.lld: error: undefined symbol: sve_get_vl Message-ID: <20210415124121.GC1015@arm.com> References: <202104150734.PulXU4BV-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202104150734.PulXU4BV-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210415_054127_237131_090BFEF4 X-CRM114-Status: GOOD ( 15.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Apr 15, 2021 at 07:13:41AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/misc > head: 839157876f97fcc7ead0b62c9377bb50f75a3df9 > commit: ef9c5d09797db874a29a97407c3ea3990210432b [13/14] arm64/sve: Remove redundant system_supports_sve() tests > config: arm64-randconfig-r036-20210414 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install arm64 cross compiling tool for clang build > # apt-get install binutils-aarch64-linux-gnu > # https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?id=ef9c5d09797db874a29a97407c3ea3990210432b > git remote add arm64 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git > git fetch --no-tags arm64 for-next/misc > git checkout ef9c5d09797db874a29a97407c3ea3990210432b > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot Thanks for the report. That indeed triggers if CONFIG_ARM64_SVE is disabled. Proposed fix: diff --git a/arch/arm64/kernel/fpsimd.c b/arch/arm64/kernel/fpsimd.c index f6cd89131dc3..9d433854a662 100644 --- a/arch/arm64/kernel/fpsimd.c +++ b/arch/arm64/kernel/fpsimd.c @@ -285,7 +285,7 @@ static void task_fpsimd_load(void) WARN_ON(!system_supports_fpsimd()); WARN_ON(!have_cpu_fpsimd_context()); - if (test_thread_flag(TIF_SVE)) + if (IS_ENABLED(CONFIG_ARM64_SVE) && test_thread_flag(TIF_SVE)) sve_load_state(sve_pffr(¤t->thread), ¤t->thread.uw.fpsimd_state.fpsr, sve_vq_from_vl(current->thread.sve_vl) - 1); @@ -307,7 +307,7 @@ static void fpsimd_save(void) WARN_ON(!have_cpu_fpsimd_context()); if (!test_thread_flag(TIF_FOREIGN_FPSTATE)) { - if (test_thread_flag(TIF_SVE)) { + if (IS_ENABLED(CONFIG_ARM64_SVE) && test_thread_flag(TIF_SVE)) { if (WARN_ON(sve_get_vl() != last->sve_vl)) { /* * Can't save the user regs, so current would -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel