Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1342391rwi; Wed, 26 Oct 2022 14:07:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XmnKAFrYR7IspMp9jcHJ4+M7oSjaxENI79gXf9/x2cp15YSeUTEJFixEKbR+PQP5TPFLm X-Received: by 2002:a17:902:ea09:b0:186:a604:d7e4 with SMTP id s9-20020a170902ea0900b00186a604d7e4mr18207374plg.120.1666818444821; Wed, 26 Oct 2022 14:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666818444; cv=none; d=google.com; s=arc-20160816; b=tSJ1ESvii8X8mFDLs+nZbWXxWjGruJozemUgVqRDaf7hSBUuX0J4mKz6Wfagh1N4l+ hQPNs76sXlqZ7mRxR2Yz8RY19/YOE/2DRSjsVLr4PYrgJa0BBjajGyi9md4jFCUMy43v MiEWjH+fG8sr8Dn7Yl/JEwkHQg4fjEVhO6zUz/l+H/ltXU4RIJY5QrW4x5qEHEs7Ml7h exGnWbN1DTj0yt6MfgrXfLiYeHue6bV4AVzD8ZE2b5ZQUOnyULIL3Y2qbSgNfnGlIbc3 CVJrGyJe7W0ydlgpFTagf18C0H77T+q+EJwG9eyHUuYZ1KewvLyKG1nt8do4YdTrrCZ3 yvsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=daYBwE/xgD9h3LwP3sciyNnst9YWMODARklElncCAU0=; b=biIVMXN3UAipPVr8b5jpJ6lHmjuh6MBIJPGeW4cdtc21q6dz2Z9QM6IXlA1hNgzD+h p4dUBoPictPTMOhei3FvANnM7Hg0J2yqL+Jf9lerH6XT42AC2KNgriiTYZoqlpqjPpGn V5c6WPbY2WXGrJPMSI/ib+Zc5H86TC3ohZowS9CqkJ/EWZgW0tJFY1i7Lhp1d8Ay/Few j+BFLPwL/ldbuPiW2k6Y8c/k8ryHxSMW/XuPjahoKhrahXi3iOCwcnOzUhE7F8XkTKgd FmPM/SYdsv9WH4cMIayYrlyMtmQ+x2n0/OduEn7VYwHSPiboVJhCrFEsxSkKUe48l+wr YaBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="g+XJ8M3/"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020aa78ece000000b00562a1693523si7723165pfr.20.2022.10.26.14.07.12; Wed, 26 Oct 2022 14:07:24 -0700 (PDT) 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=@linaro.org header.s=google header.b="g+XJ8M3/"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231164AbiJZUkK (ORCPT + 99 others); Wed, 26 Oct 2022 16:40:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233815AbiJZUj5 (ORCPT ); Wed, 26 Oct 2022 16:39:57 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 679CA167D7 for ; Wed, 26 Oct 2022 13:39:53 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id z192so6343988yba.0 for ; Wed, 26 Oct 2022 13:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=daYBwE/xgD9h3LwP3sciyNnst9YWMODARklElncCAU0=; b=g+XJ8M3/27LzItdcyttOglsv/BP41vBwfOCU5njWntm42Cna4B84KFt9JxXFA81WGW oHv2ipaiOxp9I8LqN3D7Awo6fBugGJBbVkfVkTbVqaZ/3actbpgSe7WtHoh8jZPrJTn+ /u6dDMcBuT8Td/kDRfiqCeWPMgCJxS4jWwmyIPOFaly/4MYdhJsau0a8W6BGFBnebJRr HYclJfR/ZmJF863HTkF6qPjFk4ffS4z686Uy0HyGzJx9Y6Y0XX+Z36wSJ7HVnf892Dab 0pISkacDQ38x7TqCs6phTjrqCKgsq2G3l85DAXYkZhLR7LuU5KrHdMx2ndDyo5T0K0E2 tD9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=daYBwE/xgD9h3LwP3sciyNnst9YWMODARklElncCAU0=; b=sXPmQCacoKYm6h7xvngQX2Bu+bSxzp2HX+8pl8557KzX7pGtljPBO73s+woYHuEO9w F4wWhwFxsXIqhnbJksTLDjfdp8np3wcEFmLr2i+lWCGRqVSV3Z4ok71HDfOvj3zBWpDl DuTl7T6zo0+s6wriIx/egaNl6jDkRvYOJXypsrUNfVgU8IdsAa4m26L2zW6SPb6tqRcT KlPn5BFmlrnmzIKsrY75jFKNvAcyop6H1JqYgFKzGlr0S3II1R/MqRlnhXI0tBGtgnGd RhxnERI5/DOJEuQ/wNNZLLdjpwCo3A2dWrKoydQg1ETdcajMDcw7vkpyEBjhfxjb+V+a MsTw== X-Gm-Message-State: ACrzQf15FDZJp0zDLBlj4e3Tgi99QSxircRBgMpMx9HvChGnCBRVVIHc H3oiSNCWDRsqfBNq4hqWrbFISo+Nzcx2GjUEo9uNug== X-Received: by 2002:a05:6902:724:b0:6c0:1784:b6c7 with SMTP id l4-20020a056902072400b006c01784b6c7mr40939021ybt.15.1666816792883; Wed, 26 Oct 2022 13:39:52 -0700 (PDT) MIME-Version: 1.0 References: <20221026185846.3983888-1-quic_eberman@quicinc.com> <20221026185846.3983888-5-quic_eberman@quicinc.com> <56a47a6c-29b9-b8f3-e39b-a5841ddf7394@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Wed, 26 Oct 2022 23:39:41 +0300 Message-ID: Subject: Re: [PATCH v6 04/21] arm64: smccc: Include alternative-macros.h To: Elliot Berman Cc: Bjorn Andersson , Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Murali Nalajala , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Prakruthi Deepak Heragu , Andy Gross , Jassi Brar , linux-arm-kernel@lists.infradead.org, Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Will Deacon , Catalin Marinas , Arnd Bergmann , Greg Kroah-Hartman , Srinivas Kandagatla , Amol Maheshwari , Kalle Valo , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Wed, 26 Oct 2022 at 23:24, Elliot Berman wrot= e: > > > On 10/26/2022 12:46 PM, Dmitry Baryshkov wrote: > > On 26/10/2022 21:58, Elliot Berman wrote: > >> Fix build error when CONFIG_ARM64_SVE is selected and > >> asm/alternative-macros.h wasn't implicitly included by another header. > > > > Please include the build error into the commit message to help anybody > > looking for the solution for the same issue. > > > > Now that the gunyah_hypercall implementation has been moved to its own > module, this change isn't needed because asm/alternative-macros.h got > implicitly included now. I can drop this, although not sure if we think > it's still correct to have it? > > After I got rid of the other header files, for reference: > > In file included from arch/arm64/gunyah/gunyah_hypercall.c:6: > arch/arm64/gunyah/gunyah_hypercall.c: In function =E2=80=98gh_hypercall_m= sgq_send=E2=80=99: > ./include/linux/arm-smccc.h:387:25: error: expected string literal > before =E2=80=98ALTERNATIVE=E2=80=99 > 387 | #define SMCCC_SVE_CHECK ALTERNATIVE("nop \n", "bl > __arm_smccc_sve_check \n", \ Please add this message to the commit log. > > >> > >> 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) > > --=20 With best wishes Dmitry