From: Greg KH <gregkh@linuxfoundation.org>
To: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 2/3] staging: sm750fb: Remove volatile modifier
Date: Sat, 24 Oct 2015 19:02:22 -0700 [thread overview]
Message-ID: <20151025020222.GA4293@kroah.com> (raw)
In-Reply-To: <916e1321dc223d94f8793f4d402ab8922adfe3f3.1445183495.git.amitoj1606@gmail.com>
On Sun, Oct 18, 2015 at 09:30:13PM +0530, Amitoj Kaur Chawla wrote:
> 'volatile' is not needed for regular variable. Problem found using checkpatch.pl
> WARNING: Use of volatile is usually wrong: see Documentation/volatile-considered -harmful.txt
>
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
> ---
> drivers/staging/sm750fb/sm750.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/sm750fb/sm750.h b/drivers/staging/sm750fb/sm750.h
> index 52fe945..68eef34 100644
> --- a/drivers/staging/sm750fb/sm750.h
> +++ b/drivers/staging/sm750fb/sm750.h
> @@ -15,9 +15,9 @@ extern int smi_indent;
>
> struct lynx_accel {
> /* base virtual address of DPR registers */
> - volatile unsigned char __iomem *dprBase;
> + unsigned char __iomem *dprBase;
> /* base virtual address of de data port */
> - volatile unsigned char __iomem *dpPortBase;
> + unsigned char __iomem *dpPortBase;
>
> /* function fointers */
> void (*de_init)(struct lynx_accel *);
> @@ -79,7 +79,7 @@ struct lynx_cursor {
> char __iomem *vstart;
> int offset;
> /* mmio addr of hw cursor */
> - volatile char __iomem *mmio;
> + char __iomem *mmio;
Have you verified that the code is still working properly? Sometimes
this isn't as simple as just deleting the modifier :(
thanks,
greg k-h
next prev parent reply other threads:[~2015-10-25 8:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-18 15:54 [PATCH 0/3] staging: Fix multiple issues Amitoj Kaur Chawla
2015-10-18 15:57 ` [PATCH 1/3] staging: sm750fb: Replace uint32_t with u32 Amitoj Kaur Chawla
2015-10-18 16:00 ` [PATCH 2/3] staging: sm750fb: Remove volatile modifier Amitoj Kaur Chawla
2015-10-25 2:02 ` Greg KH [this message]
2015-10-18 16:03 ` [PATCH 3/3] staging: lustre: ptlrpc: Replace seq_printf() with seq_puts() Amitoj Kaur Chawla
2015-10-25 1:38 ` [Outreachy kernel] " Greg KH
2015-10-25 14:30 ` Amitoj Kaur Chawla
2015-10-25 14:31 ` Julia Lawall
2015-10-26 16:40 ` Amitoj Kaur Chawla
2015-10-26 16:47 ` Julia Lawall
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=20151025020222.GA4293@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=amitoj1606@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.