diff options
| author | Christoph Hellwig <hch@lst.de> | 2024-10-23 07:53:04 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:03:03 +0100 |
| commit | e64d571d183e69a22aba568fae936efc844a3e41 (patch) | |
| tree | 56db5baf6a9f3f263feea025b69b68fcdff9fb61 /samples | |
| parent | a60368b192a3ca79db34c9735a21e9b2a1b6f098 (diff) | |
| download | linux-e64d571d183e69a22aba568fae936efc844a3e41.tar.gz linux-e64d571d183e69a22aba568fae936efc844a3e41.tar.bz2 linux-e64d571d183e69a22aba568fae936efc844a3e41.zip | |
kfifo: don't include dma-mapping.h in kfifo.h
[ Upstream commit 44059790a5cb9258ae6137387e4c39b717fd2ced ]
Nothing in kfifo.h directly needs dma-mapping.h, only two macros
use DMA_MAPPING_ERROR when actually instantiated. Drop the
dma-mapping.h include to reduce include bloat.
Add an explicity <linux/io.h> include to drivers/mailbox/omap-mailbox.c
as that file uses __raw_readl and __raw_writel through a complicated
include chain involving <linux/dma-mapping.h>
Fixes: d52b761e4b1a ("kfifo: add kfifo_dma_out_prepare_mapped()")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241023055317.313234-1-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/kfifo/dma-example.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/kfifo/dma-example.c b/samples/kfifo/dma-example.c index 48df719dac8c..8076ac410161 100644 --- a/samples/kfifo/dma-example.c +++ b/samples/kfifo/dma-example.c @@ -9,6 +9,7 @@ #include <linux/kfifo.h> #include <linux/module.h> #include <linux/scatterlist.h> +#include <linux/dma-mapping.h> /* * This module shows how to handle fifo dma operations. |
