]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: rework sparse for lib/xor_vmx.c
authorDaniel Axtens <dja@axtens.net>
Tue, 26 Apr 2016 13:49:09 +0000 (23:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Apr 2016 23:33:37 +0000 (09:33 +1000)
commit61213b368a0fa5d9a5bbd1012019a6c0b091927b
tree5def78243d6c2111fb214e43aa72bd16ee80854a
parentd2c43db9e841677486fed3d2d70574d7e6c8fc0d
powerpc: rework sparse for lib/xor_vmx.c

Sparse doesn't seem to be passing -maltivec around properly, leading
to lots of errors:

.../include/altivec.h:34:2: error: Use the "-maltivec" flag to enable PowerPC AltiVec support
arch/powerpc/lib/xor_vmx.c:27:16: error: Expected ; at end of declaration
arch/powerpc/lib/xor_vmx.c:27:16: error: got signed
arch/powerpc/lib/xor_vmx.c:60:9: error: No right hand side of '*'-expression
arch/powerpc/lib/xor_vmx.c:60:9: error: Expected ; at end of statement
arch/powerpc/lib/xor_vmx.c:60:9: error: got v1_in
...
arch/powerpc/lib/xor_vmx.c:87:9: error: too many errors

Only include the altivec.h header for non-__CHECKER__ builds.
For builds with __CHECKER__, make up some stubs instead, as
suggested by Balbir. (The vector size of 16 is arbitrary.)

Suggested-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Tested-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/xor_vmx.c