lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH6sp9Ppipc=B-z+B89VRDPppjdFLXv=g=7VtQ-yDtZQ1uvA1g@mail.gmail.com>
Date:   Thu, 29 Jun 2017 14:31:02 +0200
From:   Frans Klaver <fransklaver@...il.com>
To:     Jaya Durga <rjdurga@...il.com>
Cc:     Greg KH <gregkh@...uxfoundation.org>,
        driverdevel <devel@...verdev.osuosl.org>,
        Jaya Durga <jayad@...c.in>, juliana.orod@...il.com,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        sergio.paracuellos@...il.com
Subject: Re: [PATCH 6/6] Staging: wlan-ng: hfa384x.h:Fix use of volatile is
 usually wrong

On Thu, Jun 29, 2017 at 12:25 PM, Jaya Durga <rjdurga@...il.com> wrote:
> Fix checkpatch.pl issue
> WARNING: Use of volatile is usually wrong:
> see Documentation/process/volatile-considered-harmful.rst

Now I've only had a very quick look at the code using this. Could you
elaborate on why just removing the volatile keyword is enough, and
that this isn't related to some smelly bit of code that should be
implemented differently?


> Signed-off-by: Jaya Durga <jayad@...c.in>
> ---
>  drivers/staging/wlan-ng/hfa384x.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
> index 310e2c4..015945f 100644
> --- a/drivers/staging/wlan-ng/hfa384x.h
> +++ b/drivers/staging/wlan-ng/hfa384x.h
> @@ -1175,7 +1175,7 @@ struct hfa384x_usbctlx {
>         enum ctlx_state state;  /* Tracks running state */
>
>         struct completion done;
> -       volatile int reapable;  /* Food for the reaper task */
> +       int reapable;   /* Food for the reaper task */
>
>         ctlx_cmdcb_t cmdcb;     /* Async command callback */
>         ctlx_usercb_t usercb;   /* Async user callback, */
> --
> 1.9.1

Frans

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ