Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10788173imu; Thu, 6 Dec 2018 06:50:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/WE9c0UXcowmmQeRiAPmzg7FRw053hPdkwzsQnpPlxDHtR9LJkTgsgDOFpe/QenRlBVDJ4c X-Received: by 2002:a17:902:c05:: with SMTP id 5mr28788771pls.155.1544107842023; Thu, 06 Dec 2018 06:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544107841; cv=none; d=google.com; s=arc-20160816; b=mSBJy2wzrJyZTVPdMA1U5PkZ/ChV9YKNO81SGsSiiHpze/Mub+WWENkypVCwTNrJov 0maHFRrOiSAQ+3M0Fn0ScOkFTvx0hQh8fr8V2HuPiDlovQl0UyezvD9rQofkrP7mnYOn Eg4HWD+/zdoox1cPCI5YZ4gXR11+s3Hi3j2CVEXkpp/a86QHQC8M8xCaHKeuTatOJPfY 0SiaoI6jqvpnRXUk5c07JT6jZhns1mJ2hMgU5+HlGr8PgNKMH9FQPaUgBQSHxySQBjnC PQs5kEuvIcB+vgoNDD6P2RcugZr9u+WHU8GwPJCFnDJwV0QVTJ1XnmTBwvlm4ZW2bKdE DAPw== 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=M64qmmIchjsmEYab0+ATaIPou/c3lU/Lmew0nisN5U0=; b=KwhLpZpiVRy7KyYAor3WeOzLMn4HXvDAnPMRPKBORmwJcmiacU/Kx+2ey+FfJTaUsn ZRckoHafJpj0A4e05DZzHwfjokkP7UoG6MnAcIvIkFRlZlS9WzjEBNH8bb/lzTxs4jMr nVbNNZL9p2l/a8/jT8FqkI9wuCOPEvtho/Xv60vYuQe2h3u5KjxX5VbdlzDWVXBxwO1e TyPbJs6yRiSfylACC0fMsPEI5xHDus7VVswdtolA0VTXTYL7sN4fkzJssXAdYD5G6uoa dM5AjkQPeacuZqxfwp//lbE1KTVQHSupzaWNrKJYuo+eMrX92471JUSS8e67zzEfLlds PXoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=prjx2EEu; 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 l194si407043pga.594.2018.12.06.06.50.25; Thu, 06 Dec 2018 06:50:41 -0800 (PST) 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=prjx2EEu; 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 S1731573AbeLFOsS (ORCPT + 99 others); Thu, 6 Dec 2018 09:48:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:53374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730829AbeLFOsN (ORCPT ); Thu, 6 Dec 2018 09:48:13 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 5C7AB2146D; Thu, 6 Dec 2018 14:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544107692; bh=5Kuv+ugKVoOn13978xUTDMl3/Fzt5q7FRaEiILsF33M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=prjx2EEuQJlkEV86BPWF5+A+gpSFbugomqXJ9FPCnbDMl2ttgBmwjbvrDWbGCWp3N M4WHFfnfiauDO53WeWI7NDJFrztvewzt5ZsvO+sHVinUrZ1bHrrKqEdrnmHn3uqkhU MBk1qUFxVDEnbtiF35NNjjpP3YIWWcol9NXlq75M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , David Sterba , Ben Hutchings Subject: [PATCH 4.9 076/101] btrfs: tree-checker: use %zu format string for size_t Date: Thu, 6 Dec 2018 15:39:15 +0100 Message-Id: <20181206143016.481137012@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206143011.174892052@linuxfoundation.org> References: <20181206143011.174892052@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 7cfad65297bfe0aa2996cd72d21c898aa84436d9 upstream. The return value of sizeof() is of type size_t, so we must print it using the %z format modifier rather than %l to avoid this warning on some architectures: fs/btrfs/tree-checker.c: In function 'check_dir_item': fs/btrfs/tree-checker.c:273:50: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32' {aka 'unsigned int'} [-Werror=format=] Fixes: 005887f2e3e0 ("btrfs: tree-checker: Add checker for dir item") Signed-off-by: Arnd Bergmann Reviewed-by: David Sterba Signed-off-by: David Sterba Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/tree-checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/btrfs/tree-checker.c +++ b/fs/btrfs/tree-checker.c @@ -223,7 +223,7 @@ static int check_dir_item(struct btrfs_r /* header itself should not cross item boundary */ if (cur + sizeof(*di) > item_size) { dir_item_err(root, leaf, slot, - "dir item header crosses item boundary, have %lu boundary %u", + "dir item header crosses item boundary, have %zu boundary %u", cur + sizeof(*di), item_size); return -EUCLEAN; }