Commit db3a57db authored by Chenxi Mao's avatar Chenxi Mao
Browse files

Fix crct10dif-neon-asm_64 build error on clang

SUSE inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6E6SR
Reference: https://bugs.llvm.org/show_bug.cgi?id=38642

--------------------------------

If openEuler kernel build with clang, the error log is as below:
```
[  158s] ../arch/arm64/crypto/crct10dif-neon-asm_64.S:86:10: error: literal value out of range for directive
[  158s]  LDR Q6,=0xe658000000000000044c000000000000
```
Clang compiler didn't support this kind of code style, so changed the code
style to support both GCC and clang.

Fix the code style as below:
```
LDR		Q6, .Ldata1
.Ldata1:
	.word	0x00000000
	.word	0x044c0000
	.word	0x00000000
	.word	0xe6580000
```
Above code style can be supported by both gcc and clang compilers.

Tested and bring up on clang-15 and gcc-10.

Link: https://bugs.llvm.org/show_bug.cgi?id=38642


Signed-off-by: default avatarChenxi Mao <chenxi.mao@suse.com>
parent 2da4a932
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment