Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3261485lfo; Mon, 23 May 2022 00:14:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNd7ysMR4/UjaeBz4hzdu9W/I0lXkThGoNJz+bawmI5Km6Yo3fR4Y3yTt8oQ5YhPVGgJaN X-Received: by 2002:a17:90b:4b05:b0:1df:db8a:1fcb with SMTP id lx5-20020a17090b4b0500b001dfdb8a1fcbmr22351104pjb.54.1653290073693; Mon, 23 May 2022 00:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653290073; cv=none; d=google.com; s=arc-20160816; b=nVfLpdMAwe3UiR+l3LVZmvRAjRyei5MDmPQFe0LRGCzr2Oz1ah+kvXThEcRAoa4+mf v3AMFhUOTlOdWuoOaMrhUGg185wJIJOXXsdgF3OpchKc5Lm1Ym3W58UIT3SQJ77KRlsL oCYjzS4zW4lxoC2DqlSAmL4o0+xMCXjp3gMKg9zdhR4fhTPKu1txysADPhJav8k2ypAM qcNRem+Et2+XKcJ4ojGVB7/+kGp1JvOtm27IiVLucGttXCMxjXYp1kxyKkPfKuHBmDz4 +mieI6FoKUEX1cPWoR4FTWoHslihAhIm+7NrZPrJ0NMNq7pcAiQgMRdFIsfwyvm9UHbB HGEQ== 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:dkim-signature; bh=U3ORjtUswChPzpTNokg0WXAn3wrPv9L7SsQJCqPK55Y=; b=QwAilON64Lw1cSjDZ0b3Kr9PtNmh9OWzHdTOz618WAJCzNzpVGar/4C7f+7WSiYjOm /6+HJrKfYM1F0XkU0EUIJiL5Xw8B6eP4kIkxVtwtx4RwTk3cCOWUJg/xQyzXfGFlKAnA XiPpVsmrylynyHEw9xIHtcOGvfz6wU0ITqehc5Hso4e2Q/Laa3E+QdjuV3eiXLAB4aBv xJmZCiGTtdrlct5VMQluU9AyLKPgUEUwRYLKcAwTKFGnfM+tpIhulFpoUSadgkQGKfsh sPHlynqsD/y2OwgvzC3oUS+RckzC7MItgJtqIJKuT/0DjD69uIqdWHFuY1He0foXNiT/ w+bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QgSvpfXa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id qe13-20020a17090b4f8d00b001cb7af1047esi14360086pjb.100.2022.05.23.00.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QgSvpfXa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8EAEB46B23; Sun, 22 May 2022 23:32:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238329AbiEVH0Y (ORCPT + 99 others); Sun, 22 May 2022 03:26:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234813AbiEVH0V (ORCPT ); Sun, 22 May 2022 03:26:21 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCB9C19287; Sun, 22 May 2022 00:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653204377; x=1684740377; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PHkVjsQdDsWH4+Q1zKa7kO6PFtCgvH3iM3bFKiVfnBU=; b=QgSvpfXabVFqcwsSrbJy/j8zyCIEz4sdzLDk0q+e+ehe5Zog8pPGsAoa dA5acNm3zWGg59llFb6gWjs59zKKmx+NDna2phkyWe/1ZlbdbQdF1V9rj sPIrR0pi4gGwuSLeYYaEfjeBR5XvgMfDReTEZ2AJYwj3Zn6IDbG4U29PE o0yrNR38i+0mobCNFH+bxIu0WUG8FC8upEHywNRFyDmVObCd4G+A5d7KH KtUvAUnr2zGWB4LgO0Ke1xKaEQRu/wMZmO7TPjdN+EAP3j5CGuQgqPc6m r9QiILtR9OUNRl9lIPWghd6r3HXmUEJh5ZEccoiBhyKkj0U4TCFMOXHef w==; X-IronPort-AV: E=McAfee;i="6400,9594,10354"; a="270536935" X-IronPort-AV: E=Sophos;i="5.91,243,1647327600"; d="scan'208";a="270536935" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2022 00:26:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,243,1647327600"; d="scan'208";a="525365057" Received: from lkp-server01.sh.intel.com (HELO db63a1be7222) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 22 May 2022 00:26:14 -0700 Received: from kbuild by db63a1be7222 with local (Exim 4.95) (envelope-from ) id 1nsfyg-0000B9-4X; Sun, 22 May 2022 07:26:14 +0000 Date: Sun, 22 May 2022 15:25:58 +0800 From: kernel test robot To: Jiapeng Chong , djwong@kernel.org Cc: kbuild-all@lists.01.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: Re: [PATCH] xfs: Remove the redundant assignment Message-ID: <202205221503.Qj3T3w3A-lkp@intel.com> References: <20220520040518.73957-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220520040518.73957-1-jiapeng.chong@linux.alibaba.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Jiapeng, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on xfs-linux/for-next] [also build test WARNING on v5.18-rc7 next-20220520] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Jiapeng-Chong/xfs-Remove-the-redundant-assignment/20220520-120736 base: https://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git for-next config: i386-randconfig-a005 (https://download.01.org/0day-ci/archive/20220522/202205221503.Qj3T3w3A-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-1) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/890587fbe3e3934d20fcd39effdcefedd65e6b7f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jiapeng-Chong/xfs-Remove-the-redundant-assignment/20220520-120736 git checkout 890587fbe3e3934d20fcd39effdcefedd65e6b7f # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/xfs/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): fs/xfs/xfs_log_recover.c: In function 'xlog_recover_check_summary': >> fs/xfs/xfs_log_recover.c:3542:42: warning: unused variable 'agfp' [-Wunused-variable] 3542 | struct xfs_agf *agfp = agfbp->b_addr; | ^~~~ >> fs/xfs/xfs_log_recover.c:3551:42: warning: unused variable 'agi' [-Wunused-variable] 3551 | struct xfs_agi *agi = agibp->b_addr; | ^~~ vim +/agfp +3542 fs/xfs/xfs_log_recover.c ^1da177e4c3f415 Linus Torvalds 2005-04-16 3519 ^1da177e4c3f415 Linus Torvalds 2005-04-16 3520 #if defined(DEBUG) ^1da177e4c3f415 Linus Torvalds 2005-04-16 3521 /* ^1da177e4c3f415 Linus Torvalds 2005-04-16 3522 * Read all of the agf and agi counters and check that they ^1da177e4c3f415 Linus Torvalds 2005-04-16 3523 * are consistent with the superblock counters. ^1da177e4c3f415 Linus Torvalds 2005-04-16 3524 */ e89fbb5ee1893f3 Christoph Hellwig 2017-11-06 3525 STATIC void ^1da177e4c3f415 Linus Torvalds 2005-04-16 3526 xlog_recover_check_summary( 9a8d2fdbb47aaa1 Mark Tinguely 2012-06-14 3527 struct xlog *log) ^1da177e4c3f415 Linus Torvalds 2005-04-16 3528 { 934933c3eec9e4a Dave Chinner 2021-06-02 3529 struct xfs_mount *mp = log->l_mp; 934933c3eec9e4a Dave Chinner 2021-06-02 3530 struct xfs_perag *pag; e82226138b20d4f Dave Chinner 2020-12-16 3531 struct xfs_buf *agfbp; e82226138b20d4f Dave Chinner 2020-12-16 3532 struct xfs_buf *agibp; ^1da177e4c3f415 Linus Torvalds 2005-04-16 3533 xfs_agnumber_t agno; 5e1be0fb1a39505 Christoph Hellwig 2008-11-28 3534 int error; ^1da177e4c3f415 Linus Torvalds 2005-04-16 3535 934933c3eec9e4a Dave Chinner 2021-06-02 3536 for_each_perag(mp, agno, pag) { 934933c3eec9e4a Dave Chinner 2021-06-02 3537 error = xfs_read_agf(mp, NULL, pag->pag_agno, 0, &agfbp); 4805621a37d9b2b Christoph Hellwig 2008-11-28 3538 if (error) { a0fa2b679ecd15b Dave Chinner 2011-03-07 3539 xfs_alert(mp, "%s agf read failed agno %d error %d", 934933c3eec9e4a Dave Chinner 2021-06-02 3540 __func__, pag->pag_agno, error); 4805621a37d9b2b Christoph Hellwig 2008-11-28 3541 } else { 9798f615ad2be48 Christoph Hellwig 2020-03-10 @3542 struct xfs_agf *agfp = agfbp->b_addr; ^1da177e4c3f415 Linus Torvalds 2005-04-16 3543 xfs_buf_relse(agfbp); 4805621a37d9b2b Christoph Hellwig 2008-11-28 3544 } ^1da177e4c3f415 Linus Torvalds 2005-04-16 3545 934933c3eec9e4a Dave Chinner 2021-06-02 3546 error = xfs_read_agi(mp, NULL, pag->pag_agno, &agibp); a0fa2b679ecd15b Dave Chinner 2011-03-07 3547 if (error) { a0fa2b679ecd15b Dave Chinner 2011-03-07 3548 xfs_alert(mp, "%s agi read failed agno %d error %d", 934933c3eec9e4a Dave Chinner 2021-06-02 3549 __func__, pag->pag_agno, error); a0fa2b679ecd15b Dave Chinner 2011-03-07 3550 } else { 370c782b98436bb Christoph Hellwig 2020-03-10 @3551 struct xfs_agi *agi = agibp->b_addr; -- 0-DAY CI Kernel Test Service https://01.org/lkp