summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/pblk-recovery.c
diff options
context:
space:
mode:
authorJavier González <jg@lightnvm.io>2017-06-30 17:56:34 +0200
committerJens Axboe <axboe@kernel.dk>2017-06-30 19:08:18 +0200
commitf417aa0bd8c4b8fd3fecbc23819a994436709dcc (patch)
tree7174de496c5ed3bf3bf0eae242c23e277179473c /drivers/lightnvm/pblk-recovery.c
parentnvme: Makefile: remove dead build rule (diff)
downloadlinux-f417aa0bd8c4b8fd3fecbc23819a994436709dcc.tar.xz
linux-f417aa0bd8c4b8fd3fecbc23819a994436709dcc.zip
lightnvm: pblk: fix bad le64 assignations
Use the right types and conversions on le64 variables. Reported by sparse. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <matias@cnexlabs.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-recovery.c')
-rw-r--r--drivers/lightnvm/pblk-recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lightnvm/pblk-recovery.c b/drivers/lightnvm/pblk-recovery.c
index abf36f587477..7e1c314f2766 100644
--- a/drivers/lightnvm/pblk-recovery.c
+++ b/drivers/lightnvm/pblk-recovery.c
@@ -395,7 +395,7 @@ next_pad_rq:
for (j = 0; j < pblk->min_write_pgs; j++, i++, w_ptr++) {
struct ppa_addr dev_ppa;
- u64 addr_empty = cpu_to_le64(ADDR_EMPTY);
+ __le64 addr_empty = cpu_to_le64(ADDR_EMPTY);
dev_ppa = addr_to_gen_ppa(pblk, w_ptr, line->id);