[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200522103406.GK30374@kadam>
Date: Fri, 22 May 2020 13:34:07 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: MugilRaj <dmugil2000@...il.com>
Cc: devel@...verdev.osuosl.org, Kirk Reiser <kirk@...sers.ca>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
speakup@...ux-speakup.org, linux-kernel@...r.kernel.org,
Samuel Thibault <samuel.thibault@...-lyon.org>,
Chris Brannon <chris@...-brannons.com>
Subject: Re: [PATCH] taging: speakup: remove volatile
On Fri, May 22, 2020 at 02:46:28PM +0530, MugilRaj wrote:
> fix checkpatch.pl warning, which is Use of volatile is usually wrong: see
> Documentation/process/volatile-considered-harmful.rst
> Signed-off-by: MugilRaj <dmugil2000@...il.com>
Please put a blank before the Signed-off-by line.
Probably there should be a space between your first and last name. It's
supposed to your legal name like for signing a legal document so use
whatever is appropriate legal documents in your country.
Also the Documentation/process/volatile-considered-harmful.rst explains
that people often use "volatile" when they should be using locking for
synchronization. That seems to be the case here. So the correct fix is
to add locking. That's a little bit complicated to do and requires
testing.
If we apply this patch, then we have silenced the warning so now someone
will have to look for the bug. But if we leave it as-is, then everyone
will know that the code is buggy. So let's leave it as-is until we are
able to fix the bug.
It's always better to have easy to find bugs, than hidden bugs.
regards,
dan carpenter
Powered by blists - more mailing lists