Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5105967rwb; Mon, 21 Nov 2022 16:56:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf63HPeuH6fsSpL9yEVM/YBXDNEnREDLZ6He7G98MWxNIRgNS6scTxvVhYSfzTnT+5bubX87 X-Received: by 2002:a62:e80b:0:b0:56e:ad31:b98b with SMTP id c11-20020a62e80b000000b0056ead31b98bmr5785833pfi.40.1669078595169; Mon, 21 Nov 2022 16:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669078595; cv=none; d=google.com; s=arc-20160816; b=GdQRyroDwCqcdRFmMY8q4U+UVDQqMXXAbWszvzowcWncNQJ3ZhDmzOf3i0y+VO/aJx mv8uKM8bs999eGVG+WhgpaT8/4N+32ejm1UVqB7bZtoYKHX7CN7OJ3G9zTQu2C5aBPPC igYOUDLpJMyWiuwCTqJva+/kShcl/S4SGf5K62mnE5SmwIPe++DDCHBzP5SwMpql8IIJ 8t+rxZayqjcUCVvqNpdunbQBVUBpSccA6tn/3RysUkQtwFKpv2U1vs1dWD0eURyU2+G0 psNGPSZUylpJ0Vjh0QPp8VYtSMzNoG8lNHhkVWXgSNtPU08lQWiUOaP1ImyyYTatLPLM JGng== 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 :dkim-signature; bh=ieWdoJ6IdwL7CDx0AKtVlwYjIjj806yCBp1ZBo+soD0=; b=Afw9X4bKoHwIgSHQJR+kGOTFU4CstnvkgydU2gkjeBILoZECHjL/BbP8tzFyZu/GeI TZG9ob+Hk7iOjsPqZlVvYzIAYItU+/FWBcsohBNKDLz7AT46znqWim0yVyH213FwASB4 hCRkf6QBVBuFeQJkuAyna4L4eYpUgR3sCudgF/hrktbk8Kfr4+QClEGUkxAqzrayEoz/ nefyqQlfxjYa5nYruouKpAu844iUWoGH8LvRGuIk3W/tmMyZTa1d/g4qcxdVzyjNl54c WlWcI7aRHw9DTgsZHd2+sT8XFgEWwTx1IC+90VBVPGX8XKOg4nAap79OMUo+r9l7mGKQ 6beA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="lJS/QwKg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020a170902d3d300b001825b1375ebsi11774684plb.544.2022.11.21.16.56.24; Mon, 21 Nov 2022 16:56:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="lJS/QwKg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232017AbiKVAhR (ORCPT + 91 others); Mon, 21 Nov 2022 19:37:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbiKVAhB (ORCPT ); Mon, 21 Nov 2022 19:37:01 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E97FDC6972 for ; Mon, 21 Nov 2022 16:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669077420; x=1700613420; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VZ2LtOW1xcwYPaSiUZLXM5yrsWzASb/u5zLe/eeYO0k=; b=lJS/QwKgDi/WvE+04MzQDmZ7HOhtorxAFqFgpaMVwIBKRemreMkU1fKO MTfb6sgrOm1U1kPH4iRZJOS6jNUZpPOt5ocloKDd3nwazfoJUiPt+YYG5 dekIY0rcnl/hDJa0XVg1IRwyFBcxIgZgSmZXLRPZpkJoymnZllIuit3XR V44u3BNIufM8CcNQQbINbSK7QpxHCLFil32R7E4v7dEtAjSktXuxELJSw h9LEyO77myzJeViP6+1buVH/fxRoOLWFGDAF8QhOsTAaph+gCoZrhgIK+ HxcaGMmc+53PiBAMmKD8Y9WRj2EE92q9+3fBMm5/eZGNdNcBCtrToBvrY A==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="315516484" X-IronPort-AV: E=Sophos;i="5.96,182,1665471600"; d="scan'208";a="315516484" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 16:37:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="619018429" X-IronPort-AV: E=Sophos;i="5.96,182,1665471600"; d="scan'208";a="619018429" Received: from allen-box.sh.intel.com ([10.239.159.48]) by orsmga006.jf.intel.com with ESMTP; 21 Nov 2022 16:36:59 -0800 From: Lu Baolu To: Joerg Roedel Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] iommu/vt-d: Rename domain_add_dev_info() Date: Tue, 22 Nov 2022 08:29:47 +0800 Message-Id: <20221122002949.148140-6-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221122002949.148140-1-baolu.lu@linux.intel.com> References: <20221122002949.148140-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dmar_domain_attach_device() is more meaningful according to what this helper does. Signed-off-by: Lu Baolu Reviewed-by: Kevin Tian Link: https://lore.kernel.org/r/20221118132451.114406-6-baolu.lu@linux.intel.com --- 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 e814ddb84bbf..4484da88f917 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -2453,7 +2453,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; @@ -4286,7 +4287,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