diff options
| author | 2017-04-19 19:39:13 +0200 | |
|---|---|---|
| committer | 2017-04-19 12:07:28 -0600 | |
| commit | ef697902a1328e4a205585612c98f476f25b97ef (patch) | |
| tree | f130925f1067ac0be351e42c159c2029fc74cab7 /include/linux/blkdev.h | |
| parent | block: make __blk_end_bidi_request private (diff) | |
| download | linux-dev-ef697902a1328e4a205585612c98f476f25b97ef.tar.xz linux-dev-ef697902a1328e4a205585612c98f476f25b97ef.zip | |
lightnvm: assume 64-bit lba numbers
The driver uses both u64 and sector_t to refer to offsets, and assigns between the
two. This causes one harmless warning when sector_t is 32-bit:
drivers/lightnvm/pblk-rb.c: In function 'pblk_rb_write_entry_gc':
include/linux/lightnvm.h:215:20: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
drivers/lightnvm/pblk-rb.c:324:22: note: in expansion of macro 'ADDR_EMPTY'
As the driver is already doing this inconsistently, changing the type
won't make it worse and is an easy way to avoid the warning.
Fixes: a4bd217b4326 ("lightnvm: physical block device (pblk) target")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions
