summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/pblk-core.c
diff options
context:
space:
mode:
authorAndy Shevchenko2019-02-11 13:25:04 +0100
committerJens Axboe2019-02-11 16:18:07 +0100
commite74ecf63ef9c3ff92bda531ed41a43ad4e75682e (patch)
tree989d7c3da90aff95dd38c04d59c75dcf1968bcec /drivers/lightnvm/pblk-core.c
parentlightnvm: pblk: use vfree to free metadata on error path (diff)
downloadkernel-qcow2-linux-e74ecf63ef9c3ff92bda531ed41a43ad4e75682e.tar.gz
kernel-qcow2-linux-e74ecf63ef9c3ff92bda531ed41a43ad4e75682e.tar.xz
kernel-qcow2-linux-e74ecf63ef9c3ff92bda531ed41a43ad4e75682e.zip
lightnvm: Use u64 instead of __le64 for CPU visible side
Sparse complains about using strict data types: drivers/lightnvm/pblk-read.c:254:43: warning: incorrect type in assignment (different base types) drivers/lightnvm/pblk-read.c:254:43: expected restricted __le64 <noident> drivers/lightnvm/pblk-read.c:254:43: got unsigned long long [unsigned] [usertype] <noident> drivers/lightnvm/pblk-read.c:255:29: warning: cast from restricted __le64 drivers/lightnvm/pblk-read.c:268:29: warning: cast from restricted __le64 drivers/lightnvm/pblk-read.c:328:41: warning: incorrect type in assignment (different base types) drivers/lightnvm/pblk-read.c:328:41: expected restricted __le64 <noident> drivers/lightnvm/pblk-read.c:328:41: got unsigned long long [unsigned] [usertype] <noident> In the code it seems explicit that lba_list_mem and lba_list_media members of struct pblk_pr_ctx are used on CPU side, which means they should not be of strict types. Change types of lba_list_mem and lba_list_media members to be u64. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Javier González <javier@javigon.com> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-core.c')
0 files changed, 0 insertions, 0 deletions