Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp624412yba; Thu, 18 Apr 2019 07:03:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAcssmDTUYgECMbvAQT5qDKcnynl3uvYRBLNWu6zAqdto0vkwIOq621LK2/V1uwX0FBn/w X-Received: by 2002:a62:f24e:: with SMTP id y14mr94298459pfl.209.1555596185538; Thu, 18 Apr 2019 07:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555596185; cv=none; d=google.com; s=arc-20160816; b=F/gfPKJkR5anfuOYD2uL4JS5SyTeJWwplH/7gSFw3is2uoVIKtl9kFIqv882CVRxJ3 fJNaqBWZT4WNi8t8M8CZoRaW251YDLlk4i44fYdh/fY5SRwzyx2OGnR8LilzEeWT4t7r 6nrZNZtBE8ERls7dwBK3CZgiJ0VbGY/nHoHwiWA+WOQEDA3WpGoJtPdPvfb9MOJvmk/r QowETjDAsoOiHVBz2CxxH9285qK3NMGs14Gxk7KSHFDCNvyg/jGIrwNCyLo6aUr8EgXr QYOxjCSGmjDyr6kJuEXhFF/kEh4XDyuYhob+ezp165bKEvafpUJeka8dkzmtVeZD8kPw 800Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wA48g0OAA6/zzH8tsPu0s3kjfRgy/nVQac05y38d0Tg=; b=tFOLc++vlxYNRXgzXs5HbqqTFC63scG532jrKOYIMHl8CyNXOUNuyI1K22+WL4nZnX hxj+Kc6u3RaVyUQhZc/iZ3D/70EYyP+p0M2hN2llcU236KZOfylBzyIt4SJZ4Jx9oPXe QmsR9e7tOF6qr+k/FzJMDJLFDJxCezW9acrEWnbB4kXELIy1/tvVWqCymBLMgtw6K772 x33ALWvFAZdurxB1N4vsgBnG8oIOr0A2xK7z44DLIctFaoCTbCAKIj0bDKRZB0dy3W28 0tXN2eWa6g2ybJSu8q1NBhmyoWUWopyq7mFIZStub8eWPUpi3++8H6XFuwiqAnqsY13g iYQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fLP7SbW1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k9si1962951pga.575.2019.04.18.07.02.43; Thu, 18 Apr 2019 07:03:05 -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=pass header.i=@kernel.org header.s=default header.b=fLP7SbW1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389220AbfDROBG (ORCPT + 99 others); Thu, 18 Apr 2019 10:01:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:46812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729331AbfDROBF (ORCPT ); Thu, 18 Apr 2019 10:01:05 -0400 Received: from localhost (unknown [104.132.1.80]) (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 1B4972083D; Thu, 18 Apr 2019 14:01:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555596065; bh=4MSMXVlMy3d/KTM9zAJR1ZTNqhibyGK4+ViNeR6HU7w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fLP7SbW1CpL3DQVRkjgyfmiQeIrhyc+yvyPE3I8OT5liP7qrMAPkr+1rjfaRztVlR bve3cwq/gjBu9F8osJXg+zYtJKR1GIKGrHLYbPV0+yQsLOVLwHnq7m9x4/5GDJYSf2 OhD16MAOVzo3SArjbBVrIeHeXTZjCTbBAjPR7zeE= Date: Thu, 18 Apr 2019 07:01:04 -0700 From: Jaegeuk Kim To: Chao Yu Cc: Stephen Rothwell , Jens Axboe , Linux Next Mailing List , Linux Kernel Mailing List , Christoph Hellwig Subject: Re: linux-next: build warning after merge of the block tree Message-ID: <20190418140104.GA52314@jaegeuk-macbookpro.roam.corp.google.com> References: <20190417123125.3de22f73@canb.auug.org.au> <0879e11b-c84c-65b8-581f-bf7adcb5e231@huawei.com> <20190417140305.GB23731@jaegeuk-macbookpro.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/18, Chao Yu wrote: > On 2019/4/17 22:03, Jaegeuk Kim wrote: > > On 04/17, Chao Yu wrote: > >> Hi Jaegeuk, > >> > >> On 2019/4/17 10:31, Stephen Rothwell wrote: > >>> Hi all, > >>> > >>> After merging the block tree, today's linux-next build (x86_64 > >>> allmodconfig) produced this warning: > >>> > >>> fs/f2fs/node.c: In function 'f2fs_remove_inode_page': > >>> fs/f2fs/node.c:1193:47: warning: format '%zu' expects argument of type 'size_t', but argument 5 has type 'blkcnt_t' {aka 'long long unsigned int'} [-Wformat=] > >>> "Inconsistent i_blocks, ino:%lu, iblocks:%zu", > >>> ~~^ > >>> %llu > >>> inode->i_ino, inode->i_blocks); > >>> ~~~~~~~~~~~~~~~ > >> > >> Could you please help to fix that as below in your dev branch directly? > >> > >> "Inconsistent i_blocks, ino:%lu, iblocks:%llu", > > > > We can just use "%lu"? > > We'd better follow sample in Documentation/core-api/printk-formats.rst: > > If is dependent on a config option for its size (e.g., sector_t, > blkcnt_t) or is architecture-dependent for its size (e.g., tcflag_t), use a > format specifier of its largest possible type and explicitly cast to it. Great, done. :) Thanks, > > Example:: > > printk("test: sector number/total blocks: %llu/%llu\n", > (unsigned long long)sector, (unsigned long long)blockcount); > > Thanks, > > > > >> inode->i_ino, (unsigned long long)inode->i_blocks) > >> > >> > >> It looks that we need to fix below commits as well: > >> > >> f2fs: fix to avoid panic in dec_valid_block_count() > >> f2fs: fix to avoid panic in dec_valid_node_count() > >> > >> Thanks, > >> > >>> > >>> Introduced by commit > >>> > >>> 90ae238d9dac ("f2fs: fix to avoid panic in f2fs_remove_inode_page()") > >>> > >>> from the f2fs tree interacting with commit > >>> > >>> 72deb455b5ec ("block: remove CONFIG_LBDAF") > >>> > > . > >