From patchwork Tue Oct 27 16:30:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1388757 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CLHKP4MWJz9sPB for ; Wed, 28 Oct 2020 03:31:53 +1100 (AEDT) Received: from localhost ([::1]:36762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXRt1-0007JY-GB for incoming@patchwork.ozlabs.org; Tue, 27 Oct 2020 12:31:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXRrf-0006nN-Vs; Tue, 27 Oct 2020 12:30:28 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:39377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXRrd-0001Wo-Rt; Tue, 27 Oct 2020 12:30:27 -0400 Received: from localhost.localdomain ([82.252.139.38]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MRBac-1klhUN2X7k-00N9tz; Tue, 27 Oct 2020 17:30:19 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 3/8] cpus: Drop declaration of cpu_remove() Date: Tue, 27 Oct 2020 17:30:09 +0100 Message-Id: <20201027163014.247336-4-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201027163014.247336-1-laurent@vivier.eu> References: <20201027163014.247336-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:pIuOhgWNYdI60OYV8kvtG8MvSqOqNu2IF+/4sR7V132059mt5hE OsPKzIdtc8ja3moKUeg5eMbUHhGHV7I0NlZAjLHuQPst+q/7yuJi+v0yOi/N0Ou1rwcWtJR BxiI6tNRBkghvJhorzYht3Bl+Kn4TK8pY7IY+s/tqhNfOQWQ4lbWL5QZk36b+sssijv6xIQ 8x2+0/vRW5T463xl9941w== X-UI-Out-Filterresults: notjunk:1;V03:K0:4TKJa6uW9tQ=:gu0/TynExGxtMIgrrsUXcc 4Kia+X/L4gAEKNANzxzv7Dw2GP/QxYx2HEWIcIadChhQkoCW5KZN2vLoIsmkTeU3T/bdzmwDj nHy+CIBPLjOd4t2Zzr1V6V0vRLWhYSPLOAFtiDcf01cdgnctN49me0BZ4ZRcdtZmGAA8aHwsc 36MBq5vc8Z/UG9Pnjhb6aSBCtoY51tEnXw8nG3lP74687cdn5tj2AxrtZ1XiBGwOBL1lu6Xe7 MgwnCUfYKOvyJP2A2N+DwZS6894k2DhqlpkkuVSgyq8jYWQHnlVm3mZXdHwWHIWlkUwm6NhpX uIPY7CB9oIeE4dTQmgUyqXUjiP/DJi3fT88j6ok2Y2v8jY4L8GxD1A1AjZs49AVFOHAwhn7JS zhJPfYy1uoletifikkvwOCNDIccZudrxNQP9RM1cgu0jYuhWGvTjJyMi8q8Eim6nZ65hXygEF kjR6FZZQ0A== Received-SPF: none client-ip=217.72.192.75; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/27 12:30:20 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Michael Tokarev , Laurent Vivier , Greg Kurz , pbonzini@redhat.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Greg Kurz cpu_remove() got superseded by cpu_remove_sync() in commit dbadee4ff4a0, but its prototype wasn't removed. We could possibly keep the shorter cpu_remove() naming but it seems better to highligth that this blocks until the CPU thread is joined. Fixes: dbadee4ff4a0 ("cpus: join thread when removing a vCPU") Cc: pbonzini@redhat.com Signed-off-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé Message-Id: <160268285707.1107461.15035929822602623985.stgit@bahia.lan> Signed-off-by: Laurent Vivier --- include/hw/core/cpu.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 9c3a45ad7b11..3d92c967fffa 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -927,14 +927,6 @@ void cpu_exit(CPUState *cpu); void cpu_resume(CPUState *cpu); /** - * cpu_remove: - * @cpu: The CPU to remove. - * - * Requests the CPU to be removed. - */ -void cpu_remove(CPUState *cpu); - - /** * cpu_remove_sync: * @cpu: The CPU to remove. *