Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2572774yba; Mon, 6 May 2019 08:11:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8NPJ7UJIo6dlnZs/uYSvJi3OY5xvVMbi0RYhTxEpRasPIOEBTFHcaQJu9iOxOx1FiRuq1 X-Received: by 2002:a17:902:854c:: with SMTP id d12mr33119425plo.150.1557155467086; Mon, 06 May 2019 08:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155467; cv=none; d=google.com; s=arc-20160816; b=J5dMQV3RBXlmN9r0TS5nPph08esuPDOfGUHOCR+fPszt9YMUnkeFLy+j6tPtAvlhUn bnz6lbqVTHTjud5h00VhM/h4a2inaDtnwJze1fRRmTOjJG+u8MX8mpXyycAq7Y3C9Gp2 3LrQp395WqD4xraOOUHWy0YHNWgPP/8vNxP87J1S1H4XX/uv3Ud4H1DTvrF2ksT0vkZ/ U/cKWdqrzou2Uy5m05q8G9YMa1phT2bkKP1obFlsOH428VqPNgY6bmoe4k98opSEHMZz cZ//pUKWnyyt29hAFu0kcsKEuVk7asiW5eqDFbxNxonIqMgqlZHue8IB/n/1iNFj/JP3 LNuQ== 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=adH+cnCo8ywDHX4CoxwaoSxoYCNP0Fn0be1Dr/HWReQ=; b=s6Pmkvuy+urEI5esYWkGtTdH7o/fwb1kAjwEYjv8crxPWWVrgVj4dR6vAdErqx0tdU nKxtV0W4chNT7hq+MixeHsBcorCBSBk31gx7GwZzCbdNfslecw9yvs+vgy65QSlge9c/ 6od38BB4QwXvrfe2nf2AnET/aBTUoHmB2heqd1aBH0LNW+yE/hn74iRVcPannlhXTtRL TtSb1myWhdde3yzQTMgG+H/a8Ob+DYt6LAD41tmTqymPKqBBu1mlDeH+x1r94cva8tTu MxBx45V4cRQfwy4r+bfj8PqhwOXOWhfSttUNJ5HtKZJLq2UyVT/u0Zuwl6G1GBIcyla9 unEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E6Ls1Hrf; 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 m10si13875048pgq.39.2019.05.06.08.10.50; Mon, 06 May 2019 08:11:07 -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=E6Ls1Hrf; 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 S1727100AbfEFOgM (ORCPT + 99 others); Mon, 6 May 2019 10:36:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:56404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727080AbfEFOgJ (ORCPT ); Mon, 6 May 2019 10:36:09 -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 E379D204EC; Mon, 6 May 2019 14:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153368; bh=ZaoHcNUgs5GV+vfouf2QElCN36BBMQpSYciQTVvDVzk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E6Ls1Hrff7uQiPy/r1SJRqRnoTFu+PmOnvxcVK04Sue+YO9RP898OIhwzQtsNrliu I5JSa66ebgSvdJQkBan3he7mNE6G45UcPscKxY+vG+Uqs/dwDBT14ZGmac+J86GNvI gyq7nn5cez1+LyGr908RZik/++hT+GDyLaVo6VeY= 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 (Microsoft)" Subject: [PATCH 5.0 062/122] vfio/pci: use correct format characters Date: Mon, 6 May 2019 16:32:00 +0200 Message-Id: <20190506143100.534917596@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@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 (Microsoft) --- 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 ff60bd1ea587..eb8fc8ccffc6 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c @@ -1597,11 +1597,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