Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2438965rwd; Wed, 14 Jun 2023 02:53:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TX+RX0nNe8cJOmgov2m9x+8tz+j/G53j48l39jQmxFbSY3O+6eQo07+ZwZhNcpk5Li5vb X-Received: by 2002:a92:cd42:0:b0:33f:ff90:15ae with SMTP id v2-20020a92cd42000000b0033fff9015aemr7937943ilq.9.1686736401089; Wed, 14 Jun 2023 02:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686736401; cv=none; d=google.com; s=arc-20160816; b=nRGIxudhBB+gYlN9zjAtHl8dCIoTSdSgc5mXWzNQP543I0h94E9iVX9OAnpq2GsG7N QLhzhJwGuUBh/+H37sR6+8LRdO+A/Lgokn3jvek6s9LoWGsfAIalUFi+0dnCDxIawYSn 9XsK+ifXBucA9n50drCMVJRH8kTJ7GlQbddXqc1u5moJzakTTDSW+fdklUKItzFjwHdT yODFqKpo5zNmB5Jdup9DHv1Bx+cyc/oVmRFq4lD3sCRSCLEEz3nfEzdT37itrgwoYaZn 9y+fuNJSFV6Ir4WOqR6izX8Bz8cVcDqIaRCFVMrTsNHPJyKh9sxEJ+ZuDmr+jZPeXO04 cWpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=lYFEePcDVEJUFmSEiMbyl/pIXe6cAH2h2xtt8eI4UtY=; b=jGespiRz4iAlnKlWvOOH8kwfkmrJNkpZMlUTaDBZSG0gp2MZwy2MznZp8SrSOXa+Ek KmLkvagwbpjsS65OisJ883UkSlmr+LsnFuAhd3gLjj2r1/gGkDgjMn88NL4EnHwRCJtI HVwT7v0nBgPpJ8AOg51phycapr92m/TEYG/Tpr+UCRDHrTSDTyn22EtTfnDjS9UpxzKH RstS7jdxh6Ngg90CTR7XUDyNOC8iQFkvemsULTTW4xlb3V9PQGrlo7xXbyVzS58/kfuQ Na+6LjmI9c2DrqgP7GbU1VVdjF7UYydoynirOl2T+l2Z/E2u9jCypK+XNQyqgvTki0HA eq4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=lDCAmTV2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om5-20020a17090b3a8500b0025bae7f2b10si7915907pjb.13.2023.06.14.02.53.08; Wed, 14 Jun 2023 02:53:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=lDCAmTV2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243752AbjFNJGS (ORCPT + 99 others); Wed, 14 Jun 2023 05:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241554AbjFNJGR (ORCPT ); Wed, 14 Jun 2023 05:06:17 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D96918E for ; Wed, 14 Jun 2023 02:06:16 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4Qh00527KJzBQgnn for ; Wed, 14 Jun 2023 17:06:13 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1686733573; x=1689325574; bh=77WYnPP9SBJKj7/by1xRn/9zhdv h9Iodss2P+zlBrJg=; b=lDCAmTV21kfYS8s/Yq9gQmK4WO6E+GC1UGoYa+H632g yyedOSCEYUwpL8C0BGtTk3JGf6IifIPrtEXgcRgeU+TnLxqHjnd4Bmce6tjLgpxR 8L4+O1QiJTjl4ck4zQFD+NVhzHuC6N+2WDuLGO5UM5/4w+2gUCPNiQvgEnT+FSNr hj5115urciGgorC/67Awj47kVT1IMUhWdOqFbf2pCIHtnx+tVwuKJcj+eLnjV21R UdBohJLH9tzs4P8gcHBMfI2M0Y4SKNCFtb0bsWZiZzcbWLGtYoTXvSnk1+zTmaBP WxiM8ElV4nFHaiK4xElX29tjLE8aDxbnrLGv0gWwGAQ== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xV5dyNRxVG7Z for ; Wed, 14 Jun 2023 17:06:13 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4Qh0046lg0zBJJD0; Wed, 14 Jun 2023 17:06:12 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 17:06:12 +0800 From: hexingwei001@208suo.com To: djwong@kernel.org, dchinner@redhat.com, allison.henderson@oracle.com Cc: linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Fwd: [PATCH] fs/xfs/libxfs/xfs_bmap.c: space required after that ',' and spaces required around that '=' In-Reply-To: <20230614090248.90219-1-panzhiai@cdjrlc.com> References: <20230614090248.90219-1-panzhiai@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <3d224c797c33a98a3d2d1d888d00cb0d@208suo.com> X-Sender: hexingwei001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing spaces to clear checkpatch errors: fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ',' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ',' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ',' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ',' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:519: ERROR: space required after that ',' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:1421: ERROR: spaces required around that '=' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:1425: ERROR: spaces required around that '=' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:1972: ERROR: spaces required around that '=' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:2499: ERROR: spaces required around that '=' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:2500: ERROR: spaces required around that '=' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:2648: ERROR: spaces required around that '=' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:3054: ERROR: space required after that ',' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:3089: ERROR: spaces required around that '=' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:3091: ERROR: spaces required around that '=' (ctx:VxV). fs/xfs/libxfs/xfs_bmap.c:5012: ERROR: spaces required around that '=' (ctx:VxV). Signed-off-by: Xingwei He --- fs/xfs/libxfs/xfs_bmap.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 9cabcd3768e5..24fe1568c9d2 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -1418,11 +1418,11 @@ xfs_bmap_add_extent_delay_real( xfs_fileoff_t new_endoff; /* end offset of new entry */ xfs_bmbt_irec_t r[3]; /* neighbor extent entries */ /* left is 0, right is 1, prev is 2 */ - int rval= 0 ; /* return value (logging flags) */ + int rval = 0 ; /* return value (logging flags) */ uint32_t state = xfs_bmap_fork_to_state(whichfork); xfs_filblks_t da_new; /* new count del alloc blocks used */ xfs_filblks_t da_old; /* old count del alloc blocks used */ - xfs_filblks_t temp= 0 ; /* value for da_new calculations */ + xfs_filblks_t temp = 0 ; /* value for da_new calculations */ int tmp_rval; /* partial logging flags */ struct xfs_bmbt_irec old; @@ -1969,7 +1969,7 @@ xfs_bmap_add_extent_unwritten_real( xfs_fileoff_t new_endoff; /* end offset of new entry */ xfs_bmbt_irec_t r[3]; /* neighbor extent entries */ /* left is 0, right is 1, prev is 2 */ - int rval= 0 ; /* return value (logging flags) */ + int rval = 0 ; /* return value (logging flags) */ uint32_t state = xfs_bmap_fork_to_state(whichfork); struct xfs_mount *mp = ip->i_mount; struct xfs_bmbt_irec old; @@ -2496,8 +2496,8 @@ xfs_bmap_add_extent_hole_delay( { struct xfs_ifork *ifp; /* inode fork pointer */ xfs_bmbt_irec_t left; /* left neighbor extent entry */ - xfs_filblks_t newlen= 0 ; /* new indirect size */ - xfs_filblks_t oldlen= 0 ; /* old indirect size */ + xfs_filblks_t newlen = 0 ; /* new indirect size */ + xfs_filblks_t oldlen = 0 ; /* old indirect size */ xfs_bmbt_irec_t right; /* right neighbor extent entry */ uint32_t state = xfs_bmap_fork_to_state(whichfork); xfs_filblks_t temp; /* temp for indirect calculations */ @@ -2645,7 +2645,7 @@ xfs_bmap_add_extent_hole_real( int i; /* temp state */ xfs_bmbt_irec_t left; /* left neighbor extent entry */ xfs_bmbt_irec_t right; /* right neighbor extent entry */ - int rval= 0 ; /* return value (logging flags) */ + int rval = 0 ; /* return value (logging flags) */ uint32_t state = xfs_bmap_fork_to_state(whichfork); struct xfs_bmbt_irec old; @@ -3086,9 +3086,9 @@ xfs_bmap_adjacent( */ else if (!ap->eof) { xfs_fsblock_t gotbno; /* right side block number */ - xfs_fsblock_t gotdiff= 0 ; /* right side difference */ + xfs_fsblock_t gotdiff = 0 ; /* right side difference */ xfs_fsblock_t prevbno; /* left side block number */ - xfs_fsblock_t prevdiff= 0 ; /* left side difference */ + xfs_fsblock_t prevdiff = 0 ; /* left side difference */ /* * If there's a previous (left) block, select a requested @@ -5009,7 +5009,7 @@ xfs_bmap_del_extent_real( int whichfork, /* data or attr fork */ uint32_t bflags) /* bmapi flags */ { - xfs_fsblock_t del_endblock= 0; /* first block past del */ + xfs_fsblock_t del_endblock = 0; /* first block past del */ xfs_fileoff_t del_endoff; /* first offset past del */ int do_fx; /* free extent at end of routine */ int error; /* error return value */