Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2495244pxv; Sun, 11 Jul 2021 15:49:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+MiDAMXLMPisjXs0+y1XPzVVUUFqA99j9joJwc8Gx+T8ZfTqwdggWnhMSoO/NqnESS4i6 X-Received: by 2002:a17:906:58c7:: with SMTP id e7mr46027067ejs.197.1626043773593; Sun, 11 Jul 2021 15:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626043773; cv=none; d=google.com; s=arc-20160816; b=d7E1bUd5AZZMoiXdc30Z7O19SIMm1TiDNwj5vHcL9yRNfRBfWSH9Sqy3RTc2NBaaaq fjIrmDF5irCJ7Wt5GpDqkSgcqz23xWle2+cSbTtXoxJVOkIbJDx836fMycwU92VeYMqC J5/TyApE9fCWS3KRGemgj51YmbSJ2xpfwcwMcOHlQZEFO1vy58VFksKkKv9s+Nrihk6r 7M1+zTgyi+2WS8S0m/ZxdyAd5i+9m9Zdql1upSSTKhAIYysPoy5UH61DYxo/2zSYqVJ1 YwfZIOKj7VthTnQ+DS85NygxUV3eSSlVxx1DlH3QqTlweOuaNtvABq1cRFuwGKoo2M8+ 26OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Y4Ku+OnOfCkXFJbcWLrZ+fbvfnCzwiQU28rVpiyt2HQ=; b=p0qqvT73x9kym2mvkNbgFXlCZA7aueopl/EZiWZ0zdlqxcuS2NkdTSAuSb+49UrRAe aE40OgMpNOPhZBhd7AopNNQPy9MprsREaar2nEo3JwnNmbphr4QgUUWF04ueWqQ5SRuV AxwFtXEQlGL/Ki1GgGqf+GkYNlKmHCvR2nw0DDjsLvJ7z9flMCx8Oin+wU/5CHWfo4EE iprfRVH5ZL/TtTHrXhlT8Wg5+ZxITwUEd30lHwQ2mHLGvTROpq57ou64fBK30TO/RcBC dkOdBWLo8r2bk7nmxxGh3UhJCQoaRWxrjm9y27h/F8ilhsre0TVo8B5F41uoQGqSxk4b R7MQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr12si13543233ejc.222.2021.07.11.15.49.00; Sun, 11 Jul 2021 15:49:33 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbhGKWtn (ORCPT + 99 others); Sun, 11 Jul 2021 18:49:43 -0400 Received: from mail107.syd.optusnet.com.au ([211.29.132.53]:55454 "EHLO mail107.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbhGKWtn (ORCPT ); Sun, 11 Jul 2021 18:49:43 -0400 Received: from dread.disaster.area (pa49-181-34-10.pa.nsw.optusnet.com.au [49.181.34.10]) by mail107.syd.optusnet.com.au (Postfix) with ESMTPS id 3150C4ED3; Mon, 12 Jul 2021 08:46:53 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1m2iDr-005SU9-Kp; Mon, 12 Jul 2021 08:46:51 +1000 Date: Mon, 12 Jul 2021 08:46:51 +1000 From: Dave Chinner To: Dwaipayan Ray Cc: djwong@kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, lukas.bulwahn@gmail.com Subject: Re: [PATCH] fs:xfs: cleanup __FUNCTION__ usage Message-ID: <20210711224651.GR664593@dread.disaster.area> References: <20210711085153.95856-1-dwaipayanray1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210711085153.95856-1-dwaipayanray1@gmail.com> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=YKPhNiOx c=1 sm=1 tr=0 a=hdaoRb6WoHYrV466vVKEyw==:117 a=hdaoRb6WoHYrV466vVKEyw==:17 a=kj9zAlcOel0A:10 a=e_q4qTt1xDgA:10 a=pGLkceISAAAA:8 a=20KFwNOVAAAA:8 a=7-415B0cAAAA:8 a=-04TyFfsXmtQx-_KwuwA:9 a=KzjSoPuBCdaCrBdG:21 a=r1UvY4bH-UbycAGe:21 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 11, 2021 at 02:21:53PM +0530, Dwaipayan Ray wrote: > __FUNCTION__ exists only for backwards compatibility reasons > with old gcc versions. Replace it with __func__. > > Signed-off-by: Dwaipayan Ray > --- > fs/xfs/xfs_icreate_item.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/xfs/xfs_icreate_item.c b/fs/xfs/xfs_icreate_item.c > index 9b3994b9c716..017904a34c02 100644 > --- a/fs/xfs/xfs_icreate_item.c > +++ b/fs/xfs/xfs_icreate_item.c > @@ -201,7 +201,7 @@ xlog_recover_icreate_commit_pass2( > if (length != igeo->ialloc_blks && > length != igeo->ialloc_min_blks) { > xfs_warn(log->l_mp, > - "%s: unsupported chunk length", __FUNCTION__); > + "%s: unsupported chunk length", __func__); > return -EINVAL; > } > > @@ -209,7 +209,7 @@ xlog_recover_icreate_commit_pass2( > if ((count >> mp->m_sb.sb_inopblog) != length) { > xfs_warn(log->l_mp, > "%s: inconsistent inode count and chunk length", > - __FUNCTION__); > + __func__); > return -EINVAL; > } Looks good. Reviewed-by: Dave Chinner For future reference, the subject only needs "xfs:", you can drop the "fs:" prefix from it. -Dave. -- Dave Chinner david@fromorbit.com