All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: mt7621-dma: mtk-hsdma: make a variable non-volatile
@ 2020-03-12 12:15 Lourdes Pedrajas
  2020-03-12 12:29 ` Greg KH
  2020-03-12 12:31 ` [Outreachy kernel] " Stefano Brivio
  0 siblings, 2 replies; 6+ messages in thread
From: Lourdes Pedrajas @ 2020-03-12 12:15 UTC (permalink / raw)
  To: outreachy-kernel, gregkh, matthias.bgg; +Cc: Lourdes Pedrajas

Change variable declaration volatile unsigned long chan_issued to
unsigned long chan_issued

Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst

Issue found with checkpatch.pl

Signed-off-by: Lourdes Pedrajas <lu@pplo.net>
---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/mt7621-dma/mtk-hsdma.c b/drivers/staging/mt7621-dma/mtk-hsdma.c
index 20b898954416..e146c5bb5609 100644
--- a/drivers/staging/mt7621-dma/mtk-hsdma.c
+++ b/drivers/staging/mt7621-dma/mtk-hsdma.c
@@ -157,7 +157,7 @@ struct mtk_hsdam_engine {
 	struct device_dma_parameters dma_parms;
 	void __iomem *base;
 	struct tasklet_struct task;
-	volatile unsigned long chan_issued;
+	unsigned long chan_issued;
 
 	struct mtk_hsdma_chan chan[1];
 };
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-12 20:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-12 12:15 [PATCH] staging: mt7621-dma: mtk-hsdma: make a variable non-volatile Lourdes Pedrajas
2020-03-12 12:29 ` Greg KH
2020-03-12 12:31 ` [Outreachy kernel] " Stefano Brivio
2020-03-12 19:43   ` Lourdes Pedrajas
2020-03-12 20:43     ` Greg KH
2020-03-12 20:57       ` Lourdes Pedrajas

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.