From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C352EC433EF for ; Wed, 22 Dec 2021 10:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240099AbhLVKze (ORCPT ); Wed, 22 Dec 2021 05:55:34 -0500 Received: from foss.arm.com ([217.140.110.172]:43632 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244311AbhLVKzc (ORCPT ); Wed, 22 Dec 2021 05:55:32 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 67D481FB; Wed, 22 Dec 2021 02:55:32 -0800 (PST) Received: from [10.57.34.58] (unknown [10.57.34.58]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5FAF13F5A1; Wed, 22 Dec 2021 02:55:31 -0800 (PST) Message-ID: Date: Wed, 22 Dec 2021 10:55:26 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH] Swiotlb: remove a duplicate include Content-Language: en-GB To: Guo Zhengkui , Christoph Hellwig , Marek Szyprowski , "open list:SWIOTLB SUBSYSTEM" , open list Cc: kernel@vivo.com References: <20211222025416.3505-1-guozhengkui@vivo.com> From: Robin Murphy In-Reply-To: <20211222025416.3505-1-guozhengkui@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-12-22 02:54, Guo Zhengkui wrote: > Remove a duplicate "#include ". 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 > --- > 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 > #include > #include > #include > #include > #include > #ifdef CONFIG_DEBUG_FS > #include > #endif > #ifdef CONFIG_DMA_RESTRICTED_POOL > -#include > #include > #include > #include > #include > #endif > > #include 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 > > #include 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.