Re: [PATCH] selftests: kvm: remove reassignment of non-absolute variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 09, 2020, Bill Wendling wrote:
> Clang's integrated assembler does not allow symbols with non-absolute
> values to be reassigned. Modify the interrupt entry loop macro to be
> compatible with IAS by using a label and an offset.
> 
> Cc: Jian Cai <caij2003@xxxxxxxxx>
> Signed-off-by: Bill Wendling <morbo@xxxxxxxxxx>
> References: https://lore.kernel.org/lkml/20200714233024.1789985-1-caij2003@xxxxxxxxx/
> ---
>  tools/testing/selftests/kvm/lib/x86_64/handlers.S | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/testing/selftests/kvm/lib/x86_64/handlers.S b/tools/testing/selftests/kvm/lib/x86_64/handlers.S
> index aaf7bc7d2ce1..3f9181e9a0a7 100644
> --- a/tools/testing/selftests/kvm/lib/x86_64/handlers.S
> +++ b/tools/testing/selftests/kvm/lib/x86_64/handlers.S
> @@ -54,9 +54,9 @@ idt_handlers:
>  	.align 8
>  
>  	/* Fetch current address and append it to idt_handlers. */
> -	current_handler = .
> +0 :
>  .pushsection .rodata
> -.quad current_handler
> +	.quad 0b

Bit of a silly nit: can we use a named label, or at least a non-zero shorthand?
It's really easy to misread "0b" as zeroing out the value, at least for me.

>  .popsection
>  
>  	.if ! \has_error
> -- 
> 2.29.2.576.ga3fc446d84-goog
> 



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux