[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190430095821.GD2269@kadam>
Date: Tue, 30 Apr 2019 12:58:21 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Nicholas Mc Guire <hofrat@...dl.org>
Cc: David Lin <dtwlin@...il.com>, devel@...verdev.osuosl.org,
Alex Elder <elder@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Johan Hovold <johan@...nel.org>, linux-kernel@...r.kernel.org,
greybus-dev@...ts.linaro.org
Subject: Re: [PATCH] staging: greybus: use proper return type for
wait_for_completion_timeout
On Sat, Apr 27, 2019 at 05:27:25AM +0200, Nicholas Mc Guire wrote:
> wait_for_completion_timeout() returns unsigned long (0 on timeout or
> remaining jiffies) not int.
>
Yeah, but it's fine though because 10000 / 256 fits into int without a
problem.
I'm not sure this sort of patch is worth it when it's just a style
debate instead of a bugfix. I'm a little bit torn about this. In
Smatch, I run into this issue one in a while where Smatch doesn't know
if the timeout is less than int. Right now I hacked the DB to say that
these functions always return < INT_MAX.
Anyway, for sure the commit message should say that it's just a cleanup
and not a bugfix.
regards,
dan carpenter
Powered by blists - more mailing lists