Re: [PATCH v4 0/3] dma-mapping, powerpc, nvme: introduce the DMA_ATTR_NO_WARN attribute

From: Andrew Morton
Date: Fri Aug 05 2016 - 13:01:17 EST


On Fri, 5 Aug 2016 09:34:20 -0300 Mauricio Faria de Oliveira <mauricfo@xxxxxxxxxxxxxxxxxx> wrote:

> On 08/04/2016 10:05 PM, Andrew Morton wrote:
> > Of course, the alternative is to just delete the damn warnings from
> > ppc_iommu_map_sg(). Imagine that! Have they ever been of any use to
> > anyone?
>
> Sure. I submitted a patch to convert it to dynamic debug (so it would
> still be available if one wanted to), but it wasn't accepted [1]; so
> I guess it apparently is, in some cases.
>
> [1] https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-June/144196.html
>

Bah. What about WARN__ON_ONCE()? Or much heavier ratelimiting?