Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp651894rwb; Fri, 13 Jan 2023 02:28:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXuCdEyoxO1cMnI146L3dhFEZ7s3YPO3aM80+BC7wTHjNtMd8MG4TqslmwzcvZP4t3cyIFuE X-Received: by 2002:a17:906:1299:b0:7c1:ee:5bca with SMTP id k25-20020a170906129900b007c100ee5bcamr64901147ejb.73.1673605721095; Fri, 13 Jan 2023 02:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673605721; cv=none; d=google.com; s=arc-20160816; b=V9vLKbakidZPS0SX64LFZ082xo49j50+I5bcgtNgAVTVTUrKKejauEEZ7akAX3eNp3 KXASy30ncZ4W4FFy06DUKYFbECvc6do0HajAAg+ovQjJUYfI0elX5Gyg4shYM/X1Dubs GWj/oRaS52baxV1OurwIct+y6EPQ4+50imayixY2an2oDA8382Qmup0Hk1941/rekKGo KvOZKgJkZJMb3o/tQsb3YKPKFMOkOvG7zKVLzJD+lqJ11EX0WwmtnR9fAgZFcJPk9KKW Sg5ib++ksiQZ/h2islV1Pc3BSAgnp+eqSDPZSODMrm9GwdIpTjJG22WEch3hv5Wz1RM4 /jWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=msMluICO9EoeGUlGF2et0NL1PeHTwtKLzIoFBRS6SeM=; b=ws7gGmzKdCIXKhvmwrrhmKuJXYVhbCVQY065I/Yx89k4U7/C89XWcI5c2TURMMQYDG 229FPghudiu3DnuZlMs1OSU3Ol1b0Rzrc+ug1NRY4Ak8LRywSF4ffLvapc/MOUlzQPGU TN1yUI2Pi8gow/PZmGG5FyKw0ew4jwMkcKWFYsZhXVlXp5RytEU+jahQclXVH8vAjSme AHUrq3zD3m1ceeQv9f6FrITAQz5CEc2rH3EysQrfCBNq6fC0epg2Q/GN/67D+60s0B8g rUm7rdRUgnPu9F8cKOtmjJwR13pSPAx25Rwjq25y9GNBj4beGUnF6ue4j82eOMO87ZLj URwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nJlfDLKV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg7-20020a1709072cc700b00869f2ca6a95si2495951ejc.552.2023.01.13.02.28.28; Fri, 13 Jan 2023 02:28:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nJlfDLKV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241203AbjAMKBh (ORCPT + 51 others); Fri, 13 Jan 2023 05:01:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241216AbjAMKBJ (ORCPT ); Fri, 13 Jan 2023 05:01:09 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E664E5B145 for ; Fri, 13 Jan 2023 01:59:15 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 949DEB820F8 for ; Fri, 13 Jan 2023 09:59:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C09CC433F0; Fri, 13 Jan 2023 09:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673603953; bh=+0jEHX2eLOEh+tvsJojwQzPDmdx+EmKB2O7b65fWGmE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nJlfDLKVBgxDAU0kU9uImLLbUdDYpEHuUtpYrffMns5Dy5BgerqP5fnOaCZ1uE+T1 XXncCxzMhXz8e15/SEE+Qp/CyLFo2R8kY1WB0r50kh+qG0xGoWWAhyZJKUoM3yENrb 3kcaI4i3484Pe8GZjqiuiCvnp73vgV02inoYLBzfdkPlk/l4Q78fxPobRWdYmtOgMo QML4nLjODqv33m1sFT7cVGu1hVs4fBqed6IrQcuzLwG9bScAdaMHCTkLI8Eu/R2UDH +JHsk469bt49ghONXa6HYUYAhBQx4gkYGbSOpm50/2l7W8wydQzP80zF0sEeUS2w/v OpFqe8x2fRnjw== Date: Fri, 13 Jan 2023 09:59:08 +0000 From: Will Deacon To: Elliot Berman Cc: Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: smccc: Include alternative-macros.h Message-ID: <20230113095907.GC12235@willie-the-truck> References: <20230112182548.537295-1-quic_eberman@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230112182548.537295-1-quic_eberman@quicinc.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 12, 2023 at 10:25:47AM -0800, Elliot Berman wrote: > Fix build error when CONFIG_ARM64_SVE is selected and > asm/alternative-macros.h wasn't implicitly included by another header. > > ./include/linux/arm-smccc.h:387:25: error: expected string literal before `ALTERNATIVE' > 387 | #define SMCCC_SVE_CHECK ALTERNATIVE("nop \n", "bl __arm_smccc_sve_check \n", \ > > Signed-off-by: Elliot Berman > --- > include/linux/arm-smccc.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h > index 220c8c60e021..6a627cdbbdec 100644 > --- a/include/linux/arm-smccc.h > +++ b/include/linux/arm-smccc.h > @@ -383,6 +383,7 @@ asmlinkage void __arm_smccc_hvc(unsigned long a0, unsigned long a1, > > /* nVHE hypervisor doesn't have a current thread so needs separate checks */ > #if defined(CONFIG_ARM64_SVE) && !defined(__KVM_NVHE_HYPERVISOR__) > +#include > > #define SMCCC_SVE_CHECK ALTERNATIVE("nop \n", "bl __arm_smccc_sve_check \n", \ > ARM64_SVE) > > base-commit: 68a63a412d18bd2e2577c8928139f92541afa7a6 Acked-by: Will Deacon Will