[PATCH v2 07/13] dmaengine: lgm: use sg_nents_for_dma() helper
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Mon Nov 24 04:10:09 PST 2025
On Sat, Nov 22, 2025 at 02:58:05PM +0530, Vinod Koul wrote:
> On 10-11-25, 11:23, Andy Shevchenko wrote:
> > Instead of open coded variant let's use recently introduced helper.
...
> > + 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
More information about the linux-arm-kernel
mailing list