Skip to contentSkip to conversation

Staging: drivers: dma: ste_dma40: used to __initdata after dma_init_reg_v4a[]

PATCH In review Hatice ERTÜRK 2 participants 2 messages Feb 19, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 9/9 Staging: drivers: dma: ste_dma40: used to __initdata after dma_init_reg_v4a[]

WARNING: __initdata should be placed after dma_init_reg_v4a[] checkpatch.pl warning in ste_dma40.c

---
 drivers/dma/ste_dma40.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/dma/ste_dma40.c +2 -2
index e4b823d..c6c8e81 100644
@@ -281,7 +281,7 @@ struct d40_reg_val {
 	unsigned int val;
 };
 
-static __initdata struct d40_reg_val dma_init_reg_v4a[] = {
+static __initdata struct dma_init_reg_v4a[] d40_reg_val = {
 	/* Clock every part of the DMA block from start */
 	{ .reg = D40_DREG_GCC,    .val = D40_DREG_GCC_ENABLE_ALL},
 
@@ -299,7 +299,7 @@ static __initdata struct d40_reg_val dma_init_reg_v4a[] = {
 	{ .reg = D40_DREG_LCTIS2, .val = 0xFFFFFFFF},
 	{ .reg = D40_DREG_LCTIS3, .val = 0xFFFFFFFF}
 };
-static __initdata struct d40_reg_val dma_init_reg_v4b[] = {
+static __initdata struct dma_init_reg_v4b[] d40_reg_val = {
 	/* Clock every part of the DMA block from start */
 	{ .reg = D40_DREG_GCC,    .val = D40_DREG_GCC_ENABLE_ALL},
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · Hatice ERTÜRK

WARNING: __initdata should be placed after dma_init_reg_v4a[] checkpatch.pl warning in ste_dma40.c

---
 drivers/dma/ste_dma40.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/dma/ste_dma40.c +0 -0
index e4b823d..c6c8e81 100644

drivers/dma/ste_dma40.c struct d40_reg_val { · line 284

Quoted 5 lines
drivers/dma/ste_dma40.c +1 -1
@@ -281,7 +281,7 @@ struct d40_reg_val {
 	unsigned int val;
 };
 
-static __initdata struct d40_reg_val dma_init_reg_v4a[] = {
+static __initdata struct dma_init_reg_v4a[] d40_reg_val = {

This is also incorrect, like in the previous patch addressing this issue.

julia

Quoted 22 lines
drivers/dma/ste_dma40.c +1 -1
 	/* Clock every part of the DMA block from start */
 	{ .reg = D40_DREG_GCC,    .val = D40_DREG_GCC_ENABLE_ALL},
 
@@ -299,7 +299,7 @@ static __initdata struct d40_reg_val dma_init_reg_v4a[] = {
 	{ .reg = D40_DREG_LCTIS2, .val = 0xFFFFFFFF},
 	{ .reg = D40_DREG_LCTIS3, .val = 0xFFFFFFFF}
 };
-static __initdata struct d40_reg_val dma_init_reg_v4b[] = {
+static __initdata struct dma_init_reg_v4b[] d40_reg_val = {
 	/* Clock every part of the DMA block from start */
 	{ .reg = D40_DREG_GCC,    .val = D40_DREG_GCC_ENABLE_ALL},
 
Signature · 8 lines
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424375181-29098-1-git-send-email-haticeerturk27%40gmail.com.
For more options, visit https://groups.google.com/d/optout.