Thread (23 messages) 23 messages, 3 authors, 2025-11-24

Re: [PATCH v2 07/13] dmaengine: lgm: use sg_nents_for_dma() helper

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2025-11-24 12:10:17
Also in: dmaengine, linux-arm-msm, lkml

On Sat, Nov 22, 2025 at 02:58:05PM +0530, Vinod Koul wrote:
On 10-11-25, 11:23, Andy Shevchenko wrote:
quoted
Instead of open coded variant let's use recently introduced helper.
...
quoted
+	num = sg_nents_for_dma(sgl, sg_len, DMA_MAX_SIZE);
drivers/dma/lgm/lgm-dma.c:1176:37: error: ‘sg_len’ undeclared (first use in this function); did you mean ‘sglen’?
         num = sg_nents_for_dma(sgl, sg_len, DMA_MAX_SIZE);

I am getting the build failure, as well as few unused warning with this,
pls fix
Indeed, sorry for that, in v4 should be fixed.
Thanks!

-- 
With Best Regards,
Andy Shevchenko


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help