From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A9C5C28EBD for ; Sun, 9 Jun 2019 17:15:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB58C20652 for ; Sun, 9 Jun 2019 17:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560100547; bh=Prh6NfLryFAVFKbWVMDS/CHgoSpQk1KuHybp3IJMt6o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=PtLqlWniCOLUMJ5sXobcMmNIbN+1QgvOxJyyRQ5GeimIk7/AWP+/NaFdeulrLPEWi 4X9v1CQ6rOCkmzJKy0yXPKluPCIwQlSHe7AU26jB0wHjFQEqHqJpz1cre3EHnMJuw4 yCcAva6goaBkAFinUuEBOF8x2RpLgxF9kXvx7ujQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732563AbfFIQyR (ORCPT ); Sun, 9 Jun 2019 12:54:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:55882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732141AbfFIQyQ (ORCPT ); Sun, 9 Jun 2019 12:54:16 -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 BFC42204EC; Sun, 9 Jun 2019 16:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560099256; bh=Prh6NfLryFAVFKbWVMDS/CHgoSpQk1KuHybp3IJMt6o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AUhJQfjTzkw8BgrhQyACBkaBS8x/g86dnr038jsD+Oz8JvGAP5kft8LAtfpankgGI N9pd1XwiHIhC/3qI9mhcySI6oEo7THTw599J490GzLDrfgDeJvXmmxpCE/Ns0VvqIO WbFMMRlLNczncMLL4XNU5UpDYC6OlOpbhXPm05rA= 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 4.9 21/83] xhci: Use %zu for printing size_t type Date: Sun, 9 Jun 2019 18:41:51 +0200 Message-Id: <20190609164129.318546479@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190609164127.843327870@linuxfoundation.org> References: <20190609164127.843327870@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 @@ -695,7 +695,7 @@ void xhci_unmap_td_bounce_buffer(struct 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; @@ -3202,7 +3202,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);