]> 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)
commit50452630b4f5f2c1a320bc47d98bb61ab55be167
tree889cbfbbd5ed2dcb789a0444dd8c8178e3596b1c
parentb48e0d7fe5b5eb1732dfe0b8057a6c721c42f2d4
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