Thread (26 messages) 26 messages, 3 authors, 2018-03-22

Re: [for-4.17 20/20] bcache: Fix a compiler warning in bcache_device_init()

From: Coly Li <hidden>
Date: 2018-03-22 04:18:06

On 22/03/2018 2:38 AM, Michael Lyle wrote:
On 03/18/2018 06:32 PM, Coly Li wrote:
quoted
On 19/03/2018 8:36 AM, Michael Lyle wrote:
quoted
From: Bart Van Assche <redacted>

Avoid that building with W=1 triggers the following compiler warning:

drivers/md/bcache/super.c:776:20: warning: comparison is always false due to limited range of data type [-Wtype-limits]
      d->nr_stripes > SIZE_MAX / sizeof(atomic_t)) {
                    ^

Signed-off-by: Bart Van Assche <redacted>
Reviewed-by: Michael Lyle <redacted>
There is a missing Reviewed-by: Coly Li [off-list ref] from me :-)
Hi Coly--- sorry that I lost these.
The major motivation is just making my employer know where they pay for
my time :-)

Thanks.

Coly Li
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help