Revision a9eb49c964884654dd6394cb6abe7ceb021c9c96 authored by Randy Dunlap on 03 October 2019, 02:23:15 UTC, committed by Jens Axboe on 03 October 2019, 20:21:32 UTC
sparse warns about incorrect type when using __be64 data. It is not being converted to CPU-endian but it should be. Fixes these sparse warnings: ../block/sed-opal.c:375:20: warning: incorrect type in assignment (different base types) ../block/sed-opal.c:375:20: expected unsigned long long [usertype] align ../block/sed-opal.c:375:20: got restricted __be64 const [usertype] alignment_granularity ../block/sed-opal.c:376:25: warning: incorrect type in assignment (different base types) ../block/sed-opal.c:376:25: expected unsigned long long [usertype] lowest_lba ../block/sed-opal.c:376:25: got restricted __be64 const [usertype] lowest_aligned_lba Fixes: 455a7b238cd6 ("block: Add Sed-opal library") Cc: Scott Bauer <scott.bauer@intel.com> Cc: Rafael Antognolli <rafael.antognolli@intel.com> Cc: linux-block@vger.kernel.org Reviewed-by: Jon Derrick <jonathan.derrick@intel.com> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent dc30102
File | Mode | Size |
---|---|---|
test | ||
.gitignore | -rw-r--r-- | 66 bytes |
Makefile | -rw-r--r-- | 3.2 KB |
algos.c | -rw-r--r-- | 6.1 KB |
altivec.uc | -rw-r--r-- | 3.3 KB |
avx2.c | -rw-r--r-- | 16.8 KB |
avx512.c | -rw-r--r-- | 17.7 KB |
int.uc | -rw-r--r-- | 3.7 KB |
mktables.c | -rw-r--r-- | 3.9 KB |
mmx.c | -rw-r--r-- | 3.6 KB |
neon.c | -rw-r--r-- | 2.0 KB |
neon.uc | -rw-r--r-- | 3.8 KB |
recov.c | -rw-r--r-- | 3.3 KB |
recov_avx2.c | -rw-r--r-- | 8.8 KB |
recov_avx512.c | -rw-r--r-- | 9.4 KB |
recov_neon.c | -rw-r--r-- | 2.6 KB |
recov_neon_inner.c | -rw-r--r-- | 2.3 KB |
recov_s390xc.c | -rw-r--r-- | 2.7 KB |
recov_ssse3.c | -rw-r--r-- | 9.1 KB |
s390vx.uc | -rw-r--r-- | 3.8 KB |
sse1.c | -rw-r--r-- | 4.6 KB |
sse2.c | -rw-r--r-- | 15.8 KB |
unroll.awk | -rw-r--r-- | 424 bytes |
vpermxor.uc | -rw-r--r-- | 2.7 KB |
x86.h | -rw-r--r-- | 2.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...