Staging: drivers: dma: ste_dma40: used to __initdata after dma_init_reg_v4a[]
Subsystems (2)
PATCH 1/1 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
@@ -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
Quoted 2 lines · Hatice ERTÜRK
WARNING:
__initdatashould be placed after dma_init_reg_v4a[] checkpatch.pl warning inste_dma40.c
It would be better to describe what you have done rather than just repeating the checkpatch message.
Quoted 10 lines
Signed-off-by Hatice ERTURK <[email protected]>--- drivers/dma/ste_dma40.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/dma/ste_dma40.c +0
-0
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 does not look right. You have moved the variable name into the struct type name, but left __initdata in the same place.
Be sure that you have compiled your code before sending your patch. If you are not sure where __initdata should be, it may be useful to look for it in other kernel code, or to look at previous patches that mention initdata in the commit message.
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/1424376309-29368-1-git-send-email-haticeerturk27%40gmail.com. For more options, visit https://groups.google.com/d/optout.