Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1231068pxu; Wed, 6 Jan 2021 16:41:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyETuhSkwr067CrrEAldrZpL4CJn/mq6r75d3rxrYBruqOXtI3HGOiIRLwLn5EgS6qh4j1P X-Received: by 2002:a05:6402:212:: with SMTP id t18mr5750018edv.37.1609980100170; Wed, 06 Jan 2021 16:41:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609980100; cv=none; d=google.com; s=arc-20160816; b=ExEFIQ2o8HM2h6qrmhlwR/0uxPUgDtte8zRfTE10MJTTpLI2/KKQ4foA7i3ekekV9G kWlsKGBuTodVmGoxpuU3p27PQE9O3Lokn2/WhwFwBNTPT0JMXEM25IwikIIpeBf1C0Uy Fdc116OzHEPyUUItBG4l6VuAmWlOK5DIp3zahNaRySDKrxUnuPLdoYgViW3DFc9ksisU nR0EEgdYqh7fmOI9uzUarrHNOZTk2A4XXSPcwdbMVJYKvhVTIz84ciMr4yyB4I9ayitk MnZZgOGBLN7Iim2iksPu65hqsqWNEDexKdft+AgQ7FehHfe66EBYNpmSul9kcL5l3PRH rwTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PZJysm9mhMs1vBRXKoARzZAsE8IJ9JXbKKeY+zpyAV0=; b=qYl1FLXXBf1Qo2ZLuYOLcdttsLQ4MymlqGhMm6jlPQNgB3VKL/PH1sAo6B4+V+CQrR NrAvKowwnibDQy4VAatBnz9dIeqq+yHT0XjHEanuNovfD/y/TR4BuvNTwnHNZd3KPfic QxA9+C+Zl8dYUU5KsWU093b990mIfdc9fobvWafgr5ajfreTLxYdCjAe0Oa9Bxx1O9jb e8w1uBeHlDzWfzvJ2U3zMAqguPwz/by1T1ynk4l3xXz+yG8F9t1Rk6xeDYzF+g76SnKY MjGqadISFOyt30MHeCLmFnGN9l5GHpXx895gNFkW158XvX7IosghzaOPuEyRfPgFG2DN vKOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SqUiPIGw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e19si1505446ejx.185.2021.01.06.16.40.52; Wed, 06 Jan 2021 16:41:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SqUiPIGw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726233AbhAGAjO (ORCPT + 99 others); Wed, 6 Jan 2021 19:39:14 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36459 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbhAGAjN (ORCPT ); Wed, 6 Jan 2021 19:39:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609979867; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PZJysm9mhMs1vBRXKoARzZAsE8IJ9JXbKKeY+zpyAV0=; b=SqUiPIGwuoill7Ei5674cAQE0xkno5ImE2ZVjuOmQuKx2f46os1bmdFtmQaq7iKkt6XHn6 gy7cFwf+NlwqijnADp+P6czznvOHCr/pl6zAHDJRKBmHN9UyHgRBD++Jgd92srImwOyxMs 739uMw86VAgcnuqIGTxqE7ezYNYiW6s= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-203-g2fn7BXpNHGpbAC4Dvjhrg-1; Wed, 06 Jan 2021 19:37:45 -0500 X-MC-Unique: g2fn7BXpNHGpbAC4Dvjhrg-1 Received: by mail-pl1-f197.google.com with SMTP id y10so2651161pll.20 for ; Wed, 06 Jan 2021 16:37:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PZJysm9mhMs1vBRXKoARzZAsE8IJ9JXbKKeY+zpyAV0=; b=EKovQvcu7s1ZXG0ezV8UNHEuTMVfhBxjGdyWsqpvMlW65b1XHMKjRJcODl0/8Ijdhe 22m+YR5LZXEjfsdDzHtMmi+CwsKYTKpsyblW+RhP8gGzIoHmRFKI4jPjJJ9Na2rWSagH N0XdrwaMGOlOOTc5FwiLoX4DGIwL6CTaNC9zH/dXPOqmXiJREyBnbo9BrUXTFDTRkk3+ KbQTwTEWv1gUrnEcQ8lmKR1r7qazpzO6utN/WlnHuspHush5ApAoyDguVOJECWyUgRvu aNWr9+4tuk+vj9Ks7TGbdJKpRQPpfNRNLGzCqRcmwsgyAZNVvmgI4Z9fiCcsnziSVtVh 8v5g== X-Gm-Message-State: AOAM530jsDzoxKukdEH0niReJ4NvRgwdYecbZ/oRMte4UfKYSPNQc5vx pYKqcXRkMHu/hMSK8kqkIsMdn853dPvi562hTX+W9Rb7y+f6v495llnrihevNtXLmLa7Gtc9EkO tPQSSM/wKjvHuckgiXpkzfL/c X-Received: by 2002:a65:4347:: with SMTP id k7mr7138468pgq.186.1609979864120; Wed, 06 Jan 2021 16:37:44 -0800 (PST) X-Received: by 2002:a65:4347:: with SMTP id k7mr7138450pgq.186.1609979863893; Wed, 06 Jan 2021 16:37:43 -0800 (PST) Received: from xiangao.remote.csb ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id v2sm3461818pgs.50.2021.01.06.16.37.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 16:37:43 -0800 (PST) Date: Thu, 7 Jan 2021 08:37:33 +0800 From: Gao Xiang To: Al Viro Cc: Stephen Rothwell , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the vfs tree Message-ID: <20210107003733.GA304388@xiangao.remote.csb> References: <20210107101544.68bdd395@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210107101544.68bdd395@canb.auug.org.au> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Al, On Thu, Jan 07, 2021 at 10:15:44AM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) > produced this warning: > > In file included from fs/erofs/xattr.h:10, > from fs/erofs/namei.c:7: > fs/erofs/namei.c: In function 'erofs_lookup': > fs/erofs/internal.h:23:21: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'struct dentry *' [-Wformat=] > 23 | #define pr_fmt(fmt) "erofs: " fmt > | ^~~~~~~~~ > include/linux/dynamic_debug.h:129:15: note: in expansion of macro 'pr_fmt' > 129 | func(&id, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ > include/linux/dynamic_debug.h:147:2: note: in expansion of macro '__dynamic_func_call' > 147 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__) > | ^~~~~~~~~~~~~~~~~~~ > include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call' > 157 | _dynamic_func_call(fmt, __dynamic_pr_debug, \ > | ^~~~~~~~~~~~~~~~~~ > include/linux/printk.h:424:2: note: in expansion of macro 'dynamic_pr_debug' > 424 | dynamic_pr_debug(fmt, ##__VA_ARGS__) > | ^~~~~~~~~~~~~~~~ > fs/erofs/internal.h:34:33: note: in expansion of macro 'pr_debug' > 34 | #define erofs_dbg(x, ...) pr_debug(x "\n", ##__VA_ARGS__) > | ^~~~~~~~ > fs/erofs/namei.c:237:3: note: in expansion of macro 'erofs_dbg' > 237 | erofs_dbg("%pd, %s (nid %llu) found, d_type %u", __func__, > | ^~~~~~~~~ Thanks for modifying this. Use %pd is more reasonable than using d_name... It might be fixed as "%s, %pd (nid %llu) ...", thanks for this! Thanks, Gao Xiang > > Introduced by commit > > 879d4376533c ("erofs: use %pd instead of messing with ->d_name") > > -- > Cheers, > Stephen Rothwell