Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp387811rdg; Thu, 12 Oct 2023 08:26:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4WIl6rK5zseY+ekMfhYcUVRH6riZovIr9qHKrbjjXRKXNxaiKcqapUhY6FVfxQxYIF1cl X-Received: by 2002:a05:6a20:3ca5:b0:13d:d5bd:7593 with SMTP id b37-20020a056a203ca500b0013dd5bd7593mr25016805pzj.12.1697124407261; Thu, 12 Oct 2023 08:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697124407; cv=none; d=google.com; s=arc-20160816; b=L1bIbXdks0D0QR2B3kWSNjwZwxMy2kRxHEOaGgzOEFAEFzEXcBp/s4gwa3CUte0ZhE 2ka//VbjAqVvEEG6sXNLVxAyghNxetu/lLzW46rKszLkdEfoYq3ZYsuqTMo1dwiAuZed chEVy7ChLKu9TUlxGVfnOJY2obtqfbdTLuoKBx7g6mHIde8mqO5dCfk9MxjalKNyNUyu k4DmaNOLKHtt2IbOmOFXyz/8wPzgYE8mubgHK/97HIlfJYzOgwBqDANVMzPNgetikP/B wxt4bITDIYdWjl5MPwYcQ4HOMbgwtHC1j+L47kbYF3MJ+D4X93T40OgAfUOQ8Vl+SiAJ QTbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=cs1o+DwAGyODW8d7hRFJi9bCRLXi/YB/dSLR1lX7C9s=; fh=4N0ilCeWNPUMy3p+fwQEcpDcSktLq8IMxbqwLAweA1k=; b=O1prvUGWeRSwiUolPMrruIoYMfSKtHRSlN3Cqnj87E+m2rC0CVlivL9LbjWwVeXaIs +xPzPXTs0XI+XxOzte/6VpM19bEBSDVyz9S1F3wNZom4JYOTHglyYtogNinNEx9dkoCy 88uH04qRzuTucM1utR54Gj694tYiAOKnRxua+aY7bQNO+gFnDoXsqkLgOFb22Jn3G7d6 JC491HevJLzcpt0g9TUNfLaM60cwBgsj0kZxuL/RtTzT5ZVRDrQsRKkaioNMIL7qk7Mv Fpww1zmKgwuU2cNSe4+bmi1JWsMDSuDH2k2yP957felKvCm4K5o/rvrml2anzoTm7Cbo d0Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bm4xDw15; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i130-20020a639d88000000b005859af516b9si2659925pgd.647.2023.10.12.08.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 08:26:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bm4xDw15; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3EE05822D178; Thu, 12 Oct 2023 08:26:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379230AbjJLP0n (ORCPT + 99 others); Thu, 12 Oct 2023 11:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231680AbjJLP0m (ORCPT ); Thu, 12 Oct 2023 11:26:42 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A087ECA for ; Thu, 12 Oct 2023 08:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697124355; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cs1o+DwAGyODW8d7hRFJi9bCRLXi/YB/dSLR1lX7C9s=; b=bm4xDw15FRiMTc50DFwABDBxRHTkU4mHx+2CRTqLDelo/qukawmnvyshB2cbYuIaxFG8Wv an7NXPwDF2GGwmfCNTuf2RGvDi6172x0DIYnvKuLdgjNPj3yxlkDwrSxfv9aXl/ZG+otdp 7JsvPf7xaBKvbw/X2r1IwbbOiTk+hME= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-83-Fwi8M2Y8OcKBL3zTdA-blQ-1; Thu, 12 Oct 2023 11:25:43 -0400 X-MC-Unique: Fwi8M2Y8OcKBL3zTdA-blQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7ABC328AC1C6; Thu, 12 Oct 2023 15:25:43 +0000 (UTC) Received: from virtlab511.virt.lab.eng.bos.redhat.com (virtlab511.virt.lab.eng.bos.redhat.com [10.19.152.198]) by smtp.corp.redhat.com (Postfix) with ESMTP id 63B4F400F5B; Thu, 12 Oct 2023 15:25:43 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH] KVM: MIPS: fix -Wunused-but-set-variable warning Date: Thu, 12 Oct 2023 11:25:42 -0400 Message-Id: <20231012152542.1355621-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 08:26:46 -0700 (PDT) The variable is completely unused, remove it. Signed-off-by: Paolo Bonzini --- arch/mips/kvm/mmu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/mips/kvm/mmu.c b/arch/mips/kvm/mmu.c index 7b2ac1319d70..467ee6b95ae1 100644 --- a/arch/mips/kvm/mmu.c +++ b/arch/mips/kvm/mmu.c @@ -592,7 +592,7 @@ static int kvm_mips_map_page(struct kvm_vcpu *vcpu, unsigned long gpa, gfn_t gfn = gpa >> PAGE_SHIFT; int srcu_idx, err; kvm_pfn_t pfn; - pte_t *ptep, entry, old_pte; + pte_t *ptep, entry; bool writeable; unsigned long prot_bits; unsigned long mmu_seq; @@ -664,7 +664,6 @@ static int kvm_mips_map_page(struct kvm_vcpu *vcpu, unsigned long gpa, entry = pfn_pte(pfn, __pgprot(prot_bits)); /* Write the PTE */ - old_pte = *ptep; set_pte(ptep, entry); err = 0; -- 2.39.0