From: alaviss Date: Wed, 5 Jul 2017 17:38:20 +0000 (+0700) Subject: Clang fixes X-Git-Tag: zfs-0.7.0-rc5~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=688c94c5c03c693f91d48adcf4b8826f8e16c6fd;p=zfs Clang fixes Clang doesn't support `/` as comment in assembly, this patch replaces them with `#`. Reviewed-by: Brian Behlendorf Reviewed-by: George Melikov Signed-off-by: Leorize Closes #6311 --- diff --git a/module/icp/asm-x86_64/sha2/sha256_impl.S b/module/icp/asm-x86_64/sha2/sha256_impl.S index 867dbb0f2..766b75355 100644 --- a/module/icp/asm-x86_64/sha2/sha256_impl.S +++ b/module/icp/asm-x86_64/sha2/sha256_impl.S @@ -100,12 +100,12 @@ ENTRY_NP(SHA256TransformBlocks) mov %rdx,16*4+2*8(%rsp) # save end pointer, "3rd" arg mov %rbp,16*4+3*8(%rsp) # save copy of %rsp - /.picmeup %rbp - / The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts - / the address of the "next" instruction into the target register - / (%rbp). This generates these 2 instructions: + #.picmeup %rbp + # The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts + # the address of the "next" instruction into the target register + # (%rbp). This generates these 2 instructions: lea .Llea(%rip),%rbp - /nop / .picmeup generates a nop for mod 8 alignment--not needed here + #nop # .picmeup generates a nop for mod 8 alignment--not needed here .Llea: lea K256-.(%rbp),%rbp diff --git a/module/icp/asm-x86_64/sha2/sha512_impl.S b/module/icp/asm-x86_64/sha2/sha512_impl.S index 4acc72cbc..6e3761876 100644 --- a/module/icp/asm-x86_64/sha2/sha512_impl.S +++ b/module/icp/asm-x86_64/sha2/sha512_impl.S @@ -101,12 +101,12 @@ ENTRY_NP(SHA512TransformBlocks) mov %rdx,16*8+2*8(%rsp) # save end pointer, "3rd" arg mov %rbp,16*8+3*8(%rsp) # save copy of %rsp - /.picmeup %rbp - / The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts - / the address of the "next" instruction into the target register - / (%rbp). This generates these 2 instructions: + #.picmeup %rbp + # The .picmeup pseudo-directive, from perlasm/x86_64_xlate.pl, puts + # the address of the "next" instruction into the target register + # (%rbp). This generates these 2 instructions: lea .Llea(%rip),%rbp - /nop / .picmeup generates a nop for mod 8 alignment--not needed here + #nop # .picmeup generates a nop for mod 8 alignment--not needed here .Llea: lea K512-.(%rbp),%rbp