staging: sm750fb: Remove volatile
Subsystems (2)
PATCH 1/1 staging: sm750fb: Remove volatile
Remove volatile to fix checkpatch.pl warning.
--- drivers/staging/sm750fb/sm750.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/sm750fb/sm750.h +1 -1
@@ -52,7 +52,7 @@ struct lynx_accel {/* base virtual address of DPR registers */ volatile unsigned char __iomem *dprBase;/* base virtual address of de data port */ -volatile unsigned char __iomem *dpPortBase; +unsigned char __iomem *dpPortBase;/* function pointers */ void (*de_init)(struct lynx_accel *accel);
Signature · 1 line
2.25.1
On Thu, Apr 14, 2022 at 02:09:15AM +0530, Aliya Rahmani wrote:
Hi Aliya,
Wondering why the recipient list different than this:
$ perl scripts/get_maintainer.pl --nogit-fallback --no-rolestats -f drivers/staging/sm750fb/sm750.h Sudip Mukherjee <[email protected]> Teddy Wang <[email protected]> Greg Kroah-Hartman <[email protected]> [email protected] [email protected] [email protected]
Quoted 24 lines
Remove volatile to fix checkpatch.pl warning.
Signed-off-by Aliya Rahmani <[email protected]>--- drivers/staging/sm750fb/sm750.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/sm750.h +1
-1@@ -52,7 +52,7 @@ struct lynx_accel {/* base virtual address of DPR registers */ volatile unsigned char __iomem *dprBase;/* base virtual address of de data port */ -volatile unsigned char __iomem *dpPortBase; +unsigned char __iomem *dpPortBase;/* function pointers */ void (*de_init)(struct lynx_accel *accel);Signature · 1 line
2.25.1
Quoted 7 lines · Alison Schofield
On Thu, Apr 14, 2022 at 02:09:15AM +0530, Aliya Rahmani wrote:
Hi Aliya,
Wondering why the recipient list different than this:
Quoted 8 lines
$ perl scripts/get_maintainer.pl --nogit-fallback --no-rolestats -f drivers/staging/sm750fb/sm750.h Sudip Mukherjee <[email protected]> Teddy Wang <[email protected]> Greg Kroah-Hartman <[email protected]> [email protected] [email protected] [email protected]
Do I need to include all the maintainers and mailing lists?
Quoted 19 lines
Quoted 19 lines
Remove volatile to fix checkpatch.pl warning.
Signed-off-by Aliya Rahmani <[email protected]>--- drivers/staging/sm750fb/sm750.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/sm750.h +1
-1@@ -52,7 +52,7 @@ struct lynx_accel {/* base virtual address of DPR registers */ volatile unsigned char __iomem *dprBase;/* base virtual address of de data port */ -volatile unsigned char __iomem *dpPortBase; +unsigned char __iomem *dpPortBase;
Quoted 6 lines
Quoted 6 lines
drivers/staging/sm750fb/sm750.h +0
-1/* function pointers */ void (*de_init)(struct lynx_accel *accel); --2.25.1
Thanks,
Aliya
Quoted 17 lines · Aliya
Quoted 7 lines · Alison Schofield
On Thu, Apr 14, 2022 at 02:09:15AM +0530, Aliya Rahmani wrote:
Hi Aliya,
Wondering why the recipient list different than this:
Quoted 8 lines
$ perl scripts/get_maintainer.pl --nogit-fallback --no-rolestats -f drivers/staging/sm750fb/sm750.h Sudip Mukherjee <[email protected]> Teddy Wang <[email protected]> Greg Kroah-Hartman <[email protected]> [email protected] [email protected] [email protected]
Quoted 1 line
Do I need to include all the maintainers and mailing lists?
Usually - yes. It's possible that a maintainer has instructed otherwise, and in that case the maintainers file can be updated. That's why I posed it as a 'wondering why' question :)
Instructions for using get_maintainers.pl are here:
https://kernelnewbies.org/Outreachyfirstpatch
And, here's a prior round email discussion of same:
https://lore.kernel.org/outreachy/20211015171331.GA431883@alison-desk/
Alison
Quoted 33 lines
Quoted 24 lines
Quoted 24 lines
Remove volatile to fix checkpatch.pl warning.
Signed-off-by Aliya Rahmani <[email protected]>--- drivers/staging/sm750fb/sm750.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/sm750.h +1
-1@@ -52,7 +52,7 @@ struct lynx_accel {/* base virtual address of DPR registers */ volatile unsigned char __iomem *dprBase;/* base virtual address of de data port */ -volatile unsigned char __iomem *dpPortBase; +unsigned char __iomem *dpPortBase;Quoted 6 lines
Quoted 6 lines
drivers/staging/sm750fb/sm750.h +0
-1/* function pointers */ void (*de_init)(struct lynx_accel *accel); --2.25.1
Thanks,
Aliya
Greg KH
maintainerQuoted 12 lines · Aliya Rahmani
Remove volatile to fix checkpatch.pl warning.
Signed-off-by Aliya Rahmani <[email protected]>--- drivers/staging/sm750fb/sm750.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/sm750.h +0
-0
drivers/staging/sm750fb/sm750.h struct lynx_accel { · line 55
Quoted 5 lines
drivers/staging/sm750fb/sm750.h +1
-1@@ -52,7 +52,7 @@ struct lynx_accel {/* base virtual address of DPR registers */ volatile unsigned char __iomem *dprBase;/* base virtual address of de data port */ -volatile unsigned char __iomem *dpPortBase; +unsigned char __iomem *dpPortBase;
So you have properly determined that this code is now fixed and does not require this volatile marking? :)
Please don't blindly follow checkpatch suggestions without understanding what they do. While the use of volatile is probably wrong here, you need to ensure that you can successfully remove this so you need to prove it in the changelog text that all is still ok.
Also, why did you only remove one?
thanks,
greg k-h
Quoted 28 lines · Greg KH
Quoted 12 lines · Aliya Rahmani
Remove volatile to fix checkpatch.pl warning.
Signed-off-by Aliya Rahmani <[email protected]>--- drivers/staging/sm750fb/sm750.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/sm750.h +0
-0drivers/staging/sm750fb/sm750.h struct lynx_accel { · line 55
Quoted 5 lines
drivers/staging/sm750fb/sm750.h +1
-1@@ -52,7 +52,7 @@ struct lynx_accel {/* base virtual address of DPR registers */ volatile unsigned char __iomem *dprBase;/* base virtual address of de data port */ -volatile unsigned char __iomem *dpPortBase; +unsigned char __iomem *dpPortBase;So you have properly determined that this code is now fixed and does not require this volatile marking? :)
Please don't blindly follow checkpatch suggestions without understanding what they do. While the use of volatile is probably wrong here, you need to ensure that you can successfully remove this so you need to prove it in the changelog text that all is still ok.
Quoted 5 lines
Also, why did you only remove one?
thanks,
greg k-h
My apologies, I'll verify and understand the code before following checkpatch suggestions.
Thanks,
Aliya
Quoted 2 lines · Aliya Rahmani
Remove volatile to fix checkpatch.pl warning.
You want to sound more confident like you know what you're talking about and not just doing things because checkpatch says. "The volatile is meaningless here and checkpatch.pl complains about it. Delete it."
drivers/staging/sm750fb/sm750.h struct lynx_accel { · line 53
Quoted 12 lines
Signed-off-by Aliya Rahmani <[email protected]>--- drivers/staging/sm750fb/sm750.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/sm750.h +0
-0@@ -52,7 +52,7 @@ struct lynx_accel {/* base virtual address of DPR registers */ volatile unsigned char __iomem *dprBase;
^^^^^^^^
Missed one here.
drivers/staging/sm750fb/sm750.h struct lynx_accel { · line 55
Quoted 3 lines
drivers/staging/sm750fb/sm750.h +1
-1/* base virtual address of de data port */ -volatile unsigned char __iomem *dpPortBase; +unsigned char __iomem *dpPortBase;
regards,
dan carpenter