From patchwork Wed Nov 11 22:32:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7598621 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 766F1BF90C for ; Wed, 11 Nov 2015 22:32:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96BDB205BA for ; Wed, 11 Nov 2015 22:32:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8EB020656 for ; Wed, 11 Nov 2015 22:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752573AbbKKWcR (ORCPT ); Wed, 11 Nov 2015 17:32:17 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:52429 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752480AbbKKWcQ (ORCPT ); Wed, 11 Nov 2015 17:32:16 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0MF8Xf-1aBHJm3Zql-00GLqI; Wed, 11 Nov 2015 23:32:13 +0100 From: Arnd Bergmann To: Mike Marshall Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fsdevel@vger.kernel.org Subject: [PATCH, RESEND] orangefs: use %zu format string for size_t Date: Wed, 11 Nov 2015 23:32:11 +0100 Message-ID: <4529098.FXCydd13Bl@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:qNs4/9imppk17Q3fXaYmoGCczz8W0cUvrAz5wMvpki8C74P6dI8 MndwgXQW0PTj1IaW2pOf0TcSiUb6XEo5QVzvHsJEAuSrhXXdpyDbUsH0ekh91mUL5tpPm6z 14JFLhS0TUF0LMAmFEPCQUHTPOrDijDZ4bS2HuoRYiBhYW/2bEeWRsQArS3kaLWJ4INDL17 LCg1btZwpjfcR+8Hx6edw== X-UI-Out-Filterresults: notjunk:1; V01:K0:C5By2AbTv8Y=:Nrny7jCP4naibHQsHK3js4 6Xs89/xlQWiqmGiT8GQVlFTLN2zmoe85r4XyeYhZf4UbH/4QSMmNlnRSd5PTGk275xIQJukpa svo19vYnZMPTe3DH4Cke1ACqZwcJeuwGNK0bxz42OtR6n0gYBry/1HIiOHYzu8O9tdjw15fAp bAsyIlSoYKCpmjUEcUy0OM3haI0nPbkBuWBIKlU4S0YCQ5sSqnxkDVvfsmhGeGXVMj1ohis5R EHCk68fMJPvpLtMuQj2jysoTR/TftF4d5XmhxrKwSkySg1LAOaCcnHIjK8nMwE+20BVtTkRd7 B0kaiC50Uej4SQPrGbqbf+I/bspuV9qhnyK1C62wS4awsdalpeKuhJNhjLEdjPT7/+2E9Sxxj gU+fle5XANEw8+K7yhPAzWU5yXkoN9NkGzcyvHOHJQA8SJo6mQ5swJzqMs73vf7CkxUxaKQmB 6OzxmsbR3jwfQEovUaS3evCCKKQDw6YQPa6RJ7879Zn3xUx0t0xe9gTYLLgfGpUFPS8kExnhs EuRzxd9sQP63Ehfxs550mdJfB29hDwOG/LIrNBedCXLDo7F6NTwNoGqaHafhIvVI8EEQUkN1v HEu0X6Otmlara4yC9fAvd2dA3mV0/+8pech9fhECX/60jc12jExx7iYJ1mGaPaUnPl26b8D2C bFjwujsgkTqmNEN7BcLWZ0jPLLLDJ2lSSk+rg1b62CQgwZQHD2tXnKQE+bz1QC8P2iHZ46XVo KkLdRdbAyHSD/Ha2 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 32-bit architectures, 'size_t' and 'unsigned long' are not necessarily the same, so we get a compiler warning about it: fs/orangefs/pvfs2-bufmap.c: In function 'pvfs_bufmap_copy_from_iovec': fs/orangefs/pvfs2-bufmap.c:521:8: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t {aka unsigned int}' [-Wformat=] This changes the code to use %zu instead of %lu, which always matches size_t. Signed-off-by: Arnd Bergmann Fixes: 4d1c44043b26e ("Orangefs: use iov_iter interface") --- Sent originally on October 7, but not yet applied, and we still get the same warnings. Please apply. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/orangefs/pvfs2-bufmap.c b/fs/orangefs/pvfs2-bufmap.c index 9d0392a3e824..06fb797dedda 100644 --- a/fs/orangefs/pvfs2-bufmap.c +++ b/fs/orangefs/pvfs2-bufmap.c @@ -518,7 +518,7 @@ int pvfs_bufmap_copy_from_iovec(struct pvfs2_bufmap *bufmap, int i; gossip_debug(GOSSIP_BUFMAP_DEBUG, - "%s: buffer_index:%d: size:%lu:\n", + "%s: buffer_index:%d: size:%zu:\n", __func__, buffer_index, size); to = &bufmap->desc_array[buffer_index]; @@ -550,7 +550,7 @@ int pvfs_bufmap_copy_to_iovec(struct pvfs2_bufmap *bufmap, size_t written; gossip_debug(GOSSIP_BUFMAP_DEBUG, - "%s: buffer_index:%d: iov_iter_count(iter):%lu:\n", + "%s: buffer_index:%d: iov_iter_count(iter):%zu:\n", __func__, buffer_index, iov_iter_count(iter)); from = &bufmap->desc_array[buffer_index];