Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2549660yba; Mon, 6 May 2019 07:52:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx05mdwiRdPUKRCvueO2QqId76UVvGqRAa8Thsd6HETCMPQksHCiIg4Hted1zGnlnPM4lXi X-Received: by 2002:aa7:8d98:: with SMTP id i24mr34041028pfr.8.1557154346205; Mon, 06 May 2019 07:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557154346; cv=none; d=google.com; s=arc-20160816; b=BRkjJ8syziqD/zTZKDFvhA674dIPYr8Q4EtDX7mv8nTniRPs13nwk9IKEQk9EpyirA CRE6Z22xCJ0xkPTUsKtP7wqVe3HGEQEyoZ+e8QdizXLa7ouyGbRK/MxP8PCw7aTRUvuY wVddry0p5fS5kXpDJey+JzBInuxiGn6qd5fBhqlvct/T8TGAh4IbczVpSy/6F59gPi6W hQXYO5pWaRmi8qyaUb0WM290dM+AHkbr2ZQf77hKOt/9Dc7yLLGE+gYrgVdr/lY1kwa0 R0iWKvVuo0R61pb0zvE/eBvoOY6IyuN/3JsuGLdnyZYeM53MWzvbBRxd9zeAcdFYsCsb oppA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3ulwrn38XnQDsjshFpq0Nqcon8bWKFwRFgS3wu0lfIk=; b=Vrsns+B4WQuHgu1OprViSFjTb8TqXBQOrVX3S35/6oA6cx4OLyWgk7mlni+ceYty4T XjFm9SF1q9eczYkqSwvLynxZyYxjbHgYvKvfDzq8TXt5CeMs8V5AxMm1BTbeMCQs6El1 1uyC3cpoRWUsipXcSB3qT1Jug3ew3831U00Iw1ZhrV0BhKCvv6o6i1cx0/CMQ/aZZa/X qHGw4wTj4obz15XF18IxZSPEifkmjhS9IzSj7bq3OCRMYH6ACjfLMJfEeub0suiYjB7/ VLIcx3ABcq+1nf4FsIlfRLV32LOXfBy+Oz48elN93GtXIL32kjUaEKD7pKqodIE9SEJw c6UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0qumWqKW; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si14497470pfn.164.2019.05.06.07.52.08; Mon, 06 May 2019 07:52:26 -0700 (PDT) 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=0qumWqKW; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729502AbfEFOuE (ORCPT + 99 others); Mon, 6 May 2019 10:50:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:51686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728340AbfEFOtp (ORCPT ); Mon, 6 May 2019 10:49:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 005D4205ED; Mon, 6 May 2019 14:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557154184; bh=Ssz7bAFJmMrMEk3bUWNjS3aKTLjX0TpE0Llhx7ykABY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0qumWqKWfjYqJpe6yA9RswFvzCytobXicg2cOodIrU3CLS18l4ePeh5khqGBoWD1u WWxoN/ahyqQ0jYTMflf6fco1eFASKGq3GytYfuhpHYmt3yd0ihV24H3ldnZN0huVz0 +GW4GJX8acxTTgQmKIeJ5mE6vnyzLvsPaPVwwXl4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Louis Taylor , Nick Desaulniers , Alex Williamson , Sasha Levin Subject: [PATCH 4.9 43/62] vfio/pci: use correct format characters Date: Mon, 6 May 2019 16:33:14 +0200 Message-Id: <20190506143054.928200753@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143051.102535767@linuxfoundation.org> References: <20190506143051.102535767@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 426b046b748d1f47e096e05bdcc6fb4172791307 ] When compiling with -Wformat, clang emits the following warnings: drivers/vfio/pci/vfio_pci.c:1601:5: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] vendor, device, subvendor, subdevice, ^~~~~~ drivers/vfio/pci/vfio_pci.c:1601:13: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] vendor, device, subvendor, subdevice, ^~~~~~ drivers/vfio/pci/vfio_pci.c:1601:21: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] vendor, device, subvendor, subdevice, ^~~~~~~~~ drivers/vfio/pci/vfio_pci.c:1601:32: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] vendor, device, subvendor, subdevice, ^~~~~~~~~ drivers/vfio/pci/vfio_pci.c:1605:5: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] vendor, device, subvendor, subdevice, ^~~~~~ drivers/vfio/pci/vfio_pci.c:1605:13: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] vendor, device, subvendor, subdevice, ^~~~~~ drivers/vfio/pci/vfio_pci.c:1605:21: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] vendor, device, subvendor, subdevice, ^~~~~~~~~ drivers/vfio/pci/vfio_pci.c:1605:32: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] vendor, device, subvendor, subdevice, ^~~~~~~~~ The types of these arguments are unconditionally defined, so this patch updates the format character to the correct ones for unsigned ints. Link: https://github.com/ClangBuiltLinux/linux/issues/378 Signed-off-by: Louis Taylor Reviewed-by: Nick Desaulniers Signed-off-by: Alex Williamson Signed-off-by: Sasha Levin --- drivers/vfio/pci/vfio_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index 7338e43faa17..f9a75df2d22d 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c @@ -1467,11 +1467,11 @@ static void __init vfio_pci_fill_ids(void) rc = pci_add_dynid(&vfio_pci_driver, vendor, device, subvendor, subdevice, class, class_mask, 0); if (rc) - pr_warn("failed to add dynamic id [%04hx:%04hx[%04hx:%04hx]] class %#08x/%08x (%d)\n", + pr_warn("failed to add dynamic id [%04x:%04x[%04x:%04x]] class %#08x/%08x (%d)\n", vendor, device, subvendor, subdevice, class, class_mask, rc); else - pr_info("add [%04hx:%04hx[%04hx:%04hx]] class %#08x/%08x\n", + pr_info("add [%04x:%04x[%04x:%04x]] class %#08x/%08x\n", vendor, device, subvendor, subdevice, class, class_mask); } -- 2.20.1