Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2347506rdh; Sun, 29 Oct 2023 11:42:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxbXyKSAS96kTWVcs9CMeBcVxfVCeop7+9K0TVnpjKZQR1xJQ38bXmgCIOnXKDCLN2Xg9G X-Received: by 2002:a17:902:d2cd:b0:1cc:332f:9e4b with SMTP id n13-20020a170902d2cd00b001cc332f9e4bmr5310715plc.1.1698604930814; Sun, 29 Oct 2023 11:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698604930; cv=none; d=google.com; s=arc-20160816; b=B7tmgJd50r/5UsgX22j0zh4hruXs/U+ia9+pENcpr0PV27rpHnJfM600rpCWrEUBOi Yeqc0LpJY0YYVJg91O7hPq/E4zoyeIo8lDn1Rd/K04JJJxXmIlsH2SNRWEfi7fmhEHgA yzp1e4WvYAkPd9nzmsZp43Ev36+5m3q67qCV4eR77sSlH68NE23flEfrZNl0fKMp9abT /8up/K9VwPcJyEM5HsJjuZtM1+eoKWzO7TeRNEP0oILhmScKWG/0OLGD9a3+BFvobWw/ HtL4dETAJyUEYEHToF6SxgmamyxuhXOgKUGL6zttd8fJauUsfUoLxWPi9UMzjoG04BkH xU6w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vgmmSgDKBPRwjP4V3PwdDOcn8B9gVfehPUQauucjiaA=; fh=P8L+enEl4SVw22YzGx56AYQubdTQJ4MdEaXs3mvP/2E=; b=IIahIOBuBipEZRgdQvMCbJp9YZpoOt5o6Jv5Tins7FmzrlDV3zWICxKu6pEdW2PdLk R6xgZhrKEZzDZt76VMPEufC0hPlZcFVrgVqOKbgxWfs0Yp53JTY/TF8DJXliCEIxH+Hz uN7/NZgBNdCuAkM/GcSSEXO5vxH3a80WD/LvHB/k1QabxoEjNKvTdtlmar9y+sLAupS6 3R82N4q2U12sjXSVQ907FrzYQhCdZ2T6KdlEwNQ4Ted14dYocHx8ItXc6e2qj4qdcL0L fiWRs1ITGNYXFNoXs1+tBHAb7TCC5k1srR1rqZQ/G4pmnrbS6Bg0D5M6d8xLw23gUuFp k+Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MsCjNf9F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id m17-20020a170902d19100b001cc2f285b1bsi2746786plb.171.2023.10.29.11.42.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 11:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MsCjNf9F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 592D6805F4AA; Sun, 29 Oct 2023 11:42:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229689AbjJ2Sl7 (ORCPT + 99 others); Sun, 29 Oct 2023 14:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjJ2Sl6 (ORCPT ); Sun, 29 Oct 2023 14:41:58 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2522AB; Sun, 29 Oct 2023 11:41:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698604915; x=1730140915; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=4FFufjLNr4846R4FP5r0jinRPlFp0S9jNHqTPJGf77o=; b=MsCjNf9FhlCpe3rlkwHWC7qDIIuxNyTKG+2Aq6O5AEAw7Q5tUUbJCaal E68pphrY7TN4TF2uY/hzxAiLN90Gpo5sipOM9wMPSZejuTUd8OpV/9HHZ N/DKFF8+CT3/wKgbiXvsLYs0rij4btkLCeBZPm8qL0Pf2cAOsQI/Wahfc UwlAoDS4AoDH7COhJ46sUVpjsNpICo2uFz0RFMi2BFDiw7sQfTxJi5M/e rH7M7MVi/IHVetRiHTUGCVhvzRpGSdxgH3q/gM2kD3sKrVcrkmy32CwN1 ejlZvh3naQdpYjmZAM60KYnJVWAH0NSAl8sPgU16cvwfmQvptAntYQoGF Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="387789248" X-IronPort-AV: E=Sophos;i="6.03,261,1694761200"; d="scan'208";a="387789248" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2023 11:41:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="760079543" X-IronPort-AV: E=Sophos;i="6.03,261,1694761200"; d="scan'208";a="760079543" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 29 Oct 2023 11:41:51 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qxAjN-000Ckl-0U; Sun, 29 Oct 2023 18:41:49 +0000 Date: Mon, 30 Oct 2023 02:41:48 +0800 From: kernel test robot To: =?iso-8859-1?Q?Jos=E9?= Pekkarinen , seanjc@google.com, pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, skhan@linuxfoundation.org Cc: oe-kbuild-all@lists.linux.dev, =?iso-8859-1?Q?Jos=E9?= Pekkarinen , x86@kernel.org, hpa@zytor.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH] KVM: x86: cleanup unused variables Message-ID: <202310300228.s4py0SQf-lkp@intel.com> References: <20231029093859.138442-1-jose.pekkarinen@foxhound.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231029093859.138442-1-jose.pekkarinen@foxhound.fi> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 29 Oct 2023 11:42:07 -0700 (PDT) Hi Jos?, kernel test robot noticed the following build errors: [auto build test ERROR on kvm/queue] [also build test ERROR on linus/master v6.6-rc7 next-20231027] [cannot apply to kvm/linux-next] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Jos-Pekkarinen/KVM-x86-cleanup-unused-variables/20231029-174855 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue patch link: https://lore.kernel.org/r/20231029093859.138442-1-jose.pekkarinen%40foxhound.fi patch subject: [PATCH] KVM: x86: cleanup unused variables config: i386-buildonly-randconfig-006-20231030 (https://download.01.org/0day-ci/archive/20231030/202310300228.s4py0SQf-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231030/202310300228.s4py0SQf-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310300228.s4py0SQf-lkp@intel.com/ All errors (new ones prefixed by >>): arch/x86/kvm/emulate.c: In function 'decode_modrm': >> arch/x86/kvm/emulate.c:950:9: error: 'rc' undeclared (first use in this function); did you mean 'rq'? 950 | rc = do_insn_fetch_bytes(_ctxt, sizeof(_type)); \ | ^~ arch/x86/kvm/emulate.c:1225:45: note: in expansion of macro 'insn_fetch' 1225 | modrm_ea += insn_fetch(u16, ctxt); | ^~~~~~~~~~ arch/x86/kvm/emulate.c:950:9: note: each undeclared identifier is reported only once for each function it appears in 950 | rc = do_insn_fetch_bytes(_ctxt, sizeof(_type)); \ | ^~ arch/x86/kvm/emulate.c:1225:45: note: in expansion of macro 'insn_fetch' 1225 | modrm_ea += insn_fetch(u16, ctxt); | ^~~~~~~~~~ arch/x86/kvm/emulate.c: In function 'decode_abs': >> arch/x86/kvm/emulate.c:950:9: error: 'rc' undeclared (first use in this function); did you mean 'rq'? 950 | rc = do_insn_fetch_bytes(_ctxt, sizeof(_type)); \ | ^~ arch/x86/kvm/emulate.c:1317:35: note: in expansion of macro 'insn_fetch' 1317 | op->addr.mem.ea = insn_fetch(u16, ctxt); | ^~~~~~~~~~ arch/x86/kvm/emulate.c: In function 'decode_imm': >> arch/x86/kvm/emulate.c:950:9: error: 'rc' undeclared (first use in this function); did you mean 'rq'? 950 | rc = do_insn_fetch_bytes(_ctxt, sizeof(_type)); \ | ^~ arch/x86/kvm/emulate.c:4560:27: note: in expansion of macro 'insn_fetch' 4560 | op->val = insn_fetch(s8, ctxt); | ^~~~~~~~~~ vim +950 arch/x86/kvm/emulate.c 6226686954c4cc drivers/kvm/x86_emulate.c Avi Kivity 2007-11-20 945 67cbc90db5c0f0 arch/x86/kvm/emulate.c Takuya Yoshikawa 2011-05-15 946 /* Fetch next part of the instruction being emulated. */ e85a10852c26d7 arch/x86/kvm/emulate.c Takuya Yoshikawa 2011-07-30 947 #define insn_fetch(_type, _ctxt) \ 9506d57de3bc82 arch/x86/kvm/emulate.c Paolo Bonzini 2014-05-06 948 ({ _type _x; \ 9506d57de3bc82 arch/x86/kvm/emulate.c Paolo Bonzini 2014-05-06 949 \ 9506d57de3bc82 arch/x86/kvm/emulate.c Paolo Bonzini 2014-05-06 @950 rc = do_insn_fetch_bytes(_ctxt, sizeof(_type)); \ 67cbc90db5c0f0 arch/x86/kvm/emulate.c Takuya Yoshikawa 2011-05-15 951 if (rc != X86EMUL_CONTINUE) \ 67cbc90db5c0f0 arch/x86/kvm/emulate.c Takuya Yoshikawa 2011-05-15 952 goto done; \ 9506d57de3bc82 arch/x86/kvm/emulate.c Paolo Bonzini 2014-05-06 953 ctxt->_eip += sizeof(_type); \ 8616abc2537933 arch/x86/kvm/emulate.c Nick Desaulniers 2017-06-27 954 memcpy(&_x, ctxt->fetch.ptr, sizeof(_type)); \ 17052f16a51af6 arch/x86/kvm/emulate.c Paolo Bonzini 2014-05-06 955 ctxt->fetch.ptr += sizeof(_type); \ 9506d57de3bc82 arch/x86/kvm/emulate.c Paolo Bonzini 2014-05-06 956 _x; \ 67cbc90db5c0f0 arch/x86/kvm/emulate.c Takuya Yoshikawa 2011-05-15 957 }) 67cbc90db5c0f0 arch/x86/kvm/emulate.c Takuya Yoshikawa 2011-05-15 958 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki