From: Alex Elder Date: Mon, 3 Aug 2015 17:57:15 +0000 (-0500) Subject: greybus: loopback: use a 32-bit count X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1286^2~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e13fc28f728ae6aa5e72c90a35d4fb0298205c6c;p=linux-2.6-block.git greybus: loopback: use a 32-bit count The count of statistical samples recorded is currently a 64-bit value. 32 bits is sufficient, and in fact anything more than that won't work for the do_div() call it's pass to anyway. So make the count field be 32 bits. Signed-off-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 2ec6c8071754..580e00247a78 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -27,7 +27,7 @@ struct gb_loopback_stats { u32 max; u64 avg; u64 sum; - u64 count; + u32 count; }; struct gb_loopback {