From nobody Thu Apr 2 16:43:14 2026 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 62DF0C54EE9 for ; Fri, 23 Sep 2022 00:48:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231705AbiIWAsg (ORCPT ); Thu, 22 Sep 2022 20:48:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231419AbiIWAsR (ORCPT ); Thu, 22 Sep 2022 20:48:17 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE2E5115BD1 for ; Thu, 22 Sep 2022 17:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663894089; x=1695430089; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MJXPMS/XhKv6zPYf3a2rF9C8OzRAinRWmgowCI7ErTw=; b=aBLe5aZxrB4C2HwfDKHXG310fS2dXjb9yWzuvB0fh/jXh1VXPIwnt/11 BHLxMyrTveQq+cRPD3RBfI/Z71b4+4+g2FBIYAOHYCniyyh+eawCUDOk6 zzr/Nl3l78ZxTS8jr/6x3miGugUeUd9urilUmJe6iiDr1q+ds4iAuEMs2 UjGP1h5YJKONbUTj1kY/fSME7jl08a7rULuvCh84yB2TLaMuDMrdzXsqW ilMTBxFYbT596YRRwxzzWN0XV4CNlE+eCVH2NA6WV83MDVUiHNqLyZlF/ 4lB0GaoRnNBADYQJrkUbtQ7w6fejJ6T8qqx+Y3VQYP3rwyzTUnURBflRk g==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="362278858" X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="362278858" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 17:48:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="650759956" Received: from allen-box.sh.intel.com ([10.239.159.48]) by orsmga008.jf.intel.com with ESMTP; 22 Sep 2022 17:48:06 -0700 From: Lu Baolu To: Joerg Roedel Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] iommu/vt-d: Remove pasid_set_eafe() Date: Fri, 23 Sep 2022 08:42:03 +0800 Message-Id: <20220923004206.3630441-4-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220923004206.3630441-1-baolu.lu@linux.intel.com> References: <20220923004206.3630441-1-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" It is not used anywhere in the tree. Remove it to avoid dead code. No functional change intended. Signed-off-by: Lu Baolu Link: https://lore.kernel.org/r/20220915081645.1834555-1-baolu.lu@linux.int= el.com --- drivers/iommu/intel/pasid.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/iommu/intel/pasid.c b/drivers/iommu/intel/pasid.c index c5e7e8b020a5..ccaf32949254 100644 --- a/drivers/iommu/intel/pasid.c +++ b/drivers/iommu/intel/pasid.c @@ -392,16 +392,6 @@ pasid_set_flpm(struct pasid_entry *pe, u64 value) pasid_set_bits(&pe->val[2], GENMASK_ULL(3, 2), value << 2); } =20 -/* - * Setup the Extended Access Flag Enable (EAFE) field (Bit 135) - * of a scalable mode PASID entry. - */ -static inline void -pasid_set_eafe(struct pasid_entry *pe) -{ - pasid_set_bits(&pe->val[2], 1 << 7, 1 << 7); -} - static void pasid_cache_invalidation_with_pasid(struct intel_iommu *iommu, u16 did, u32 pasid) --=20 2.34.1