Repository navigation
Commit 1530486
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>1 parent 2f79136 commit 1530486
1 file changed
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4851 | 4851 | | |
4852 | 4852 | | |
4853 | 4853 | | |
4854 | | - | |
| 4854 | + | |
4855 | 4855 | | |
4856 | 4856 | | |
4857 | 4857 | | |
4858 | 4858 | | |
4859 | 4859 | | |
4860 | | - | |
4861 | | - | |
4862 | | - | |
4863 | | - | |
| 4860 | + | |
| 4861 | + | |
| 4862 | + | |
| 4863 | + | |
4864 | 4864 | | |
4865 | 4865 | | |
4866 | 4866 | | |
| |||
4883 | 4883 | | |
4884 | 4884 | | |
4885 | 4885 | | |
4886 | | - | |
| 4886 | + | |
4887 | 4887 | | |
4888 | 4888 | | |
4889 | 4889 | | |
4890 | 4890 | | |
4891 | 4891 | | |
4892 | | - | |
4893 | | - | |
4894 | | - | |
4895 | | - | |
| 4892 | + | |
| 4893 | + | |
| 4894 | + | |
| 4895 | + | |
4896 | 4896 | | |
4897 | 4897 | | |
4898 | 4898 | | |
| |||
0 commit comments