From: Greg KH <gregkh@linuxfoundation.org>
To: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v5 2/6] Staging: emxx_udc: Remove volatile from union usb_regs_access
Date: Thu, 26 Feb 2015 15:21:45 -0800 [thread overview]
Message-ID: <20150226232145.GA21368@kroah.com> (raw)
In-Reply-To: <e7ac0d2f1b92c9d1439cb862e75cc3069562d8c6.1424786861.git.hamohammed.sa@gmail.com>
On Tue, Feb 24, 2015 at 05:31:07PM +0300, Haneen Mohammed wrote:
> volatile applies to a concrete variable definition, else it is useless.
> This patch removes volatile from union usb_regs_access:
> - to address compiler warning: "useless type qualifier"
> - and fix checkpatch.pl warning about using volatiles:
> "WARNING: Use of volatile is usually wrong"
>
> Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
> ---
> v5: Justify the removal of volatile
>
> drivers/staging/emxx_udc/emxx_udc.c | 24 ++++++++++++------------
> drivers/staging/emxx_udc/emxx_udc.h | 2 +-
> 2 files changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c
> index e33ccc4..c9f5e5d 100644
> --- a/drivers/staging/emxx_udc/emxx_udc.c
> +++ b/drivers/staging/emxx_udc/emxx_udc.c
> @@ -567,7 +567,7 @@ static int EP0_out_PIO(struct nbu2ss_udc *udc, u8 *pBuf, u32 length)
> u32 i;
> int nret = 0;
> u32 iWordLength = 0;
> - volatile union usb_reg_access *pBuf32 = (volatile union usb_reg_access *)pBuf;
> + union usb_reg_access *pBuf32 = (union usb_reg_access *)pBuf;
Just merge this with the previous patch please.
thanks,
greg k-h
next prev parent reply other threads:[~2015-02-26 23:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 14:18 [PATCH v5 0/6] Staging: emxx_udc: Fix checkpatch.pl warnings Haneen Mohammed
2015-02-24 14:23 ` [PATCH v5 1/6] Staging: emxx_udc: Fix do not add new typedefs Haneen Mohammed
2015-02-26 23:20 ` [Outreachy kernel] " Greg KH
2015-02-24 14:31 ` [PATCH v5 2/6] Staging: emxx_udc: Remove volatile from union usb_regs_access Haneen Mohammed
2015-02-26 23:21 ` Greg KH [this message]
2015-02-24 14:33 ` [PATCH v5 3/6] Staging: emxx_udc: Replace custom printk macro ERR with pr_err Haneen Mohammed
[not found] ` <20150226232212.GB21368@kroah.com>
2015-02-27 0:27 ` [Outreachy kernel] " Haneen Mohammed
2015-02-27 0:51 ` Greg KH
2015-02-24 14:36 ` [PATCH v5 4/6] Staging: emxx_udc: Replace custom printk macro ERR with dev_err Haneen Mohammed
2015-02-26 23:23 ` [Outreachy kernel] " Greg KH
2015-02-24 14:39 ` [PATCH v5 5/6] Staging: emxx_udc: Remove custom printk macro ERR Haneen Mohammed
2015-02-24 14:41 ` [PATCH v5 6/6] Staging: emxx_udc: Clean dev_err() logging Haneen Mohammed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150226232145.GA21368@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=hamohammed.sa@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.