From nobody Fri Dec 19 20:14:16 2025 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 20567C6FA83 for ; Mon, 26 Sep 2022 14:55:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233902AbiIZOzC (ORCPT ); Mon, 26 Sep 2022 10:55:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235191AbiIZOya (ORCPT ); Mon, 26 Sep 2022 10:54:30 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C0AB93217 for ; Mon, 26 Sep 2022 06:21:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664198496; x=1695734496; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VwD2ax6c2ADqceGj0aumfZ+lcLBCp9hQ4LGfMfk/sJA=; b=RR2IxRVILH4Ymm0gaUf0jP6cKVIQt5uVK4FzlUchjjwjFw6sbDRpogcf VzrrV+DQAqKhAcwbTEM9ZiuZF7mh0rHGoWoRhNJti8EdSXDUJekYHCAs9 umaA0tsKn+SYCeEkwNV0iHFlIqk3h3VlmZmVKZbjV/1AlZ5VZRwkj9jts tkUGoSrgHzhOmaOmsumS5Eo9oGGymDYouBLy/H2VKfrvzUHELqbM2L1UR X4glTDZPc4HLfaRROksOpQNmC6RtUoAt/JmLzXjA9c623OFZR9g5+XfL/ gDFzOhk9r6QvxwYlFNmoNErktjYQa4s8QLYE5kb7B1w9n0B/DEqoyyTEJ A==; X-IronPort-AV: E=McAfee;i="6500,9779,10482"; a="280750293" X-IronPort-AV: E=Sophos;i="5.93,346,1654585200"; d="scan'208";a="280750293" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2022 06:21:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10482"; a="683525663" X-IronPort-AV: E=Sophos;i="5.93,346,1654585200"; d="scan'208";a="683525663" Received: from allen-box.sh.intel.com ([10.239.159.48]) by fmsmga008.fm.intel.com with ESMTP; 26 Sep 2022 06:21:34 -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: Mon, 26 Sep 2022 21:15:26 +0800 Message-Id: <20220926131529.4045281-4-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220926131529.4045281-1-baolu.lu@linux.intel.com> References: <20220926131529.4045281-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 Reviewed-by: Kevin Tian 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