From patchwork Thu Jul 7 08:09:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 9218255 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9065160467 for ; Thu, 7 Jul 2016 08:12:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85763287A4 for ; Thu, 7 Jul 2016 08:12:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A0A0287AA; Thu, 7 Jul 2016 08:12:44 +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=-6.9 required=2.0 tests=BAYES_00,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 05C3B287A4 for ; Thu, 7 Jul 2016 08:12:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030378AbcGGIKm (ORCPT ); Thu, 7 Jul 2016 04:10:42 -0400 Received: from prv-mh.provo.novell.com ([137.65.248.74]:51540 "EHLO prv-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030411AbcGGIKA convert rfc822-to-8bit (ORCPT ); Thu, 7 Jul 2016 04:10:00 -0400 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Thu, 07 Jul 2016 02:09:59 -0600 Message-Id: <577E2A7702000078000FBF78@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Thu, 07 Jul 2016 02:09:59 -0600 From: "Jan Beulich" To: , "Bjorn Helgaas" , , "Konrad Rzeszutek Wilk" , "Juergen Gross" Cc: , Subject: [PATCH] xen-pcifront: prefer xenbus_write() over xenbus_printf() where possible Mime-Version: 1.0 Content-Disposition: inline Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ... as being the simpler variant. Signed-off-by: Jan Beulich --- drivers/pci/xen-pcifront.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 4.7-rc6-prefer-xenbus_write.orig/drivers/pci/xen-pcifront.c +++ 4.7-rc6-prefer-xenbus_write/drivers/pci/xen-pcifront.c @@ -822,8 +822,8 @@ do_publish: err = xenbus_printf(trans, pdev->xdev->nodename, "event-channel", "%u", pdev->evtchn); if (!err) - err = xenbus_printf(trans, pdev->xdev->nodename, - "magic", XEN_PCI_MAGIC); + err = xenbus_write(trans, pdev->xdev->nodename, + "magic", XEN_PCI_MAGIC); if (err) { xenbus_transaction_end(trans, 1);