Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp129833rdh; Wed, 25 Oct 2023 19:17:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCGnNwzSiAh+EHRQBLmlV5zzeNUdCgDtPRq6SwtJAXDVrc9/XYx25nEsR/XctjPDC+ecYv X-Received: by 2002:a05:6102:4754:b0:45a:b396:a44 with SMTP id ej20-20020a056102475400b0045ab3960a44mr6517545vsb.25.1698286622660; Wed, 25 Oct 2023 19:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698286622; cv=none; d=google.com; s=arc-20160816; b=O+s6pVO4aRhmUf/KGfUrSsvSGw39qAd4RExsDDEaIldEwMQWdJEPiVpcaXBPtZRC8m cDfV0PTJIIZFqXN5R5DZBU6CLp19iFgA8eIpKTwhczZjWcrhHtAtviEPqLKjLsdX/AEL 73IKonl1RQZy9mcPkZ6PZ04EIM919MK0sveZOKCzDt26YcjhE5I2c1oLcKfo0b2WWDKf NTvVRSRp1JFyFMKvFHIh5/YtM1BW8F2ppgwRYe7KrziHEsf8XNuAEZ8KoFUdkaRxy4YN iqg5iWus6laBR0sQIcbTS3UnQX5tWLnqlgOyMeipvNx9orfL9fMs7MSWM8G+3zNUKy8R As6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7ChiGuNHcql0eZMLqFSChix0m+YTcNuMbUEY+Dbq5M8=; fh=HccedMhTcgJEpddp7zhnrxHwiSZ6Rr6gaM0rzJCqVjU=; b=C5q7tXOjrVCIeg54oBWK1pC2n9OVZzXhGjBiRMjcDL7/HDc3OoxgzlU3aFQ8fonlz9 0DARtW5eVqx/l6/LigZlEJiAUxq99Q68DhZd8EkfGCjOn+kEFZwqBa3ccS3x9N6W1Zer 2YAvrED/MtgB4hx4QZ4lSABtXSMayv9WLMfYnvaB4gvoT9aRQ34UdMqSihW/7RQvddfy wfuZGXKOouglP5JQYcYRwQECCLmjafVyDIfbhZcYDcg2LNDTy+UySccGu/ibRs/ocYC1 sE9EIsRif7rn34wzYlhf/51lmC00Pw8iwGlACe99X/KuaWV1WTqIkUU303bsF1WcGLQi wBTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l191-20020a25ccc8000000b00d9a5fa4705asi13341213ybf.454.2023.10.25.19.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 19:17:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id AC2158028FA1; Wed, 25 Oct 2023 19:16:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343699AbjJZCQt (ORCPT + 99 others); Wed, 25 Oct 2023 22:16:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbjJZCQs (ORCPT ); Wed, 25 Oct 2023 22:16:48 -0400 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE3CA18A for ; Wed, 25 Oct 2023 19:16:45 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=mengferry@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0Vuw8irE_1698286599; Received: from localhost(mailfrom:mengferry@linux.alibaba.com fp:SMTPD_---0Vuw8irE_1698286599) by smtp.aliyun-inc.com; Thu, 26 Oct 2023 10:16:43 +0800 From: Ferry Meng To: linux-erofs@lists.ozlabs.org Cc: LKML , Ferry Meng Subject: [PATCH 2/2] erofs: tidy up redundant includes Date: Thu, 26 Oct 2023 10:16:27 +0800 Message-Id: <20231026021627.23284-2-mengferry@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b In-Reply-To: <20231026021627.23284-1-mengferry@linux.alibaba.com> References: <20231026021627.23284-1-mengferry@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 19:16:59 -0700 (PDT) - Remove unused includes like and ; - Move common includes into "internal.h". Signed-off-by: Ferry Meng --- fs/erofs/data.c | 2 -- fs/erofs/decompressor.c | 1 - fs/erofs/decompressor_deflate.c | 1 - fs/erofs/decompressor_lzma.c | 1 - fs/erofs/internal.h | 2 ++ fs/erofs/super.c | 3 --- 6 files changed, 2 insertions(+), 8 deletions(-) diff --git a/fs/erofs/data.c b/fs/erofs/data.c index 0c2c99c58b5e..ceb6c248bf40 100644 --- a/fs/erofs/data.c +++ b/fs/erofs/data.c @@ -5,9 +5,7 @@ * Copyright (C) 2021, Alibaba Cloud */ #include "internal.h" -#include #include -#include #include void erofs_unmap_metabuf(struct erofs_buf *buf) diff --git a/fs/erofs/decompressor.c b/fs/erofs/decompressor.c index 332ec5f74002..29d539481a2b 100644 --- a/fs/erofs/decompressor.c +++ b/fs/erofs/decompressor.c @@ -4,7 +4,6 @@ * https://www.huawei.com/ */ #include "compress.h" -#include #include #ifndef LZ4_DISTANCE_MAX /* history window size */ diff --git a/fs/erofs/decompressor_deflate.c b/fs/erofs/decompressor_deflate.c index 19e5bdeb30b6..c15ce24d51df 100644 --- a/fs/erofs/decompressor_deflate.c +++ b/fs/erofs/decompressor_deflate.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0-or-later -#include #include #include "compress.h" diff --git a/fs/erofs/decompressor_lzma.c b/fs/erofs/decompressor_lzma.c index dee10d22ada9..72a202740cdb 100644 --- a/fs/erofs/decompressor_lzma.c +++ b/fs/erofs/decompressor_lzma.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include -#include #include "compress.h" struct z_erofs_lzma { diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index ca7d85958450..3551a5734e89 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -8,8 +8,10 @@ #define __EROFS_INTERNAL_H #include +#include #include #include +#include #include #include #include diff --git a/fs/erofs/super.c b/fs/erofs/super.c index 019229eb2ef6..f38ff2d63364 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -4,14 +4,11 @@ * https://www.huawei.com/ * Copyright (C) 2021, Alibaba Cloud */ -#include #include -#include #include #include #include #include -#include #include #include "xattr.h" -- 2.19.1.6.gb485710b