Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3709426imm; Tue, 17 Jul 2018 09:03:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpemaI+LZq3upaRiSj4DQwEgwm16Ox3CtTiCXUoVxxf5F/3hUQ5T52ARdR55SXsI+p7MH0YE X-Received: by 2002:a62:fb05:: with SMTP id x5-v6mr1299504pfm.210.1531843417614; Tue, 17 Jul 2018 09:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531843417; cv=none; d=google.com; s=arc-20160816; b=qsHObA0kbWxnAICqgg+3z/sZ+8eTx8DUYdCUmeqEMt8iZlteWNCkP6pTf61WZNX0WD /rwJkKfFQbkydOnpITn3obbghh2kpzf2jgYKyIFSY906uAp6PBUBwK5YuiA2FGFI0RDr kab482q/fPo2vr//HJoHWyzLdUnoQtBYJH15Y1ix2m7d0/yuCwoL5NRkC1O1SK/oy/pU zEnmoF3PRtVOlZACHL+wza8iQ5wSafa3bO+H4rFufemWMzS65OTw7ee1r0dVjY33x6AE RWJ5DixAAPSsgiqCJi2UyQXrJ1uW5iRXiN3ecb0iSy5RjwLatRXblX49MtSmQ5Dce1r2 EoUQ== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=lFtRCqmRQKWJIyBUo/kfNFOptp704zUUaAytJzgjXCM=; b=tvx7et/MJ2A47Qi7n79k7/TDEBs1q7TZz33J32w3+6yLBt2Op90pHnUc5gZ+NwsqXV pHM4zNcD9cBvOjjQWFmxtKpkkBm8a7F9wgPbwO220WzoA82HolcvxHG97MdEXVH5aocI M5fc/jS6qRnuLJQvUN7lbsNufZEyor5zJ5ecOtBZ59nyIOrzTuRzEXe9BsTRv9sr6aq9 ZY2KAm0NMHRBbBFVA75OJ0ZI5zZrEvGzRZNcuLZc2RROWIiwCm4uPsE+CgjvRu02imfv Nkybk1g26zPR3pF8xf8fMywhv9dVL6Mu05fVo65yBoLVMN53z6A4K3hB1UgnQGGfv5Ca iaLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=AHqsO+DA; 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 n34-v6si1185519pgm.28.2018.07.17.09.03.22; Tue, 17 Jul 2018 09:03:37 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=AHqsO+DA; 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 S1729989AbeGQQf4 (ORCPT + 99 others); Tue, 17 Jul 2018 12:35:56 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:35210 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729706AbeGQQfz (ORCPT ); Tue, 17 Jul 2018 12:35:55 -0400 Received: by mail-lj1-f193.google.com with SMTP id p10-v6so1460222ljg.2; Tue, 17 Jul 2018 09:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=lFtRCqmRQKWJIyBUo/kfNFOptp704zUUaAytJzgjXCM=; b=AHqsO+DAwSyGkg6qgjKTlsRPS+Vg+tR1RJtZBI3fn+VmoZXphHhYzMuWPzRaZ8ogFR +lteiZFNoetbbm0G1SPg7bZHjnoH6ihoA8M7KazZFGRIJ6Svzt+7y/D4frS2lxAG1U6v UjvXsPGl6hN3VGz6DG/xnIzmQzoaXwxdxon5o72p6i4e/jnXNhK0VLnguYzdUYUF1Nwn DcRc3bUN2dHS7ay48B/OSY8/bFLCet7Z7XsUgvZ4AzpkfZjPH4jE7y7jIQ9Yd/plBIPA gi7Xzamr7AItrbOcAUsTt/gxW2s8Fi+IoT2LGe/kcQyj0Yxtaiqzufwa3HZAp5jil3i9 XRZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=lFtRCqmRQKWJIyBUo/kfNFOptp704zUUaAytJzgjXCM=; b=JWVARb1m9zX7QoZbr8xzjLQLBtBCqU1RYNwkKU+DYgfjRrmR/n0GkczDlvbLdAD01g YU9TyMlEJGvT8WutOgZqvyi8L4hAhAeU+lBwXMLb//py76EcqkU324xQkTyi84lRmoZA ecpnR6cYtD8AOJT+fAilE6TIi5IdCor+yOPu2T5ScUXlmQD0/jiz5rxXijLq5duF+iSd Q/ZSXKJ8RWfvHLiL5WZkBZouc0fAPSME//jEwyztzvhOdD+eaFtfKqrRGQciBKBPJxOT H49Ue2SD5AunnbKx7WlutB5ECwBd71QB0UkZSncyGLJcMQUJ8mO+0B1e9eLee7RN4ufU XfMQ== X-Gm-Message-State: AOUpUlE3QQ/kOp8cR15JnynlH/jWzoMJOnyiqVQTtPFVqBfj1m2C2n3h npIg/3IsS57CQSsheT9QcgmBUAyJ1RKnPfNXtkc= X-Received: by 2002:a2e:1dc8:: with SMTP id w69-v6mr2017908lje.110.1531843352761; Tue, 17 Jul 2018 09:02:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:41c1:0:0:0:0:0 with HTTP; Tue, 17 Jul 2018 09:02:31 -0700 (PDT) In-Reply-To: References: <20180717135236.3673195-1-arnd@arndb.de> From: Arnd Bergmann Date: Tue, 17 Jul 2018 18:02:31 +0200 X-Google-Sender-Auth: P4WOHwtfFxdebA5LLu-bWbohfes Message-ID: Subject: Re: [PATCH] btrfs: fix size_t format string To: Qu Wenruo Cc: Chris Mason , Josef Bacik , David Sterba , Qu Wenruo , Nikolay Borisov , Su Yue , linux-btrfs , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 17, 2018 at 4:33 PM, Qu Wenruo wrote: > > > On 2018=E5=B9=B407=E6=9C=8817=E6=97=A5 21:52, Arnd Bergmann wrote: >> The newly added check_block_group_item() function causes a build warning >> on 32-bit architectures: >> >> fs/btrfs/tree-checker.c: In function 'check_block_group_item': >> fs/btrfs/tree-checker.c:404:41: error: format '%lu' expects argument of = type 'long unsigned int', but argument 6 has type 'unsigned int' [-Werror= =3Dformat=3D] >> >> The type of a sizeof() expression is size_t, which is correctly printed >> using the %zu format string. >> >> Fixes: 9dc16aad5660 ("btrfs: tree-checker: Verify block_group_item") > > My fault again. :( > > Is there anyway to make gcc report such problem even under x86_64? I don't think so. However, if you post a patch to the mainling list, the 0-day bot should report any build regressions within a day. Arnd