Re: [PATCH v2 2/4] arm64: vdso32: Detect binutils support for dmb ishld

From: Vincenzo Frascino
Date: Thu Sep 26 2019 - 16:17:52 EST


On 9/26/19 3:26 PM, Catalin Marinas wrote:
> On Thu, Sep 26, 2019 at 02:38:03PM +0100, Vincenzo Frascino wrote:
>> diff --git a/arch/arm64/Kbuild b/arch/arm64/Kbuild
>> index d6465823b281..75cf8c796d0e 100644
>> --- a/arch/arm64/Kbuild
>> +++ b/arch/arm64/Kbuild
>> @@ -4,3 +4,9 @@ obj-$(CONFIG_NET) += net/
>> obj-$(CONFIG_KVM) += kvm/
>> obj-$(CONFIG_XEN) += xen/
>> obj-$(CONFIG_CRYPTO) += crypto/
>> +
>> +# as-instr-compat
>> +# Usage: cflags-y += $(call as-instr-compat,instr,option1,option2)
>> +
>> +as-instr-compat = $(call try-run,\
>> + printf "%b\n" "$(1)" | $(COMPATCC) $(KBUILD_AFLAGS) -c -x assembler -o "$$TMP" -,$(2),$(3))
>
> This doesn't seem to be used anywhere. Was it meant to be replaced by
> cc32-as-instr?
>

Forgot to squash a stash here. Will fix in v3. This is not used anymore was just
an experiment.

--
Regards,
Vincenzo