From patchwork Sun Mar 22 04:17:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 11451535 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 99E921668 for ; Sun, 22 Mar 2020 04:17:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C41B20722 for ; Sun, 22 Mar 2020 04:17:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Oto3kWlT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725308AbgCVER5 (ORCPT ); Sun, 22 Mar 2020 00:17:57 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42982 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725283AbgCVER5 (ORCPT ); Sun, 22 Mar 2020 00:17:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc: Content-ID:Content-Description:In-Reply-To:References; bh=eCXmB2ln2EpsN/JeFT/9dVYB0ryeKTlA4ZglGkDY6Sw=; b=Oto3kWlT9moldBC9xAdZbAukTC Pfh/3y3q9EbXGxB/syerXjfXwPzMYvevvdmMvZRi8B0+thCu8NA9sgrKgQ7rqCO4YxSDy6pLLHjFC 3acCxKqNnaoTXbB8y0tjBQSC6PId/I0hkiBrfMqO1unCG++zMthOuR5hT2ZOid9C3KaX24CcRxtWV CwpHFks1LdawyDrhZlGzLHkApLTr6KA+XPq6Ck0IdA1JWut+2L91kvrn/eO65Hvp9NjXpQh16kN6T l1yJSUlLBjwfucD7Y0Yyn1WzW1uSy9n1rC47pqKsYUr5Ubp44iKv7BxKXxp1zGTOqfe7bR5tiatuC nr0535BA==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jFs3f-00019t-8f; Sun, 22 Mar 2020 04:17:55 +0000 To: LKML , Andrew Morton , Stephen Rothwell , Manivannan Sadhasivam , Hemant Kumar , linux-arm-msm@vger.kernel.org From: Randy Dunlap Subject: [PATCH -next/-mmotm] bus/mhi: fix printk format for size_t Message-ID: Date: Sat, 21 Mar 2020 21:17:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Randy Dunlap Fix printk format warning by using %z for size_t modifier: ../drivers/bus/mhi/core/boot.c: In function ‘mhi_rddm_prepare’: ../drivers/bus/mhi/core/boot.c:55:15: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘size_t {aka unsigned int}’ [-Wformat=] dev_dbg(dev, "Address: %p and len: 0x%lx sequence: %u\n", Signed-off-by: Randy Dunlap Cc: Manivannan Sadhasivam Cc: Hemant Kumar Cc: linux-arm-msm@vger.kernel.org Acked-by: Manivannan Sadhasivam --- Found in mmotm, but in its linux-next.patch file. drivers/bus/mhi/core/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- mmotm-2020-0321-1517.orig/drivers/bus/mhi/core/boot.c +++ mmotm-2020-0321-1517/drivers/bus/mhi/core/boot.c @@ -52,7 +52,7 @@ void mhi_rddm_prepare(struct mhi_control BHIE_RXVECDB_SEQNUM_BMSK, BHIE_RXVECDB_SEQNUM_SHFT, sequence_id); - dev_dbg(dev, "Address: %p and len: 0x%lx sequence: %u\n", + dev_dbg(dev, "Address: %p and len: 0x%zx sequence: %u\n", &mhi_buf->dma_addr, mhi_buf->len, sequence_id); }