Message ID | 20190330144135.17351-1-helgaas@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <kvm-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 13B831669 for <patchwork-kvm@patchwork.kernel.org>; Sat, 30 Mar 2019 14:42:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6C3420856 for <patchwork-kvm@patchwork.kernel.org>; Sat, 30 Mar 2019 14:42:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D519D28B1C; Sat, 30 Mar 2019 14:42:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CB9920856 for <patchwork-kvm@patchwork.kernel.org>; Sat, 30 Mar 2019 14:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730918AbfC3Olz (ORCPT <rfc822;patchwork-kvm@patchwork.kernel.org>); Sat, 30 Mar 2019 10:41:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:52036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730849AbfC3Oly (ORCPT <rfc822;kvm@vger.kernel.org>); Sat, 30 Mar 2019 10:41:54 -0400 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 F3E2C218CD; Sat, 30 Mar 2019 14:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553956914; bh=ar6HuSPsuTQAbeDPCZQGqYEeHMmGny4xRq7ZinfB++k=; h=From:To:Cc:Subject:Date:From; b=KNrc7r4RH2CtY4jleuzK5gNQhw/CLEnUUWHMcwn7qCoJV67nWjd//gc4AfcTnDsDw 9zE8enGpu5FCgjNIGWWI9lYu/uHbMk411jmQA3DjHSm2D4T0DX7Gofx1Eag8WZZ6YV EKjhqqKQPtJWZoeJBQLxtvR+kYoUTa2shJrK27ao= From: Bjorn Helgaas <helgaas@kernel.org> To: Alex Williamson <alex.williamson@redhat.com> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Joe Perches <joe@perches.com>, Eric Auger <eric.auger@redhat.com>, Bjorn Helgaas <bhelgaas@google.com> Subject: [PATCH v2 0/1] vfio: Use dev_printk() when possible Date: Sat, 30 Mar 2019 09:41:34 -0500 Message-Id: <20190330144135.17351-1-helgaas@kernel.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: <kvm.vger.kernel.org> X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
vfio: Use dev_printk() when possible
|
expand
|
From: Bjorn Helgaas <bhelgaas@google.com> Use dev_printk() in VFIO when possible. Changes from v1: - Add colons after __func__ names in vfio_platform_amdxgbe.c (thanks, Joe). - Use the correct struct device * in vfio_platform_amdxgbe.c (thanks, Eric). - Use pci_printk() when we know we have a PCI device. - Add pci_notice_ratelimited() for use in vfio_pci.c. - Define dev_fmt in vfio_pci.c to avoid dropping the KBUILD_MODNAME prefix when converting from pr_*() to pci_printk(). This also adds the prefix to the places that already used dev_printk(). - Define dev_fmt in vfio_platform_common.c to avoid repeating "VFIO :" in messages (this also adds it to a few that didn't use the prefix). Bjorn Helgaas (1): vfio: Use dev_printk() when possible drivers/vfio/pci/vfio_pci.c | 26 +++++++---------- drivers/vfio/pci/vfio_pci_config.c | 28 ++++++++---------- .../platform/reset/vfio_platform_amdxgbe.c | 5 ++-- drivers/vfio/platform/vfio_platform_common.c | 12 ++++---- drivers/vfio/vfio.c | 29 +++++++++---------- include/linux/pci.h | 3 ++ 6 files changed, 49 insertions(+), 54 deletions(-)