lkml.org 
[lkml]   [2025]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] dma-mapping: avoid potential unused data compilation warning
On Tue, Apr 15, 2025 at 09:56:59AM +0200, Marek Szyprowski wrote:
> When CONFIG_NEED_DMA_MAP_STATE is not defined, dma-mapping clients might
> report unused data compilation warnings for dma_unmap_*() calls
> arguments. Redefine macros for those calls to let compiler to notice that
> it is okay when the provided arguments are not used.

Tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

(GCC on default i386_defconfig with `make W=1` on v6.15-rc2)

--
With Best Regards,
Andy Shevchenko



\
 
 \ /
  Last update: 2025-04-15 11:44    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog