Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1264812lfc; Wed, 1 Jun 2022 13:32:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxybHIHJJYK7K7h87Knr6xv9fPXHjkBgwYlAWi2spv5wzKcaRaz7ffkG+4gSixHZgNObbWR X-Received: by 2002:a17:90a:930b:b0:1bf:ac1f:6585 with SMTP id p11-20020a17090a930b00b001bfac1f6585mr1220151pjo.88.1654115534186; Wed, 01 Jun 2022 13:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654115534; cv=none; d=google.com; s=arc-20160816; b=M5588LcTO4LaK0bbRYHEcEnWY/c+pBBTSWedmZ9BZLbzJCbaTR7EDnHv8/AEdjgdwR Q5K2u9+BsX53K1DWxJ7lSkdmss3XFS1q2rO/VghfQnN5ETd4pZt/uyRzed3w1SdfaRFS 9JwhJurTyQaQTRkYmdiF5lR6DjHdmccQPpETSZkD+JMT0mVxUdC/UviD1Jg8GKqTA6U4 j09wfacMiLvmH2NNN/9ysKJs0P0xzf2iCwDsTJ3yC2IFHbWnKCsUJR2Zz9Cyzq9Cee9+ RQXLOxjq5YajejQlD1K2FGSkaMkNHTysZmCVWnxtoGFaPrPQznXgDYlou5yv0Nvl97TM C+Mg== 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=QhsgdaiE45reCWHxsIvkpdCD6n+GQT12FMC53UnoVpU=; b=GMH2p0sC1Bedwpd4v/+S4KQ0hWFPJXq+wGy/zVUZjI1R5H51rhcw5yxNtQ3FbqOFEM tyqVt7hqBchKii/W8CpzVshR74V8JkitVIfSU2spIRQqCvKB4Me8R9eotuLdHe0wagYi vLtrSP0gBnBXlYwDsM546P5v4Ls5k4ZFIfyRtGUyJS/qxFHVTpOOHbamVeKhMgoi/VZd mFtNMSHS4lyCl7dotn8nYjVoJGcA/egYbGFJgc84idZgAJSm1CkfMRwsN5CAydJjd7Wu L+/U/ZP/+YQ3X4R+kVoAQFyAgm0pi5yLuFAKGOEqlgTR1FTMOYYuAURogU4kUVZZ/n6U uExQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MyuPw3nz; 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 x191-20020a6386c8000000b003f9e8c4b388si3360283pgd.504.2022.06.01.13.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:32:14 -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=MyuPw3nz; 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 E97AD1C865B; Wed, 1 Jun 2022 12:41:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354845AbiFAOjR (ORCPT + 99 others); Wed, 1 Jun 2022 10:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbiFAOjP (ORCPT ); Wed, 1 Jun 2022 10:39:15 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90B1F31233; Wed, 1 Jun 2022 07:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654094354; x=1685630354; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kgeZ5dHKGAmvtm2SI9klD7xeCUa8LmfIDO8LskDbpCY=; b=MyuPw3nzSlQyeCaTmkm7Ejw6KJHsH675eqa5SmbWap7jFNJ/xMaYJDqT LcG5mXaQwjwZTpl3btRS16ja0lzt3brAE2pkcGnCa+H5YaGJJsZg/uYMt rifWWALy9MFPYaDKDwg+sMrx3kDu/iAgkTZRjfYKxXnLMZSfsq+AjgvS8 5QStByOq5thYnnAcjfm3VW0QqCWk/vK0fu/G5YuaEfqeAtAt+dbpE8kvc tM9DeShSxR+0pB/CGmcQEmEO4SxdmohNxwGq+hVZG16A1fMerHoxsDnRQ 14cM7nsGN0lOtB8N4oL+XWK7KClFKQBPmTEwpEa7gprXfSfu1CnNDZBTN A==; X-IronPort-AV: E=McAfee;i="6400,9594,10365"; a="338656201" X-IronPort-AV: E=Sophos;i="5.91,268,1647327600"; d="scan'208";a="338656201" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2022 07:39:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,268,1647327600"; d="scan'208";a="581611535" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 01 Jun 2022 07:39:10 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nwPV2-00044e-Nc; Wed, 01 Jun 2022 14:39:04 +0000 Date: Wed, 1 Jun 2022 22:38:35 +0800 From: kernel test robot To: Haowen Bai , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, netdev@vger.kernel.org, Haowen Bai , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: tulip: de4x5: remove unused variable Message-ID: <202206012206.rmnA2Zg6-lkp@intel.com> References: <1654068277-6691-1-git-send-email-baihaowen@meizu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1654068277-6691-1-git-send-email-baihaowen@meizu.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 Haowen, Thank you for the patch! Yet something to improve: [auto build test ERROR on horms-ipvs/master] [also build test ERROR on v5.18] [cannot apply to net-next/master net/master linus/master next-20220601] [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/Haowen-Bai/net-tulip-de4x5-remove-unused-variable/20220601-152922 base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master config: i386-randconfig-a004 (https://download.01.org/0day-ci/archive/20220601/202206012206.rmnA2Zg6-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c825abd6b0198fb088d9752f556a70705bc99dfd) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/98c118e28527e7ff29469521c68414943a7cfc3a git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Haowen-Bai/net-tulip-de4x5-remove-unused-variable/20220601-152922 git checkout 98c118e28527e7ff29469521c68414943a7cfc3a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/net/ethernet/dec/tulip/de4x5.c:3823:2: error: use of undeclared identifier 'imr' UNMASK_IRQs; ^ drivers/net/ethernet/dec/tulip/de4x5.c:694:5: note: expanded from macro 'UNMASK_IRQs' imr |= lp->irq_mask;\ ^ >> drivers/net/ethernet/dec/tulip/de4x5.c:3823:2: error: use of undeclared identifier 'imr' drivers/net/ethernet/dec/tulip/de4x5.c:695:10: note: expanded from macro 'UNMASK_IRQs' outl(imr, DE4X5_IMR); /* Unmask the IRQs */\ ^ drivers/net/ethernet/dec/tulip/de4x5.c:3826:2: error: use of undeclared identifier 'imr' ENABLE_IRQs; ^ drivers/net/ethernet/dec/tulip/de4x5.c:683:5: note: expanded from macro 'ENABLE_IRQs' imr |= lp->irq_en;\ ^ drivers/net/ethernet/dec/tulip/de4x5.c:3826:2: error: use of undeclared identifier 'imr' drivers/net/ethernet/dec/tulip/de4x5.c:684:10: note: expanded from macro 'ENABLE_IRQs' outl(imr, DE4X5_IMR); /* Enable the IRQs */\ ^ 4 errors generated. vim +/imr +3823 drivers/net/ethernet/dec/tulip/de4x5.c ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3814 ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3815 static void ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3816 de4x5_setup_intr(struct net_device *dev) ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3817 { ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3818 struct de4x5_private *lp = netdev_priv(dev); ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3819 u_long iobase = dev->base_addr; 98c118e28527e7 drivers/net/ethernet/dec/tulip/de4x5.c Haowen Bai 2022-06-01 3820 s32 sts; ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3821 ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3822 if (inl(DE4X5_OMR) & OMR_SR) { /* Only unmask if TX/RX is enabled */ ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 @3823 UNMASK_IRQs; ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3824 sts = inl(DE4X5_STS); /* Reset any pending (stale) interrupts */ ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3825 outl(sts, DE4X5_STS); ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3826 ENABLE_IRQs; ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3827 } ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3828 } ^1da177e4c3f41 drivers/net/tulip/de4x5.c Linus Torvalds 2005-04-16 3829 -- 0-DAY CI Kernel Test Service https://01.org/lkp