Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp19077imj; Fri, 8 Feb 2019 14:06:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IaXmzLNmifCbFisDwa61EnSLGh5XLyi3VwDYhaIePSjOKp4Ooa8O/iI+tyrz9rfEFv6iOWL X-Received: by 2002:a63:235c:: with SMTP id u28mr7360191pgm.400.1549663579558; Fri, 08 Feb 2019 14:06:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549663579; cv=none; d=google.com; s=arc-20160816; b=iNlXqfYgw0+ks7AwtY4q2GP5wl8rkY3+pVCmks3G2GNlSk0AM8AwibJ5kMDUcBXuTc yPzgNU644Ljp6eoNAuA0h4WopKu9jZmTooq58tOiloVFIepwexqhL8okylxiKKUyC5ut RZA9pWP53UOBNFHSjI0L+MjiKSvnplbRnMvYKjtSn8j/JYhO0ckL/XToI2+CpnNCULF6 sQoyxE+T2YHq4RWU0x4OVdYYr7IstRU9/8tSfDwnUslAYFAv4qoqu0DI5C+KJ4G+9pK+ 8ZSNvKe+NLOtCYBFm9qAt92QRAdB/n0L+JKu4Yfc4LrwJFHi2CstkhreIDnccBSY27sC DSeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=nB00TqmxitHVy0RPTyhGV2ZiA42ajOpjo5raN1CRdww=; b=BGSLqbOieD4F/jCBotoqkprAAwQXgNPglYe1897x0QmdzDeHUvAxXtKuSlW5qRFs8y qzG3VViF5biA5JO7hUqFsdHLMKlQPiyIf6dzgoKTvYDFcqSCphOURZHV5JumHYXCbjO6 b0Wsau4cUHVlR8cczDGP7DVjauYGokqkQXiNlvRbIqT32R+G3MuQj+qRoLAgLBaP6hzN JA1TEXveIzEQqSBcOcfWl8hejv6IAgQlPE/KQK7RxiSeLTTy1/O0xNQ0o37qUT2uYQA+ XvWxTLkmjmPNFJkR4RUSm/6/Y1fj/qMioMwnhZ72pM3XXhTxg1galmeZ3HvHV5vMbr2h LTcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1JgKdZIN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si3764766plc.250.2019.02.08.14.06.02; Fri, 08 Feb 2019 14:06:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1JgKdZIN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727085AbfBHWFl (ORCPT + 99 others); Fri, 8 Feb 2019 17:05:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:53678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727061AbfBHWFl (ORCPT ); Fri, 8 Feb 2019 17:05:41 -0500 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC8F221908; Fri, 8 Feb 2019 22:05:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549663540; bh=safym6PJ2O/usn+yVRwjhoFchGx5+Mmu+SU7pCV9hls=; h=Subject:From:To:Cc:Date:From; b=1JgKdZINPVgfC5SMtFVklvnvXKqcALDnMM7GbZ+Kk5QTK8PW7jAI4B7JPHGiN62H2 fRGlDcfbZIHABvrxhSSYy78UG8o/FpoR0vdZOdOlOScd0+6+tsyXUirneU4pAdayRL q6ZJtxeIeDsDxYixLfdem2ReqJT6sq1VC8lmzniE= Subject: [PATCH v1 0/7] iommu: Minor cleanups and dev_printk() usage From: Bjorn Helgaas To: Joerg Roedel Cc: David Woodhouse , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Date: Fri, 08 Feb 2019 16:05:33 -0600 Message-ID: <154966319813.132359.14641436497228395449.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I've had these minor iommu cleanups lying around for a while, but the ugly dmesg logs from [1] prompted me to finally post them. Take what you like, ignore the rest, and tell me so I can clear out my queue of old stuff. These fix no actual bugs. [1] https://lore.kernel.org/linux-pci/1547649064-19019-1-git-send-email-liudongdong3@huawei.com --- Bjorn Helgaas (7): iommu: Use dev_printk() when possible iommu/amd: Use dev_printk() when possible iommu/vt-d: Use dev_printk() when possible iommu/vt-d: Remove unnecessary local variable initializations iommu/vt-d: Remove unused dmar_remove_one_dev_info() argument iommu/vt-d: Remove misleading "domain 0" test from domain_exit() iommu/vt-d: Simplify control flow drivers/iommu/amd_iommu.c | 25 +++---- drivers/iommu/amd_iommu_init.c | 20 +++--- drivers/iommu/intel-iommu.c | 136 +++++++++++++++++----------------------- drivers/iommu/iommu.c | 8 +- 4 files changed, 84 insertions(+), 105 deletions(-)