From: Kent Overstreet Date: Fri, 17 Feb 2023 21:06:51 +0000 (-0500) Subject: bcachefs: Fix integer overflow warnings on 32 bit X-Git-Tag: io_uring-6.7-2023-11-10~119^2~503 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f2c6e4b3621778103805fe4d5f384db3fcd96159;p=linux-block.git bcachefs: Fix integer overflow warnings on 32 bit Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c index 12f4107662fc..e0c93da2523f 100644 --- a/fs/bcachefs/util.c +++ b/fs/bcachefs/util.c @@ -428,8 +428,8 @@ static const struct time_unit { { "us", NSEC_PER_USEC }, { "ms", NSEC_PER_MSEC }, { "s", NSEC_PER_SEC }, - { "m", NSEC_PER_SEC * 60}, - { "h", NSEC_PER_SEC * 3600}, + { "m", (u64) NSEC_PER_SEC * 60}, + { "h", (u64) NSEC_PER_SEC * 3600}, { "eon", U64_MAX }, };