ARM:SAMSUNG: DMA Cleanup as per sparse
Subsystems (3)
PATCH 1/1 ARM:SAMSUNG: DMA Cleanup as per sparse
Function declaration differs between file:s3c-pl330.c and file:dma.h and SPARSE (Documentation/sparse.txt) gives error messages
--- arch/arm/plat-samsung/include/plat/dma.h | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)
arch/arm/plat-samsung/include/plat/dma.h +8 -8
@@ -62,7 +62,7 @@ typedef int (*s3c2410_dma_opfn_t)(struct s3c2410_dma_chan *,* request a dma channel exclusivley */ -extern int s3c2410_dma_request (unsigned int channel, +extern int s3c2410_dma_request (enum dma_ch id,struct s3c2410_dma_client *,void *dev);
@@ -71,14 +71,14 @@ extern int s3c2410_dma_request(unsigned int channel,* change the state of the dma channel */ -extern int s3c2410_dma_ctrl (unsigned int channel,enum s3c2410_chan_op op); +extern int s3c2410_dma_ctrl (enum dma_ch id,enum s3c2410_chan_op op);/* s3c2410_dma_setflags * * set the channel's flags to a given state */ -extern int s3c2410_dma_setflags (unsigned int channel, +extern int s3c2410_dma_setflags (enum dma_ch id,unsigned int flags);/* s3c2410_dma_free
@@ -86,7 +86,7 @@ extern int s3c2410_dma_setflags(unsigned int channel,* free the dma channel (will also abort any outstanding operations) */ -extern int s3c2410_dma_free (unsigned int channel,struct s3c2410_dma_client *); +extern int s3c2410_dma_free (enum dma_ch id,struct s3c2410_dma_client *);/* s3c2410_dma_enqueue *
@@ -95,7 +95,7 @@ extern int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *);* drained before the buffer is given to the DMA system. */ -extern int s3c2410_dma_enqueue (unsigned int channel,void *id, +extern int s3c2410_dma_enqueue (enum dma_ch idx,void *id,dma_addr_t data,int size);/* s3c2410_dma_config
@@ -103,14 +103,14 @@ extern int s3c2410_dma_enqueue(unsigned int channel, void *id,* configure the dma channel */ -extern int s3c2410_dma_config (unsigned int channel,int xferunit); +extern int s3c2410_dma_config (enum dma_ch id,int xferunit);/* s3c2410_dma_devconfig * * configure the device we're talking to */ -extern int s3c2410_dma_devconfig (unsigned int channel, +extern int s3c2410_dma_devconfig (enum dma_ch id,enum s3c2410_dmasrc source,unsigned long devaddr);/* s3c2410_dma_getposition
@@ -118,7 +118,7 @@ extern int s3c2410_dma_devconfig(unsigned int channel,* get the position that the dma transfer is currently at */ -extern int s3c2410_dma_getposition (unsigned int channel, +extern int s3c2410_dma_getposition (enum dma_ch id,dma_addr_t *src,dma_addr_t *dest);extern int s3c2410_dma_set_opfn (unsigned int ,s3c2410_dma_opfn_t rtn);
Signature · 1 line
1.7.4.1
PATCH 1/1 ARM:SAMSUNG: DMA Cleanup as per sparse
Quoted 4 lines · Sangwook Lee
Function declaration differs between file:s3c-pl330.c and file:dma.h and SPARSE (
Documentation/sparse.txt) gives error messagesSigned-off-by Sangwook Lee <[email protected]>
Quoted 87 lines
---
?arch/arm/plat-samsung/include/plat/dma.h | ? 16 ++++++++-------- ?1 files changed, 8 insertions(+), 8 deletions(-)arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -62,7 +62,7 @@ typedef int ?(*s3c2410_dma_opfn_t)(struct s3c2410_dma_chan *,?* request a dma channel exclusivley
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_request(unsigned int channel, +extern int s3c2410_dma_request(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? struct
s3c2410_dma_client*, void *dev);arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -71,14 +71,14 @@ extern int s3c2410_dma_request(unsigned int channel,?* change the state of the dma channel
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_ctrl (unsigned int channel,enum s3c2410_chan_op op); +extern int s3c2410_dma_ctrl (enum dma_ch id,enum s3c2410_chan_op op);?/*
s3c2410_dma_setflags
?*
?* set the channel's flags to a given state
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_setflags(unsigned int channel, +extern int s3c2410_dma_setflags(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?unsigned int flags);
?/*
s3c2410_dma_freearch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -86,7 +86,7 @@ extern int s3c2410_dma_setflags(unsigned int channel, ?* free the dma channel (will also abort any outstanding operations)?*/
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_free (unsigned int channel,struct s3c2410_dma_client *); +extern int s3c2410_dma_free (enum dma_ch id,struct s3c2410_dma_client *);?/*
s3c2410_dma_enqueue
?*arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -95,7 +95,7 @@ extern int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *);?* drained before the buffer is given to the DMA system. ?*/
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_enqueue(unsigned int channel, void *id, +extern int s3c2410_dma_enqueue(enum dma_ch idx, void *id,? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
dma_addr_tdata, int size);?/*
s3c2410_dma_configarch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -103,14 +103,14 @@ extern int s3c2410_dma_enqueue(unsigned int channel, void *id,?* configure the dma channel
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_config (unsigned int channel,int xferunit); +extern int s3c2410_dma_config (enum dma_ch id,int xferunit);?/*
s3c2410_dma_devconfig
?*
?* configure the device we're talking to
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_devconfig(unsigned int channel, +extern int s3c2410_dma_devconfig(enum dma_ch id,? ? ? ? ? ? ? ?enum
s3c2410_dmasrcsource, unsigned long devaddr);?/*
s3c2410_dma_getpositionarch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -118,7 +118,7 @@ extern int s3c2410_dma_devconfig(unsigned int channel,?* get the position that the dma transfer is currently at ?*/
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_getposition(unsigned int channel, +extern int s3c2410_dma_getposition(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
dma_addr_t*src,dma_addr_t*dest);?extern int
s3c2410_dma_set_opfn(unsigned int, s3c2410_dma_opfn_t rtn); --
1.7.4.1_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/1 ARM:SAMSUNG: DMA Cleanup as per sparse
In reply to Sangwook LeeQuoted 25 lines · Sangwook Lee
Function declaration differs between file:s3c-pl330.c and file:dma.h and SPARSE (
Documentation/sparse.txt) gives error messagesSigned-off-by Sangwook Lee <[email protected]>--- arch/arm/plat-samsung/include/plat/dma.h | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)arch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/dma.h +0
-0
samsung/include/plat/dma.h
index 2e8f8c6..7365f46 100644arch/arm/plat-samsung/include/plat/dma.h +1
-1@@ -62,7 +62,7 @@ typedef int (*s3c2410_dma_opfn_t)(structs3c2410_dma_chan *, * request a dma channel exclusivley */ -extern int s3c2410_dma_request (unsigned int channel, +extern int s3c2410_dma_request (enum dma_ch id,struct s3c2410_dma_client *,void *dev);
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_request(unsigned int channel, · line 74
Quoted 4 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-1@@ -71,14 +71,14 @@ extern int s3c2410_dma_request(unsigned int channel,* change the state of the dma channel */ -extern int s3c2410_dma_ctrl(unsigned int channel, enum s3c2410_chan_op
op);
Quoted 13 lines
arch/arm/plat-samsung/include/plat/dma.h +2
-1+extern int s3c2410_dma_ctrl (enum dma_ch id,enum s3c2410_chan_op op);/* s3c2410_dma_setflags * * set the channel's flags to a given state */ -extern int s3c2410_dma_setflags (unsigned int channel, +extern int s3c2410_dma_setflags (enum dma_ch id,unsigned int flags);/* s3c2410_dma_free
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_setflags(unsigned int channel, · line 89
Quoted 4 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-1@@ -86,7 +86,7 @@ extern int s3c2410_dma_setflags(unsigned int channel,* free the dma channel (will also abort any outstanding operations) */ -extern int s3c2410_dma_free(unsigned int channel, struct
s3c2410_dma_client *);
Quoted 42 lines
arch/arm/plat-samsung/include/plat/dma.h +2
-1+extern int s3c2410_dma_free (enum dma_ch id,struct s3c2410_dma_client *);/* s3c2410_dma_enqueue * @@ -95,7 +95,7 @@ extern int s3c2410_dma_free(unsigned int channel, structs3c2410_dma_client *); * drained before the buffer is given to the DMA system. */ -extern int s3c2410_dma_enqueue (unsigned int channel,void *id, +extern int s3c2410_dma_enqueue (enum dma_ch idx,void *id,dma_addr_t data,int size);/*
s3c2410_dma_configarch/arm/plat-samsung/include/plat/dma.h +2
-2@@ -103,14 +103,14 @@ extern int s3c2410_dma_enqueue(unsigned int channel,void *id, * configure the dma channel */ -extern int s3c2410_dma_config (unsigned int channel,int xferunit); +extern int s3c2410_dma_config (enum dma_ch id,int xferunit);/* s3c2410_dma_devconfig * * configure the device we're talking to */ -extern int s3c2410_dma_devconfig (unsigned int channel, +extern int s3c2410_dma_devconfig (enum dma_ch id,enum s3c2410_dmasrc source,unsigned long devaddr);/*
s3c2410_dma_getpositionarch/arm/plat-samsung/include/plat/dma.h +1
-2@@ -118,7 +118,7 @@ extern int s3c2410_dma_devconfig(unsigned int channel,* get the position that the dma transfer is currently at */ -extern int s3c2410_dma_getposition (unsigned int channel, +extern int s3c2410_dma_getposition (enum dma_ch id,dma_addr_t *src,dma_addr_t *dest);extern int s3c2410_dma_set_opfn (unsigned int ,s3c2410_dma_opfn_t rtn); --
Quoted 1 line
1.7.4.1
OK, will apply.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 1/1 ARM:SAMSUNG: DMA Cleanup as per sparse
In reply to Sangwook LeeQuoted 26 lines · Kukjin Kim
Quoted 24 lines · Sangwook Lee
Function declaration differs between file:s3c-pl330.c and file:dma.h and SPARSE (
Documentation/sparse.txt) gives error messagesSigned-off-by Sangwook Lee <[email protected]>--- arch/arm/plat-samsung/include/plat/dma.h | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)arch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/dma.h +0
-0
samsung/include/plat/dma.h
index 2e8f8c6..7365f46 100644arch/arm/plat-samsung/include/plat/dma.h +1
-1@@ -62,7 +62,7 @@ typedef int (*s3c2410_dma_opfn_t)(structs3c2410_dma_chan *, * request a dma channel exclusivley */ -extern int s3c2410_dma_request (unsigned int channel, +extern int s3c2410_dma_request (enum dma_ch id,struct s3c2410_dma_client *,void *dev);
Quoted 5 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_request(unsigned int channel, · line 74
Quoted 5 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-1@@ -71,14 +71,14 @@ extern int s3c2410_dma_request(unsigned int channel,* change the state of the dma channel */ -extern int s3c2410_dma_ctrl(unsigned int channel, enum s3c2410_chan_op
op);
Quoted 11 lines
Quoted 11 lines
arch/arm/plat-samsung/include/plat/dma.h +2
-1+extern int s3c2410_dma_ctrl (enum dma_ch id,enum s3c2410_chan_op op);/* s3c2410_dma_setflags * * set the channel's flags to a given state */ -extern int s3c2410_dma_setflags (unsigned int channel, +extern int s3c2410_dma_setflags (enum dma_ch id,unsigned int flags);
Quoted 6 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_setflags(unsigned int channel, · line 89
Quoted 6 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-1/* s3c2410_dma_free @@ -86,7 +86,7 @@ extern int s3c2410_dma_setflags(unsigned int channel,* free the dma channel (will also abort any outstanding operations) */ -extern int s3c2410_dma_free(unsigned int channel, struct
s3c2410_dma_client *);
Quoted 1 line
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_setflags(unsigned int channel, · line 89
Quoted 1 line
arch/arm/plat-samsung/include/plat/dma.h +1
-0+extern int s3c2410_dma_free(enum dma_ch id, struct s3c2410_dma_client
*);
Quoted 4 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_free(unsigned int channel,
Quoted 4 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-0/* s3c2410_dma_enqueue * @@ -95,7 +95,7 @@ extern int s3c2410_dma_free(unsigned int channel,
struct
Quoted 10 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_enqueue(unsigned int
Quoted 10 lines
arch/arm/plat-samsung/include/plat/dma.h +1
-1s3c2410_dma_client *); * drained before the buffer is given to the DMA system. */ -extern int s3c2410_dma_enqueue (unsigned int channel,void *id, +extern int s3c2410_dma_enqueue (enum dma_ch idx,void *id,dma_addr_t data,int size);/*
s3c2410_dma_configarch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -103,14 +103,14 @@ extern int s3c2410_dma_enqueue(unsigned int
channel,
Quoted 12 lines
Quoted 12 lines
arch/arm/plat-samsung/include/plat/dma.h +1
-1void *id, * configure the dma channel */ -extern int s3c2410_dma_config (unsigned int channel,int xferunit); +extern int s3c2410_dma_config (enum dma_ch id,int xferunit);/* s3c2410_dma_devconfig * * configure the device we're talking to */
Quoted 6 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_devconfig(unsigned int
Quoted 6 lines
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_devconfig (unsigned int channel, +extern int s3c2410_dma_devconfig (enum dma_ch id,enum s3c2410_dmasrc source,unsigned long devaddr);/*
s3c2410_dma_getpositionarch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -118,7 +118,7 @@ extern int s3c2410_dma_devconfig(unsigned int
channel,
Quoted 9 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_devconfig(unsigned int channel,
Quoted 9 lines
arch/arm/plat-samsung/include/plat/dma.h +1
-2* get the position that the dma transfer is currently at */ -extern int s3c2410_dma_getposition (unsigned int channel, +extern int s3c2410_dma_getposition (enum dma_ch id,dma_addr_t *src,dma_addr_t *dest);extern int s3c2410_dma_set_opfn (unsigned int ,s3c2410_dma_opfn_t rtn); --
Hi Sangwook Lee,
I reverted this in my -fix tree just now because this makes following error with s3c2410_defconfig.
arch/arm/plat-samsung/include/plat/dma.h:66: warning: 'enum dma_ch' declared inside parameter list arch/arm/plat-samsung/include/plat/dma.h:66: warning: its scope is only this definition or declaration, which is probably not what you want arch/arm/plat-samsung/include/plat/dma.h:74: warning: 'enum dma_ch' declared inside parameter list arch/arm/plat-samsung/include/plat/dma.h:82: warning: 'enum dma_ch' declared inside parameter list arch/arm/plat-samsung/include/plat/dma.h:89: warning: 'enum dma_ch' declared inside parameter list arch/arm/plat-samsung/include/plat/dma.h:99: warning: 'enum dma_ch' declared inside parameter list arch/arm/plat-samsung/include/plat/dma.h:106: warning: 'enum dma_ch' declared inside parameter list arch/arm/plat-samsung/include/plat/dma.h:114: warning: 'enum dma_ch' declared inside parameter list arch/arm/plat-samsung/include/plat/dma.h:122: warning: 'enum dma_ch' declared inside parameter listdrivers/mmc/host/s3cmci.c: In function 'finalize_request':drivers/mmc/host/s3cmci.c:889: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_dma_setup':drivers/mmc/host/s3cmci.c:927: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:930: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:933: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_prepare_dma':drivers/mmc/host/s3cmci.c:1091: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1111: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1114: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1119: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_probe':drivers/mmc/host/s3cmci.c:1692: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1778: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_remove':drivers/mmc/host/s3cmci.c:1840: error: type of formal parameter 1 is incomplete
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.
PATCH 1/1 ARM:SAMSUNG: DMA Cleanup as per sparse
Quoted 95 lines · Kukjin Kim
Quoted 26 lines · Kukjin Kim
Quoted 24 lines · Sangwook Lee
Function declaration differs between file:s3c-pl330.c and file:dma.h and SPARSE (
Documentation/sparse.txt) gives error messagesSigned-off-by Sangwook Lee <[email protected]>---
?arch/arm/plat-samsung/include/plat/dma.h | ? 16 ++++++++-------- ?1 files changed, 8 insertions(+), 8 deletions(-)arch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/dma.h +0
-0
samsung/include/plat/dma.h
index 2e8f8c6..7365f46 100644arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -62,7 +62,7 @@ typedef int ?(*s3c2410_dma_opfn_t)(struct s3c2410_dma_chan *,? * request a dma channel exclusivley
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_request(unsigned int channel, +extern int s3c2410_dma_request(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ?struct
s3c2410_dma_client*, void *dev);Quoted 5 lines
Quoted 5 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -71,14 +71,14 @@ extern int s3c2410_dma_request(unsigned int channel,? * change the state of the dma channel
?*/-extern int s3c2410_dma_ctrl(unsigned int channel, enum
s3c2410_chan_opop);
Quoted 11 lines
Quoted 11 lines
+extern int
s3c2410_dma_ctrl(enum dma_ch id, enum s3c2410_chan_op op);?/*
s3c2410_dma_setflags
? *
? * set the channel's flags to a given state
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_setflags(unsigned int channel, +extern int s3c2410_dma_setflags(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ? unsigned int flags);
Quoted 6 lines
Quoted 6 lines
?/*
s3c2410_dma_freearch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -86,7 +86,7 @@ extern int s3c2410_dma_setflags(unsigned int channel, ? * free the dma channel (will also abort any outstanding operations)?*/
-extern int s3c2410_dma_free(unsigned int channel, struct
s3c2410_dma_client*);Quoted 1 line
Quoted 1 line
+extern int s3c2410_dma_free(enum
dma_chid, structs3c2410_dma_client*);
Quoted 4 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_free(unsigned int channel,
Quoted 4 lines
?/*
s3c2410_dma_enqueue
? *arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -95,7 +95,7 @@ extern int s3c2410_dma_free(unsigned int channel,struct
Quoted 10 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_enqueue(unsigned int
Quoted 10 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-0s3c2410_dma_client *);? * drained before the buffer is given to the DMA system. ?*/
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_enqueue(unsigned int channel, void *id, +extern int s3c2410_dma_enqueue(enum dma_ch idx, void *id,? ? ? ? ? ? ? ? ? ? ? ? ? ?dma_addr_t data, int size);
?/*
s3c2410_dma_configarch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -103,14 +103,14 @@ extern int s3c2410_dma_enqueue(unsigned intchannel,
Quoted 12 lines
Quoted 12 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-0void *id,? * configure the dma channel
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_config (unsigned int channel,int xferunit); +extern int s3c2410_dma_config (enum dma_ch id,int xferunit);?/*
s3c2410_dma_devconfig
? *
? * configure the device we're talking to
?*/Quoted 6 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_devconfig(unsigned int
Quoted 6 lines
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_devconfig(unsigned int channel, +extern int s3c2410_dma_devconfig(enum dma_ch id,? ? ? ? ? ? enum
s3c2410_dmasrcsource, unsigned long devaddr);?/*
s3c2410_dma_getpositionarch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -118,7 +118,7 @@ extern int s3c2410_dma_devconfig(unsigned intchannel,
Quoted 7 lines
Quoted 7 lines
? * get the position that the dma transfer is currently at ?*/
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_getposition(unsigned int channel, +extern int s3c2410_dma_getposition(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?dma_addr_t *src,
dma_addr_t*dest);
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
?extern int
s3c2410_dma_set_opfn(unsigned int, s3c2410_dma_opfn_t rtn); --Hi Sangwook Lee,
I reverted this in my -fix tree just now because this makes following error with
s3c2410_defconfig.
Sangwook's patch does the right thing.
IMO another patch to fix the following issues is needed.
Quoted 61 lines
arch/arm/plat-samsung/include/plat/dma.h:66: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:66: warning: its scope is only this definition or declaration, which is probably not what you wantarch/arm/plat-samsung/include/plat/dma.h:74: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:82: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:89: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:99: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:106: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:114: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:122: warning: 'enumdma_ch' declared inside parameter listdrivers/mmc/host/s3cmci.c: In function 'finalize_request':drivers/mmc/host/s3cmci.c:889: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_dma_setup':drivers/mmc/host/s3cmci.c:927: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:930: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:933: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_prepare_dma':drivers/mmc/host/s3cmci.c:1091: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1111: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1114: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1119: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_probe':drivers/mmc/host/s3cmci.c:1692: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1778: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_remove':drivers/mmc/host/s3cmci.c:1840: error: type of formal parameter 1 is incompleteThanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd._______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/1 ARM:SAMSUNG: DMA Cleanup as per sparse
In reply to Kukjin KimI can reproduce this errors and let me see how to fix those.
Quoted 158 lines · Kukjin Kim
Quoted 26 lines · Kukjin Kim
Quoted 24 lines · Sangwook Lee
Function declaration differs between file:s3c-pl330.c and file:dma.h and SPARSE (
Documentation/sparse.txt) gives error messagesSigned-off-by Sangwook Lee <[email protected]>---
?arch/arm/plat-samsung/include/plat/dma.h | ? 16 ++++++++-------- ?1 files changed, 8 insertions(+), 8 deletions(-)arch/arm/plat- renamed from arch/arm/plat-samsung/include/plat/dma.h +0
-0
samsung/include/plat/dma.h
index 2e8f8c6..7365f46 100644arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -62,7 +62,7 @@ typedef int ?(*s3c2410_dma_opfn_t)(struct s3c2410_dma_chan *,? * request a dma channel exclusivley
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_request(unsigned int channel, +extern int s3c2410_dma_request(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ?struct
s3c2410_dma_client*, void *dev);Quoted 5 lines
Quoted 5 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -71,14 +71,14 @@ extern int s3c2410_dma_request(unsigned int channel,? * change the state of the dma channel
?*/-extern int s3c2410_dma_ctrl(unsigned int channel, enum
s3c2410_chan_opop);
Quoted 11 lines
Quoted 11 lines
+extern int
s3c2410_dma_ctrl(enum dma_ch id, enum s3c2410_chan_op op);?/*
s3c2410_dma_setflags
? *
? * set the channel's flags to a given state
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_setflags(unsigned int channel, +extern int s3c2410_dma_setflags(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ? unsigned int flags);
Quoted 6 lines
Quoted 6 lines
?/*
s3c2410_dma_freearch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -86,7 +86,7 @@ extern int s3c2410_dma_setflags(unsigned int channel, ? * free the dma channel (will also abort any outstanding operations)?*/
-extern int s3c2410_dma_free(unsigned int channel, struct
s3c2410_dma_client*);Quoted 1 line
Quoted 1 line
+extern int s3c2410_dma_free(enum
dma_chid, structs3c2410_dma_client*);
Quoted 4 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_free(unsigned int channel,
Quoted 4 lines
?/*
s3c2410_dma_enqueue
? *arch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -95,7 +95,7 @@ extern int s3c2410_dma_free(unsigned int channel,struct
Quoted 10 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_enqueue(unsigned int
Quoted 10 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-0s3c2410_dma_client *);? * drained before the buffer is given to the DMA system. ?*/
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_enqueue(unsigned int channel, void *id, +extern int s3c2410_dma_enqueue(enum dma_ch idx, void *id,? ? ? ? ? ? ? ? ? ? ? ? ? ?dma_addr_t data, int size);
?/*
s3c2410_dma_configarch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -103,14 +103,14 @@ extern int s3c2410_dma_enqueue(unsigned intchannel,
Quoted 12 lines
Quoted 12 lines
arch/arm/plat-samsung/include/plat/dma.h +0
-0void *id,? * configure the dma channel
?*/arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_config (unsigned int channel,int xferunit); +extern int s3c2410_dma_config (enum dma_ch id,int xferunit);?/*
s3c2410_dma_devconfig
? *
? * configure the device we're talking to
?*/Quoted 6 lines
arch/arm/plat-samsung/include/plat/dma.h extern int s3c2410_dma_devconfig(unsigned int
Quoted 6 lines
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_devconfig(unsigned int channel, +extern int s3c2410_dma_devconfig(enum dma_ch id,? ? ? ? ? ? enum
s3c2410_dmasrcsource, unsigned long devaddr);?/*
s3c2410_dma_getpositionarch/arm/plat-samsung/include/plat/dma.h +0
-0@@ -118,7 +118,7 @@ extern int s3c2410_dma_devconfig(unsigned intchannel,
Quoted 9 lines
Quoted 9 lines
? * get the position that the dma transfer is currently at ?*/
arch/arm/plat-samsung/include/plat/dma.h +1
-1-extern int s3c2410_dma_getposition(unsigned int channel, +extern int s3c2410_dma_getposition(enum dma_ch id,? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?dma_addr_t *src,
dma_addr_t*dest);?extern int
s3c2410_dma_set_opfn(unsigned int, s3c2410_dma_opfn_t rtn); --Hi Sangwook Lee,
I reverted this in my -fix tree just now because this makes following error with
s3c2410_defconfig.
arch/arm/plat-samsung/include/plat/dma.h:66: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:66: warning: its scope is only this definition or declaration, which is probably not what you wantarch/arm/plat-samsung/include/plat/dma.h:74: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:82: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:89: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:99: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:106: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:114: warning: 'enumdma_ch' declared inside parameter listarch/arm/plat-samsung/include/plat/dma.h:122: warning: 'enumdma_ch' declared inside parameter listdrivers/mmc/host/s3cmci.c: In function 'finalize_request':drivers/mmc/host/s3cmci.c:889: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_dma_setup':drivers/mmc/host/s3cmci.c:927: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:930: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:933: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_prepare_dma':drivers/mmc/host/s3cmci.c:1091: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1111: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1114: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1119: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_probe':drivers/mmc/host/s3cmci.c:1692: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c:1778: error: type of formal parameter 1 is incompletedrivers/mmc/host/s3cmci.c: In function 's3cmci_remove':drivers/mmc/host/s3cmci.c:1840: error: type of formal parameter 1 is incompleteThanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.