]> git.baikalelectronics.ru Git - kernel.git/commit
crypto, x86: aesni - fix token pasting for clang
authorMichael Davidson <md@google.com>
Wed, 15 Mar 2017 22:36:00 +0000 (15:36 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Mar 2017 14:02:55 +0000 (22:02 +0800)
commita35e4b1fa0ea968fd4af798fdc5c1cd0ba955ec9
tree8798b4500e1f9d2fd3cbe05874c8fa1ebf349b69
parentd38a462c2b6b5d7020b129a46bd5e0052ec2bd72
crypto, x86: aesni - fix token pasting for clang

aes_ctrby8_avx-x86_64.S uses the C preprocessor for token pasting
of character sequences that are not valid preprocessor tokens.
While this is allowed when preprocessing assembler files it exposes
an incompatibilty between the clang and gcc preprocessors where
clang does not strip leading white space from macro parameters,
leading to the CONCAT(%xmm, i) macro expansion on line 96 resulting
in a token with a space character embedded in it.

While this could be resolved by deleting the offending space character,
the assembler is perfectly capable of doing the token pasting correctly
for itself so we can just get rid of the preprocessor macros.

Signed-off-by: Michael Davidson <md@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aes_ctrby8_avx-x86_64.S