]> www.infradead.org Git - users/dwmw2/linux.git/commit
kfifo: don't include dma-mapping.h in kfifo.h
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Oct 2024 05:53:04 +0000 (07:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Oct 2024 06:05:20 +0000 (08:05 +0200)
commit44059790a5cb9258ae6137387e4c39b717fd2ced
treebe75043683dc04afc6404b689cc67211a8b535bc
parentec8c17e5ecb4a5a74069687ccb6d2cfe1851302e
kfifo: don't include dma-mapping.h in kfifo.h

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>
drivers/mailbox/omap-mailbox.c
include/linux/kfifo.h
samples/kfifo/dma-example.c