Skip to content

Commit a3e4031

Browse files
Mani-Sadhasivamvinodkoul
authored andcommitted
dmaengine: owl: Fix warnings generated during build
Following warnings are generated when compiled with W=1, drivers/dma/owl-dma.c:170: warning: Function parameter or member 'cyclic' not described in 'owl_dma_txd' drivers/dma/owl-dma.c:198: warning: Function parameter or member 'cfg' not described in 'owl_dma_vchan' drivers/dma/owl-dma.c:198: warning: Function parameter or member 'drq' not described in 'owl_dma_vchan' drivers/dma/owl-dma.c:225: warning: Function parameter or member 'irq' not described in 'owl_dma' Fix this by adding comments for relevant struct members to appear in kernel-doc. Fixes: d64e1b3 ("dmaengine: owl: Add Slave and Cyclic mode support for Actions Semi Owl S900 SoC") Reported-by: Vinod Koul <vinod.koul@linaro.org> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent d64e1b3 commit a3e4031

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/dma/owl-dma.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ struct owl_dma_lli {
162162
* struct owl_dma_txd - Wrapper for struct dma_async_tx_descriptor
163163
* @vd: virtual DMA descriptor
164164
* @lli_list: link list of lli nodes
165+
* @cyclic: flag to indicate cyclic transfers
165166
*/
166167
struct owl_dma_txd {
167168
struct virt_dma_desc vd;
@@ -188,6 +189,8 @@ struct owl_dma_pchan {
188189
* @vc: wrappped virtual channel
189190
* @pchan: the physical channel utilized by this channel
190191
* @txd: active transaction on this channel
192+
* @cfg: slave configuration for this channel
193+
* @drq: physical DMA request ID for this channel
191194
*/
192195
struct owl_dma_vchan {
193196
struct virt_dma_chan vc;
@@ -204,6 +207,7 @@ struct owl_dma_vchan {
204207
* @clk: clock for the DMA controller
205208
* @lock: a lock to use when change DMA controller global register
206209
* @lli_pool: a pool for the LLI descriptors
210+
* @irq: interrupt ID for the DMA controller
207211
* @nr_pchans: the number of physical channels
208212
* @pchans: array of data for the physical channels
209213
* @nr_vchans: the number of physical channels

0 commit comments

Comments
 (0)