Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp247824lqt; Thu, 6 Jun 2024 02:20:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeaWfsDGlVfM6tq1xdI7qYz0JdIogvuR5O5WDtp0shzJpmttbqX1QuTGpVw0jvqD+ovgcSOrAWLWBKPeEzyPiM+h7DdtplHkSk1+Xnhg== X-Google-Smtp-Source: AGHT+IFHcYFVjno903U3rGQ+/iPT8SjNZVtmtzitzWEnw2orLDh9/SiECeru3jCX3jA/QtGtnNi4 X-Received: by 2002:a05:6808:60f:b0:3d1:fc3d:a3c with SMTP id 5614622812f47-3d20428d8a8mr5512744b6e.16.1717665650198; Thu, 06 Jun 2024 02:20:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717665650; cv=pass; d=google.com; s=arc-20160816; b=x29YK1AoV+IPWdcRfTKpq6psugasEi2B+acWNlgcsB+4fVo+OKm7vt/GiTdHLHFwym wy5a4GzgKGpsh+1kmmycGytRWtXXPX8H+RHxU1qcQMWAigQaAdd/Gup1tasJxDDt3E+g fOYpTnyqmACDTJFZH1swszyhCEGogC0LDobYyIGOFn9NcaQAo5kdp7gQdijOMUx2UT2y oVJOS0ngz2etKxFLdws4Fv1mOh2cPIt3LHr+ULFE2xRPyTgFilGke5Pe1Z9fdlrVB/Qr k5noC+uS4RT61AhtpSz/1+yz+ioIarOpVETOlXYCAjLyVT0Qhyi/rqwBWs6fPwNnYg1S lE3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=EMuvdvqp3n0ce/pawlMPoxxmp4dH/RgIod7YTFEiVfA=; fh=+HAA0C9BcP2JO6IQa4zzYuOOtWXb9Q4Zm1Z4qXPZU9g=; b=cdTtpluHJoc5X/Adh2o4XWV319VGZH94lDFY2qbq2xPOwKcEXznhuCrFlNvkWJ9hGR O590uHg8k6bAEg2O+ZWPZjxFcnMifyEp1F+B1LxcVwpjyAjEJjrzfxxikp8Ky7bUnCS3 5dSItdc1Fl0OFb2EaDPZ8fAN3/dwloEgX9LZkqYo+SyMgxTw5ySk9wA6oSV5E9/9L0Xl msNaqos15+MVpP/hpvvBnRGfzXILQOT42DVn9P2sWY6Y815TQ0/Yk49634m+dol3t5kj MXWeaJGMjE9UqCOL672dDKDO3oEaNoOJgNeJN5DFufvU7bZWtqn06SXXLT22UarONUD7 5aSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TL+IaoW7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-203971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038a6f932si11571541cf.149.2024.06.06.02.20.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TL+IaoW7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-203971-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203971-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B707C1C234C2 for ; Thu, 6 Jun 2024 09:20:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6B2013F446; Thu, 6 Jun 2024 09:18:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TL+IaoW7" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B24EE13F426; Thu, 6 Jun 2024 09:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717665489; cv=none; b=UGAI/I4tJDByAIt2KvgpKEatK81mUSccLSosB6Y8b5BiQrpzVGrKhVR+H4G/+8uecAQXZxTz0ctNVVDF4QTFf2ICZg9ncS2uxAHe7BNMTVuEox75Zx26RH3h7/ZUlsjrF79gGxneyY83FNC39Yzxv4tX8BiR3aFwz6rm3emQbC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717665489; c=relaxed/simple; bh=9xIvntBD9ISwIlNxjxBtMfBTyA/FedaJxpNj7NtHMNc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=DuIQd5hlFk/5QNXr5ijBM9Cd2725CpP0VBh9JNARnN5wiiooy66nxTnrP+aLVky3EIg/A/ozD98rZZT0FQAEo/umxbUS8yvS2og0l25yVCGBkZoPF7Mu4rbLANNyzvGfvYS5UlU1ro+EemHnnXXQo/qw13i36p44wf5wD6ayqJ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TL+IaoW7; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1f65a3abd01so6949765ad.3; Thu, 06 Jun 2024 02:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717665487; x=1718270287; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EMuvdvqp3n0ce/pawlMPoxxmp4dH/RgIod7YTFEiVfA=; b=TL+IaoW7m1b9mNUqd9I/6B/L3U7aMmvYosQJ3SFvofiIWEVh1DNKBP3FMy4LEDzodx w6hAgVGAxDWIbgxK3FqXGlRxYGeuz/z7eDcaQ3pGGaPJn0pv7ByMJpjR6j47Ev0cVrLE UQUfkF0WHeRDbz+Fu+8HCarFX763Rhjkfgf0pO0HZ28zZKQfmIiXWealpfSIgGGNLifT zkX4J5JAhtaYJ4VIdTqE8YTcYjA5RXtYfdv9ovgMm0ubchN4M9id44muCnddIWzC00X6 zaQpeahOpCVtKB6d0u2PcUbVUWHvCFBIjWfRA8iwRMJ/1rK4iYaAorxCxMtbDWylRbEz IbJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717665487; x=1718270287; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EMuvdvqp3n0ce/pawlMPoxxmp4dH/RgIod7YTFEiVfA=; b=ojJG4WuVwuSBGcPEdi6UKyOuR6l00YhCiv/v4uqLp3IDItFXalwPeL0JVkp/K9fjWj foS63EX2u3F71bfKjnjSkqcVoLOzZHUWzUJtSG02oyDV8cnjADVp9HynxF1iq3Ev5zNJ RYtQzOqXAbWIJ1BrU7RmIz/Ms/pxdXk/mjsbKOfgFORlgoo6rKR3fCc6few+JE2aAN6u 5GF4dBFkCbpuGTiVPwqDvxTe7X2U4foSqs9sj2uUmMutnYFvm79aqt3O+p5gH22Q44Lx 1I4akNVVBXWbEwHwWGT6w1zRiCsRyNRsJm5CjtZSKiU42KlVJkJVy9kafNb8tBWbaa+I a5uA== X-Forwarded-Encrypted: i=1; AJvYcCWCNUbIKxKpftRXiG3iqAo7RpRP3+k6IVHfHSKLhQxp38EL3Zq/hbjvlzXK4VB1/psA30pflZV2+WGJJkXfwE48r9bHwxET2Ip0nREYOFGLgegkUUPd9RskPcJBAEQ6q9tZEaY18xl2 X-Gm-Message-State: AOJu0YwKgIYgduTLrdOwh/+6Zyi0tVsbk54S83spBhlGNwueOBzyL49y gOvJ0a22dTf2GlMFDmee8UMqUGLSPEPwbcWx9l1YUwzZoU5qzhdE X-Received: by 2002:a17:902:db08:b0:1f4:9474:e44d with SMTP id d9443c01a7336-1f6a5a0e824mr63914825ad.21.1717665486819; Thu, 06 Jun 2024 02:18:06 -0700 (PDT) Received: from localhost (97.64.23.41.16clouds.com. [97.64.23.41]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd7ee105sm9869355ad.252.2024.06.06.02.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:18:06 -0700 (PDT) From: Wenchao Hao To: Chandan Babu R , "Darrick J . Wong" , Dave Chinner , Allison Henderson , linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Wenchao Hao Subject: [PATCH] xfs: Remove header files which are included more than once Date: Thu, 6 Jun 2024 17:17:54 +0800 Message-Id: <20240606091754.3512800-1-haowenchao22@gmail.com> X-Mailer: git-send-email 2.38.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Following warning is reported, so remove these duplicated header including: ./fs/xfs/libxfs/xfs_trans_resv.c: xfs_da_format.h is included more than once. ./fs/xfs/scrub/quota_repair.c: xfs_format.h is included more than once. ./fs/xfs/xfs_handle.c: xfs_da_btree.h is included more than once. ./fs/xfs/xfs_qm_bhv.c: xfs_mount.h is included more than once. ./fs/xfs/xfs_trace.c: xfs_bmap.h is included more than once. This is just a clean code, no logic changed. Signed-off-by: Wenchao Hao --- fs/xfs/libxfs/xfs_trans_resv.c | 1 - fs/xfs/scrub/quota_repair.c | 1 - fs/xfs/xfs_handle.c | 1 - fs/xfs/xfs_qm_bhv.c | 1 - fs/xfs/xfs_trace.c | 1 - 5 files changed, 5 deletions(-) diff --git a/fs/xfs/libxfs/xfs_trans_resv.c b/fs/xfs/libxfs/xfs_trans_resv.c index 6dbe6e7251e7..3dc8f785bf29 100644 --- a/fs/xfs/libxfs/xfs_trans_resv.c +++ b/fs/xfs/libxfs/xfs_trans_resv.c @@ -22,7 +22,6 @@ #include "xfs_rtbitmap.h" #include "xfs_attr_item.h" #include "xfs_log.h" -#include "xfs_da_format.h" #define _ALLOC true #define _FREE false diff --git a/fs/xfs/scrub/quota_repair.c b/fs/xfs/scrub/quota_repair.c index 90cd1512bba9..cd51f10f2920 100644 --- a/fs/xfs/scrub/quota_repair.c +++ b/fs/xfs/scrub/quota_repair.c @@ -12,7 +12,6 @@ #include "xfs_defer.h" #include "xfs_btree.h" #include "xfs_bit.h" -#include "xfs_format.h" #include "xfs_log_format.h" #include "xfs_trans.h" #include "xfs_sb.h" diff --git a/fs/xfs/xfs_handle.c b/fs/xfs/xfs_handle.c index a3f16e9b6fe5..cf5acbd3c7ca 100644 --- a/fs/xfs/xfs_handle.c +++ b/fs/xfs/xfs_handle.c @@ -21,7 +21,6 @@ #include "xfs_attr.h" #include "xfs_ioctl.h" #include "xfs_parent.h" -#include "xfs_da_btree.h" #include "xfs_handle.h" #include "xfs_health.h" #include "xfs_icache.h" diff --git a/fs/xfs/xfs_qm_bhv.c b/fs/xfs/xfs_qm_bhv.c index 271c1021c733..a11436579877 100644 --- a/fs/xfs/xfs_qm_bhv.c +++ b/fs/xfs/xfs_qm_bhv.c @@ -11,7 +11,6 @@ #include "xfs_trans_resv.h" #include "xfs_mount.h" #include "xfs_quota.h" -#include "xfs_mount.h" #include "xfs_inode.h" #include "xfs_trans.h" #include "xfs_qm.h" diff --git a/fs/xfs/xfs_trace.c b/fs/xfs/xfs_trace.c index 9c7fbaae2717..e1ec56d95791 100644 --- a/fs/xfs/xfs_trace.c +++ b/fs/xfs/xfs_trace.c @@ -38,7 +38,6 @@ #include "xfs_iomap.h" #include "xfs_buf_mem.h" #include "xfs_btree_mem.h" -#include "xfs_bmap.h" #include "xfs_exchmaps.h" #include "xfs_exchrange.h" #include "xfs_parent.h" -- 2.38.1