Thread (67 messages) 67 messages, 9 authors, 2022-11-11

Re: [PATCH v6 04/21] arm64: smccc: Include alternative-macros.h

From: Dmitry Baryshkov <hidden>
Date: 2022-10-26 19:47:24
Also in: linux-arm-msm, linux-devicetree, linux-doc, lkml

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.
quoted hunk ↗ jump to hunk
Signed-off-by: Elliot Berman <redacted>
---
  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 <asm/alternative-macros.h>
  
  #define SMCCC_SVE_CHECK ALTERNATIVE("nop \n",  "bl __arm_smccc_sve_check \n", \
  				    ARM64_SVE)
-- 
With best wishes
Dmitry


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help