Skip to contentSkip to conversation

Staging: mt7621-dma: Fix checkpatch issues

PATCH Superseded Bhanusree Pola 3 participants 6 messages Feb 25, 2019

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover Staging: mt7621-dma: Fix checkpatch issues

This patch series cleans up the following checkpatch.pl issues:
CHECK: Alignment should match open parenthesis
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

v2:
[PATCH 1/2]: commit log modified
[PATCH 2/2]: commit log modified

Bhanusree Pola (2):
Staging: mt761-dma: Alignment should match open paranthesis
Staging: mt7621_dma: Prefer unsigned int over just unsigned

 drivers/staging/mt7621-dma/mtk-hsdma.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/2 Staging: mt761-dma: Alignment should match open paranthesis

Adjust "dev_dbg" parameters to match alignment with open paranthesis Issue found with checkpatch.pl

---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-dma/mtk-hsdma.c +1 -1
index d67a2504adb1..20c8879d4979 100644
@@ -242,7 +242,7 @@ static void hsdma_dump_desc(struct mtk_hsdam_engine *hsdma,
 	int i;
 
 	dev_dbg(hsdma->ddev.dev, "tx idx: %d, rx idx: %d\n",
-			chan->tx_idx, chan->rx_idx);
+		chan->tx_idx, chan->rx_idx);
 
 	for (i = 0; i < HSDMA_DESCS_NUM; i++) {
 		tx_desc = &chan->tx_ring[i];
Signature · 1 line
2.17.1
maintainer Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] Staging: mt761-dma: Alignment should match open paranthesis

Quoted 4 lines · Bhanusree Pola

Adjust "dev_dbg" parameters to match alignment with open paranthesis Issue found with checkpatch.pl

Quoted 18 lines
---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-dma/mtk-hsdma.c +1 -1
index d67a2504adb1..20c8879d4979 100644
@@ -242,7 +242,7 @@ static void hsdma_dump_desc(struct mtk_hsdam_engine *hsdma,
 	int i;
 
 	dev_dbg(hsdma->ddev.dev, "tx idx: %d, rx idx: %d\n",
-			chan->tx_idx, chan->rx_idx);
+		chan->tx_idx, chan->rx_idx);
 
 	for (i = 0; i < HSDMA_DESCS_NUM; i++) {
 		tx_desc = &chan->tx_ring[i];
#3 lore raw

PATCH v2 2/2 Staging: mt7621_dma: Prefer unsigned int over just unsigned

In reply to Bhanusree Pola

Replace 'unsigned' with 'unsigned int' to be specific with data type. Issue found with checkpatch.pl

---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-dma/mtk-hsdma.c +1 -1
index 20c8879d4979..7b2cdd2829a5 100644
@@ -191,7 +191,7 @@ static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg)
 }
 
 static inline void mtk_hsdma_write(struct mtk_hsdam_engine *hsdma,
-				   unsigned reg, u32 val)
+				   unsigned int reg, u32 val)
 {
 	writel(val, hsdma->base + reg);
 }
Signature · 1 line
2.17.1
maintainer
#4 lore raw

Re: [PATCH v2 2/2] Staging: mt7621_dma: Prefer unsigned int over just unsigned

Quoted 13 lines · Bhanusree Pola

Replace 'unsigned' with 'unsigned int' to be specific with data type. Issue found with checkpatch.pl

---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-dma/mtk-hsdma.c +0 -0
index 20c8879d4979..7b2cdd2829a5 100644

drivers/staging/mt7621-dma/mtk-hsdma.c static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg) · line 194

Quoted 5 lines
drivers/staging/mt7621-dma/mtk-hsdma.c +1 -1
@@ -191,7 +191,7 @@ static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg)
 }
 
 static inline void mtk_hsdma_write(struct mtk_hsdam_engine *hsdma,
-				   unsigned reg, u32 val)
+				   unsigned int reg, u32 val)

You could align to the open paranthesis as well?

Regards,
Matthias

Quoted 4 lines
drivers/staging/mt7621-dma/mtk-hsdma.c +0 -0
 {
 	writel(val, hsdma->base + reg);
 }
#5 lore raw

Re: [PATCH v2 2/2] Staging: mt7621_dma: Prefer unsigned int over just unsigned

Quoted 18 lines · Matthias Brugger
Quoted 15 lines · Bhanusree Pola

Replace 'unsigned' with 'unsigned int' to be specific with data type. Issue found with checkpatch.pl

---
 drivers/staging/mt7621-dma/mtk-hsdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/mt7621-dma/mtk-hsdma.c +0 -0
index 20c8879d4979..7b2cdd2829a5 100644
@@ -191,7 +191,7 @@ static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg)
 }
 
Quoted 5 lines

drivers/staging/mt7621-dma/mtk-hsdma.c static inline u32 mtk_hsdma_read(struct mtk_hsdam_engine *hsdma, u32 reg) · line 194

Quoted 3 lines
drivers/staging/mt7621-dma/mtk-hsdma.c +1 -1
 static inline void mtk_hsdma_write(struct mtk_hsdam_engine *hsdma,
-				   unsigned reg, u32 val)
+				   unsigned int reg, u32 val)

You could align to the open paranthesis as well?

No, please only one type of change per patch.

thanks,

greg k-h