Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF8FD612F for ; Tue, 8 Nov 2022 07:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667893301; x=1699429301; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fI3Z2Eq0iYmc5EDVVWEfZsSuZ4BKWL7GvqZERuOBhbE=; b=j25XLZw2Uf2bptfKM4270MwLkDB9icj0Q01LX3mfsAixbtcTp/Z8MYvD X/RS2SsYfqJpRV5vrrpYF+z+leoL+h1UskPDPkPrjJ2Wv2+IVAp0ojTDj wKHm57y5KKNXz5NCqB//GME/ohKtj+OZ2cyrq97UlguR+Y/fYBEc6H1CY iH+o03/MnufgHyDT0WKlzNlmf9Gd3DciOXN5RxAuxkvsLzt+chP11yEfl sO0WUtAa0g31k5CC7SQgMbpWhHglub3w7z1hui8wxpN32oce1WMygn0PW EGfBZD1S5xv8uAc8pcp+GhqF9EBK4g6QaNASFx6C/NI16zwhCWCappN8Z Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="290350173" X-IronPort-AV: E=Sophos;i="5.96,147,1665471600"; d="scan'208";a="290350173" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 23:41:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="699821949" X-IronPort-AV: E=Sophos;i="5.96,147,1665471600"; d="scan'208";a="699821949" Received: from allen-box.sh.intel.com ([10.239.159.48]) by fmsmga008.fm.intel.com with ESMTP; 07 Nov 2022 23:41:13 -0800 From: Lu Baolu To: iommu@lists.linux.dev Cc: Joerg Roedel , Kevin Tian , Will Deacon , Robin Murphy , Liu Yi L , Jacob jun Pan , linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH v2 6/8] iommu/vt-d: Rename domain_add_dev_info() Date: Tue, 8 Nov 2022 15:34:06 +0800 Message-Id: <20221108073408.1005721-7-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221108073408.1005721-1-baolu.lu@linux.intel.com> References: <20221108073408.1005721-1-baolu.lu@linux.intel.com> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit dmar_domain_attach_device() is more meaningful according to what this helper does. Signed-off-by: Lu Baolu --- drivers/iommu/intel/iommu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index 8bbe516f7d21..88af8e4194de 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -2492,7 +2492,8 @@ static int __init si_domain_init(int hw) return 0; } -static int domain_add_dev_info(struct dmar_domain *domain, struct device *dev) +static int dmar_domain_attach_device(struct dmar_domain *domain, + struct device *dev) { struct device_domain_info *info = dev_iommu_priv_get(dev); struct intel_iommu *iommu; @@ -4298,7 +4299,7 @@ static int intel_iommu_attach_device(struct iommu_domain *domain, if (ret) return ret; - return domain_add_dev_info(to_dmar_domain(domain), dev); + return dmar_domain_attach_device(to_dmar_domain(domain), dev); } static int intel_iommu_map(struct iommu_domain *domain, -- 2.34.1