From: Robin Murphy <robin.murphy@arm.com>
To: Guo Zhengkui <guozhengkui@vivo.com>,
Christoph Hellwig <hch@infradead.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
"open list:SWIOTLB SUBSYSTEM" <iommu@lists.linux-foundation.org>,
open list <linux-kernel@vger.kernel.org>
Cc: kernel@vivo.com
Subject: Re: [PATCH] Swiotlb: remove a duplicate include
Date: Wed, 22 Dec 2021 10:55:26 +0000 [thread overview]
Message-ID: <bd8f7c86-983a-58fa-460c-7e361df66cec@arm.com> (raw)
In-Reply-To: <20211222025416.3505-1-guozhengkui@vivo.com>
On 2021-12-22 02:54, Guo Zhengkui wrote:
> Remove a duplicate "#include <linux/io.h>". The deleted one in line 43
> is under "#ifdef CONFIG_DMA_RESTRICTED_POOL". However, there is already
> one in line 53 with no conditional compile.
>
> Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
> ---
> kernel/dma/swiotlb.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
> index 1b0501fd3e0e..8c091626ca35 100644
> --- a/kernel/dma/swiotlb.c
> +++ b/kernel/dma/swiotlb.c
> @@ -33,21 +33,20 @@
> #include <linux/ctype.h>
> #include <linux/highmem.h>
> #include <linux/gfp.h>
> #include <linux/scatterlist.h>
> #include <linux/cc_platform.h>
> #include <linux/set_memory.h>
> #ifdef CONFIG_DEBUG_FS
> #include <linux/debugfs.h>
> #endif
> #ifdef CONFIG_DMA_RESTRICTED_POOL
> -#include <linux/io.h>
> #include <linux/of.h>
> #include <linux/of_fdt.h>
> #include <linux/of_reserved_mem.h>
> #include <linux/slab.h>
> #endif
>
> #include <asm/io.h>
By the same token we don't need this one either - as a general rule,
linux/* headers can be assumed to include their asm/* equivalent, and
that is certainly true for io.h.
> #include <asm/dma.h>
>
> #include <linux/io.h>
TBH, now that I'm looking, the whole lot is a mess and I'm sure there's
more legacy cruft that doesn't need to be here. If I remember, I might
have a crack at a cleanup once rc1 is out.
Robin.
prev parent reply other threads:[~2021-12-22 10:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-22 2:54 Guo Zhengkui
2021-12-22 8:23 ` Christoph Hellwig
2021-12-22 10:55 ` Robin Murphy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bd8f7c86-983a-58fa-460c-7e361df66cec@arm.com \
--to=robin.murphy@arm.com \
--cc=guozhengkui@vivo.com \
--cc=hch@infradead.org \
--cc=iommu@lists.linux-foundation.org \
--cc=kernel@vivo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®