diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-08-30 11:42:10 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-09-01 13:56:40 -0600 |
commit | 1530486cda2df87d66af8bd3aa069c12b6fada41 (patch) | |
tree | d4a656acf3df1aedfc56c9ecaa2cc1ab2265c13e /block/blk-wbt.c | |
parent | 2f79136ba2df07ce7563158f7948c4ce770f8132 (diff) | |
download | linux-1530486cda2df87d66af8bd3aa069c12b6fada41.tar.gz linux-1530486cda2df87d66af8bd3aa069c12b6fada41.tar.bz2 linux-1530486cda2df87d66af8bd3aa069c12b6fada41.zip |
bfq: Suppress compiler warnings about comparisons
This patch avoids that the following warnings are reported when
building with W=1:
block/bfq-iosched.c: In function 'bfq_back_seek_max_store':
block/bfq-iosched.c:4860:13: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (__data < (MIN)) \
^
block/bfq-iosched.c:4876:1: note: in expansion of macro 'STORE_FUNCTION'
STORE_FUNCTION(bfq_back_seek_max_store, &bfqd->bfq_back_max, 0, INT_MAX, 0);
^~~~~~~~~~~~~~
block/bfq-iosched.c: In function 'bfq_slice_idle_store':
block/bfq-iosched.c:4860:13: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (__data < (MIN)) \
^
block/bfq-iosched.c:4879:1: note: in expansion of macro 'STORE_FUNCTION'
STORE_FUNCTION(bfq_slice_idle_store, &bfqd->bfq_slice_idle, 0, INT_MAX, 2);
^~~~~~~~~~~~~~
block/bfq-iosched.c: In function 'bfq_slice_idle_us_store':
block/bfq-iosched.c:4892:13: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (__data < (MIN)) \
^
block/bfq-iosched.c:4899:1: note: in expansion of macro 'USEC_STORE_FUNCTION'
USEC_STORE_FUNCTION(bfq_slice_idle_us_store, &bfqd->bfq_slice_idle, 0,
^~~~~~~~~~~~~~~~~~~
Acked-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-wbt.c')
0 files changed, 0 insertions, 0 deletions