Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp492818ybi; Fri, 7 Jun 2019 11:24:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwM1eRpNcd9ugZ8Ap+l11YRwfKVJyr15PLQjO2fHDFFsnMftQIPjgb1xKYzRqybucK76M/T X-Received: by 2002:a17:90a:62c8:: with SMTP id k8mr7174344pjs.21.1559931850440; Fri, 07 Jun 2019 11:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559931850; cv=none; d=google.com; s=arc-20160816; b=Zrc4Io2/n4mDXBgc3iAdwvt1iV+5yd7fs2vy/9d7n4eL7tjOGFo7ZEJjGnJP24cyx7 l6+36T57N/cX0OL3sTGahKPUxhClR79EZ1Sb75s7kK9acqL8omBu6JpqiDcxupy/lfOC o5C9VMVMSPx5FaTJoO3xU9YQ5cJit96m3vRU9Zh98cqNzBZUGXBSWOXBaXH6ie1Q91IH Cb/zpiRSv2GHNiYcNppfaBniJbO7UX87Er3ixCnaUEfo+vPL7s3gn3kFSRO7GsfNlfli IinXNWobUTGshV7Mq8MxAJ23F3vcHPe0dC1kMl3pnqwsFadM+eLc4PsWlUeaR7Z5U2S6 24aQ== 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=czbwHBXjFI2kQBZAtrQythPZyOxz0izVgdjRHxLAGuk=; b=vvKbGbanyuAmhSjV9IbgkJysn0a+c2wBG2Lpu7iqHgMlB1yOs1A+/a3Kq8zjnd02Ec HEqm+t5ISOIeFF/N5jnXKpWY+RHQV/nZlNkClEdKdGJqvfhpAYXMavYGdd5VbZQyukry ZrR3tqwbFNzcEq/Yyc+kS4iLZvjyV9rwQm8oSG65b53xr0e/I2EOFa6KC2QKi06Atrds u8RuenVjxLHt04IdJfPrMu9+/0E4/sZqn3Rzj4SINJdImjaKNUBw+sbnMfrEIisLjfYu N+Acyci8gI0HGdDktZ841/c/OJqMj9+UJgiCl8VbJ73pBoYFu4iBoqNC8nrhkJYzWBV7 VYUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="n/AuWjGq"; 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 e13si2772653pgi.176.2019.06.07.11.23.54; Fri, 07 Jun 2019 11:24:10 -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="n/AuWjGq"; 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 S1731688AbfFGPr5 (ORCPT + 99 others); Fri, 7 Jun 2019 11:47:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:32786 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731673AbfFGPrx (ORCPT ); Fri, 7 Jun 2019 11:47:53 -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 1163720840; Fri, 7 Jun 2019 15:47:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559922472; bh=wViOljgZtm+H26Raybi8SLAy6i/pBM+z1XUyk8HomXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n/AuWjGqG1nFsqai9/ITPhTdZUDEaj1E7EdLzXiyY885RkC0+iJk2vkvu4RWEcn2v nqx680SJBxyIi4pbiGcPspMDsEZ1vVE1FgR3hBezyyblLGGwnNISZU6nxlnu0R/gTR sppA24pBPCQVf6SqtG9n/wZ2TPzZKIYbi/Sg5QnQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Fabio Estevam , Mathias Nyman Subject: [PATCH 5.1 04/85] xhci: Use %zu for printing size_t type Date: Fri, 7 Jun 2019 17:38:49 +0200 Message-Id: <20190607153849.627035785@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190607153849.101321647@linuxfoundation.org> References: <20190607153849.101321647@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 From: Fabio Estevam commit c1a145a3ed9a40f3b6145feb97789e8eb49c5566 upstream. Commit 597c56e372da ("xhci: update bounce buffer with correct sg num") caused the following build warnings: drivers/usb/host/xhci-ring.c:676:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=] Use %zu for printing size_t type in order to fix the warnings. Fixes: 597c56e372da ("xhci: update bounce buffer with correct sg num") Reported-by: kbuild test robot Signed-off-by: Fabio Estevam Cc: stable Acked-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -673,7 +673,7 @@ static void xhci_unmap_td_bounce_buffer( len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, seg->bounce_buf, seg->bounce_len, seg->bounce_offs); if (len != seg->bounce_len) - xhci_warn(xhci, "WARN Wrong bounce buffer read length: %ld != %d\n", + xhci_warn(xhci, "WARN Wrong bounce buffer read length: %zu != %d\n", len, seg->bounce_len); seg->bounce_len = 0; seg->bounce_offs = 0; @@ -3162,7 +3162,7 @@ static int xhci_align_td(struct xhci_hcd seg->bounce_buf, new_buff_len, enqd_len); if (len != seg->bounce_len) xhci_warn(xhci, - "WARN Wrong bounce buffer write length: %ld != %d\n", + "WARN Wrong bounce buffer write length: %zu != %d\n", len, seg->bounce_len); seg->bounce_dma = dma_map_single(dev, seg->bounce_buf, max_pkt, DMA_TO_DEVICE);