]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit681911e75d66d48ccb82e5feca7b94825e1e6928
tree889cbfbbd5ed2dcb789a0444dd8c8178e3596b1c
parent49250288820449e26abffc1305ba221bd05ce90d
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