From patchwork Thu Feb 2 12:21:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9551739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 08E0060405 for ; Thu, 2 Feb 2017 12:22:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 012CE26E97 for ; Thu, 2 Feb 2017 12:22:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E814327F94; Thu, 2 Feb 2017 12:22:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68E8B26E97 for ; Thu, 2 Feb 2017 12:22:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751468AbdBBMWf (ORCPT ); Thu, 2 Feb 2017 07:22:35 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:60000 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751465AbdBBMWe (ORCPT ); Thu, 2 Feb 2017 07:22:34 -0500 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0LfFgy-1c6nJP1lfM-00omNv; Thu, 02 Feb 2017 13:21:19 +0100 From: Arnd Bergmann To: Steve French Cc: Arnd Bergmann , Pavel Shilovsky , Aurelien Aptel , Sachin Prabhu , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Subject: [PATCH] CIFS: use correct format string for size_t Date: Thu, 2 Feb 2017 13:21:00 +0100 Message-Id: <20170202122117.1404479-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:3YoZ5h6v1+pdQrCtkm15KKh9i9/GNEC/7y5Lj3gZ0ZQzbhbMZD7 nOrGn5m2WQxwjfPo6IthfbER3ThB8VkDbXqeYs94N9AQjiLf9wD0lR2PwrSnPT/uQbMl2u6 F8CjRU7rS8NQGmaClVDJEcXz7apmzPVOFZ9OOzt1Dl43zkC2wAXibj7dsR0ykF6yTjIJlfp QfqTEGoXnGwrH2d2hEIGw== X-UI-Out-Filterresults: notjunk:1; V01:K0:tdYa+zMyTyw=:/Rv5069Xffjadf3SjftLib Fz+xrL+rsveHvf5XEgyOqaAYjlhGMD1Oyk9niIFsoLCdQShc1wl0RhF0YTWxG2ZerlIbXKw1K HC0afKo6CkAGKl2w4ODj9t5qAPr+LsDqG7uEBNwqbChhwTRGlFp4yGO9QfL1ma1aHyzkqJn7j mZGl5VsyGP6NV9yBMJX2VTW1B8kmRWicKCKaWwbxIIKLQgtmbf0kt0+atCa8CUeFWWXu2YNjX UrxiFy27E0VQKRNchh20WL3At09IjNyCXfn2zDW29z7aI/Crc9ohVFLOcJfYNX6uOywhA9orZ 7C+BbA5mQgl253fS1vnE0YNOqrgtbbYHC9xwNX3GRwwhmn36mofBDkfIy8vw1nrt827pd5kDD /g9lakdJHAM67Rw40Ip/jnLDKkocWEw4WWygvWyjT7j2yL3H4IOCBD9PDsauptJAwAoDtM/4D 9P9s+hyOPbBtOSIJngnpOYvAwXmO2Jh2bckW82Go9Niw/ehAgxhiANViukOOlY1TPXq+xTd0w em9qjDLOXnNM0g/2u3Q5h9IulZBIrmO8vcoFXoNJPoR/+LCVoYp4JDhdVQknggqDKi3QByLOz EnKE4I6ysp+MIaXatPKnBG3YuZGKEA5PPgc91Ogmp1vocb2zLMLVkdO/Yc8Dns0+KYq7UXGU9 GNLai1ndyhQpHe/4Bt1+0qRd7dISE1XK80WVwTxl4p+hhrlPFFnFx46eFSc/wKlkHlVA= Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This warning is harmless as size_t is always as wide as 'unsigned long': fs/cifs/smb2ops.c:2008:245: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Werror=format=] Using %zu however is the correct format string that we don't get a warning for. Fixes: c9d651a5a2fe ("CIFS: Decrypt and process small encrypted packets") Signed-off-by: Arnd Bergmann Acked-by: Sachin Prabhu --- fs/cifs/smb2ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 0764c32754b0..ac6e10adf000 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -2005,7 +2005,7 @@ handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid, rdata->iov[0].iov_len = 4; rdata->iov[1].iov_base = buf + 4; rdata->iov[1].iov_len = server->vals->read_rsp_size - 4; - cifs_dbg(FYI, "0: iov_base=%p iov_len=%lu\n", + cifs_dbg(FYI, "0: iov_base=%p iov_len=%zu\n", rdata->iov[0].iov_base, server->vals->read_rsp_size); length = rdata->copy_into_pages(server, rdata, &iter);