selinux: provide __le variables explicitly
authorNicholas Mc Guire <hofrat@osadl.org>
Wed, 8 May 2019 06:21:17 +0000 (08:21 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 21 May 2019 19:49:21 +0000 (15:49 -0400)
commit8ba1d53739d960cf118762da7850e625a8b462d9
tree889cbfbbd5ed2dcb789a0444dd8c8178e3596b1c
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
selinux: provide __le variables explicitly

While the endiannes is being handled properly sparse was unable to verify
this due to type inconsistency. So introduce an additional __le32
respectively _le64 variable to be passed to le32/64_to_cpu() to allow
sparse to verify proper typing. Note that this patch does not change
the generated binary on little-endian systems - on 32bit powerpc it
does change the binary.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/ebitmap.c