Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp334384pxa; Tue, 11 Aug 2020 04:21:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjWi2Nt2EKok42PTWooTFw6k4TXyz7mqz2sDbWc9EGktR80XV66qqOuTuhRbIyp5D9BrXM X-Received: by 2002:aa7:cd08:: with SMTP id b8mr26088029edw.228.1597144892434; Tue, 11 Aug 2020 04:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597144892; cv=none; d=google.com; s=arc-20160816; b=Xa9OvRxD/L+Qc2sUFF3TIv4j4DWE+xOlbjxYHbqvrTdtBSUjkIr9URC41LMXor7pMZ xWgt9XjOOTGXayKwvHN8rIEAYlmM00JBVWmgL4O0/taLuCC13Gy6n66RjQI9fLmPTOI+ 5o5L/c0q6uwEGB4rnWFmtzwX4C6zSlnwZ0IT06XAFvQZN4w99PDMimprWqP/OPdQaDd4 TWNR2065B2PzZnaGZgGNCutYnuSONyroXr6dF5bvRggDuv3lzRWwLzV/EAEasFdO82ih ZerNws5p1fROA2n1JUchq8b9gV/M0+4RbacQhUQn6TKeLAIpEZzN9EulWuv8lTig0f5D p7Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=E/b3MlPnS2fuBzmiz0g+4SKXMuO51LxW4Hm59pIWy/s=; b=gjtkJAB4vaN4d+FV78BIBqdaj08DZojY+iqfuEnPCrFIKwoQr3b6S5QFnTKrDWgGtS f/0dIx57vmXAAcuOWvueLbt3SLljuqDfjXBvki9DLXBUUQIIrpJU9J2pI+5LO2WiWZzn VAgwjRc+Km3eFouR4miaO0ro5/NSyBzJS0RTOg+yUgvcNcOfAwHt2bSdlek1rfkc8aA0 qNdPv6b+uHJQePCFkLVCh1Np90YP/VBKXVDl4MN90RuRpWq0WItH/Ejfgr9iC6ffVdYI fEwLZZpHcJOeyQvyXMBS8H5jcw435SjbrtxphvnozSs+cOYzvBFSZPQ6xkhpTkGgzwpn wCgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JrphKBtE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt15si12927003ejb.319.2020.08.11.04.21.09; Tue, 11 Aug 2020 04:21:32 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JrphKBtE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728754AbgHKLTx (ORCPT + 99 others); Tue, 11 Aug 2020 07:19:53 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:50645 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728663AbgHKLTu (ORCPT ); Tue, 11 Aug 2020 07:19:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597144789; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E/b3MlPnS2fuBzmiz0g+4SKXMuO51LxW4Hm59pIWy/s=; b=JrphKBtE+mCM54WnO6U2ii+LNIMoAGvcVEodfM3mMAlO4WKqh1bEOwkEZSXq6LPW/7ZN80 uZJrvJHM6zw6YfiujOJIQsxjIy5CGCZslPmjVtUy9ef8oLlEgKNZDUg/WK8LRM/5FbzeLy CBH7h9vUUjnVXjnHXQgglNNyKS5TfpY= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-536-JlRBKp6ePPSKYeLhUDku4g-1; Tue, 11 Aug 2020 07:19:47 -0400 X-MC-Unique: JlRBKp6ePPSKYeLhUDku4g-1 Received: by mail-wm1-f70.google.com with SMTP id g72so856801wme.4 for ; Tue, 11 Aug 2020 04:19:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=E/b3MlPnS2fuBzmiz0g+4SKXMuO51LxW4Hm59pIWy/s=; b=NR4QP/pIL/o8jK9bhSv71BG9/X2E5Yu8y3cZ7YyZKHqfAxrqGPTkdN8+Mw5HVQNodb WnACeaHXYVgvKBXQWVquWhSOnhzpi0CVwElIW0ptjC2/nFxVgBU+7BTUGmhhMOMB3LWr fvTdl1Fjysu26VIXl/37LbHzmSHTP/HhsBApryMzFYmKnhmIMnZs6EaaOPrUXAEMIHVM 86PlzIP6YSVNBrRDeQF/oSAGZfgSculv36lsXCW2t1vGo/MThxSFiN1Lxz2eeyRu1lfV 3lDeu4nE0QPikvEA2R76WrnQUpOufcU8a/ZHJt9GBhKRxPI2RK72n0gIXSYVQaHxbb1P d7sQ== X-Gm-Message-State: AOAM530SN4t1eCWIji4EvzvbZCUHgYy0vqb72sRspbdhn7u5TwCKvqIS AFJfbIabRXOF0TBORNoqNTeka+U9mNamQK7Ir2cWQbmweXapIOmLtOM+V4cHKL5ML+OenydB3td shUoxKKqGipbcbWfnn6fMxUba X-Received: by 2002:a7b:c7d5:: with SMTP id z21mr3679295wmk.145.1597144786097; Tue, 11 Aug 2020 04:19:46 -0700 (PDT) X-Received: by 2002:a7b:c7d5:: with SMTP id z21mr3679278wmk.145.1597144785885; Tue, 11 Aug 2020 04:19:45 -0700 (PDT) Received: from [192.168.178.58] ([151.21.12.249]) by smtp.gmail.com with ESMTPSA id d11sm26253533wrw.77.2020.08.11.04.19.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2020 04:19:45 -0700 (PDT) Subject: Re: [PATCH RESEND] KVM: MIPS/VZ: Fix build error caused by 'kvm_run' cleanup To: Xingxing Su , Huacai Chen , Thomas Bogendoerfer , Aleksandar Markovic Cc: kvm@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org References: <1597138297-2105-1-git-send-email-suxingxing@loongson.cn> From: Paolo Bonzini Message-ID: Date: Tue, 11 Aug 2020 13:19:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <1597138297-2105-1-git-send-email-suxingxing@loongson.cn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/08/20 11:31, Xingxing Su wrote: > Commit c34b26b98caca48ec9ee9 ("KVM: MIPS: clean up redundant 'kvm_run' > parameters") remove the 'kvm_run' parameter in kvm_vz_gpsi_lwc2. > > The following build error: > > arch/mips/kvm/vz.c: In function ‘kvm_trap_vz_handle_gpsi’: > arch/mips/kvm/vz.c:1243:43: error: ‘run’ undeclared (first use in this function) > er = kvm_vz_gpsi_lwc2(inst, opc, cause, run, vcpu); > ^~~ > arch/mips/kvm/vz.c:1243:43: note: each undeclared identifier is reported only > once for each function it appears in > scripts/Makefile.build:283: recipe for target 'arch/mips/kvm/vz.o' failed > make[2]: *** [arch/mips/kvm/vz.o] Error 1 > scripts/Makefile.build:500: recipe for target 'arch/mips/kvm' failed > make[1]: *** [arch/mips/kvm] Error 2 > Makefile:1785: recipe for target 'arch/mips' failed > make: *** [arch/mips] Error 2 > > Signed-off-by: Xingxing Su > --- > +cc Paolo Bonzini and kvm@vger.kernel.org. > > arch/mips/kvm/vz.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c > index 3932f76..49c6a2a 100644 > --- a/arch/mips/kvm/vz.c > +++ b/arch/mips/kvm/vz.c > @@ -1142,7 +1142,6 @@ static enum emulation_result kvm_vz_gpsi_cache(union mips_instruction inst, > #ifdef CONFIG_CPU_LOONGSON64 > static enum emulation_result kvm_vz_gpsi_lwc2(union mips_instruction inst, > u32 *opc, u32 cause, > - struct kvm_run *run, > struct kvm_vcpu *vcpu) > { > unsigned int rs, rd; > @@ -1240,7 +1239,7 @@ static enum emulation_result kvm_trap_vz_handle_gpsi(u32 cause, u32 *opc, > #endif > #ifdef CONFIG_CPU_LOONGSON64 > case lwc2_op: > - er = kvm_vz_gpsi_lwc2(inst, opc, cause, run, vcpu); > + er = kvm_vz_gpsi_lwc2(inst, opc, cause, vcpu); > break; > #endif > case spec3_op: > Queued, thanks. Paolo