From patchwork Tue May 30 09:25:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yanfei Xu X-Patchwork-Id: 10013 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2053925vqr; Tue, 30 May 2023 02:42:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4dv3p1BBv85eAbsRVQ57zoGxCHq9lSkim61B/jnPDv9Dv3TSHTWrh3/ewLs7Gm79CVLfK6 X-Received: by 2002:a17:90b:3d7:b0:23f:2661:f94c with SMTP id go23-20020a17090b03d700b0023f2661f94cmr1756840pjb.47.1685439724518; Tue, 30 May 2023 02:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685439724; cv=none; d=google.com; s=arc-20160816; b=UGXi8qdIy+qMtsLPSZ7OlqtGm20HU1M4a5qCglzaWwjxdMV+NhozJOtS37uVjtsxhZ M4YJ+6KdPlCX6t9qMP9WKBARvIKVFk3iogxJB4XYbMc0hYSw5lI2pTFms6kUsYkTVtr0 VBdiYqjHoV65uC46nJHOfLw5lngRv4qlRWIaY2RGW5WWeEtAKsaN9BXrzoZQzHr/okaR +0pxG8GUAK4f/j2S0vA8q9aB0MzS8q3nyiWDUfydAHccxNIfgdo4Xy44D4mDyrpdTcim 0tlU+6toFo/4lw0M5Ko2QvcSxQe4aaHVhAjHwMFXe3jMVhm4AqM9RTTUIoRCn65kJ4rH DMNQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=nYobozalrVVCsIYzDLTp4H5e8lG+xwiumcPd3JkO3Ik=; b=Cwnvtlg75Dy/VmzM7q1hTPKQ3OqXEworbP9a9ZFxW8g3u2+hY6QlCpiofNU/Xfevck GdEux+/etwexseDO+Ye7YwLHGo569EQZda42pDpiU4Ys01zJyOiVcnn5uDuakONrmE/P K7FnkTWc29dhbJwtR4F1BvqsMcZE8Hw2/w3noTHWBS7V6UR2iltKdTxMF9g30tIhIDnv yeEPX0cEfl6fYyYBx7wgPLBsf4ZXIt/F3Senwc+STQ9UW6urbpmusGPhzj8uUXszN9kv CPlE217RW/1bSgkpUDHhmRFiRCE3Pq7GbQy0LKnd+ZLbXVI7YQxJwCiz6N9CXeCx3mwe uFdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=d6PHBbyH; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a17090a854c00b0025649fb6758si6362882pjw.170.2023.05.30.02.41.51; Tue, 30 May 2023 02:42:04 -0700 (PDT) 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=d6PHBbyH; 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 S231193AbjE3J2t (ORCPT + 99 others); Tue, 30 May 2023 05:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231210AbjE3J2V (ORCPT ); Tue, 30 May 2023 05:28:21 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF500E42 for ; Tue, 30 May 2023 02:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685438865; x=1716974865; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fwDm9P8i3dM03v8xT2BAJA6dpEcFw/nhuLb3OjYlrjA=; b=d6PHBbyHb5qmReTyHnSRtOQNTau3DF4tAej5ulrGuAqG+doCgwc9QMHf xcWlR7yRDeZFp5wcMD5LvPOLZb7ZDX7VjSUmwHwYGlpfL4G2aI2Sd0sN8 0taw9TVzJfZ+zFGUQmBmXsau5886L/M9qrB4SoD2ZtkxqnpxIKe9noIh7 tIjEjpfn8raYUHHb5B5d0C6j5jyeD+Vw9RtNrnunrzZVpktqdRDo1fnoI F2NrFoXlrIke4lwWO+HneCfDhtVben1Ktwd/D2SgHozDMAg5vecVcK2gV ozgc+8qLPiWHvbTnx0Si+5/SX2/54TKJ22XBQCv5NL6U7T6xB6u6JMXoq Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="344365153" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="344365153" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2023 02:27:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="818720131" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="818720131" Received: from tower.bj.intel.com ([10.238.157.62]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2023 02:27:42 -0700 From: Yanfei Xu To: dwmw2@infradead.org, baolu.lu@linux.intel.com, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, yanfei.xu@intel.com Subject: [PATCH 0/2] Misc cleanup for iommu/vt-d Date: Tue, 30 May 2023 17:25:01 +0800 Message-Id: <20230530092503.152926-1-yanfei.xu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767311644148692333?= X-GMAIL-MSGID: =?utf-8?q?1767311644148692333?= No functional changes expected. Yanfei Xu (2): iommu/vt-d: Remove the dead code in init_iommu_hw() iommu/vt-d: Use BUG_ON to check NULL value of 'table' drivers/iommu/intel/iommu.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)