From nobody Tue Feb 10 06:52:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1646420585; cv=none; d=zohomail.com; s=zohoarc; b=IRCMhYC10WvVk/ZM/AS+NueG30qYsJvmx0wfg5vaHnforFZVfNtDa46L9zqDhd97/IctLc6pW71k5HQXJ2gS7al6XggsUvQWdNZ2/Dw07hG/wtXR1VMnMN70/QIxCrvaKAgD6VkLMBKtBRTxTx2AXppgBoM6h626mwH9yiQX1H0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646420585; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=sDyMCL+WNqokqeRg1184B87VJ2cSo0YlCiIByD/SOjg=; b=Gqz7rFJKOQQuHHkgr9A5ThP75O7PFlD4xfTvUlCeofIVNU9kLocJm/Ty4NYwCmWR/aXkKDeSMejuhyns3JT42wB0f9HNbrBqQC/HqD7l5ilTpLvGb5gl91T91k4ghXEoUikq6hcVtYZFP48dXH6RzqIKL1bcjH83xF1pQWkpwT4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1646420585320558.2979664778087; Fri, 4 Mar 2022 11:03:05 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-253-s3rAJMb8PuGBmN6W4QqqVw-1; Fri, 04 Mar 2022 14:03:03 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AAA631091DA0; Fri, 4 Mar 2022 19:02:57 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8973010013C1; Fri, 4 Mar 2022 19:02:57 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 072331809CB3; Fri, 4 Mar 2022 19:02:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 224J2tQK000401 for ; Fri, 4 Mar 2022 14:02:55 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3C1E860C13; Fri, 4 Mar 2022 19:02:55 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.39.194.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2076860BF1; Fri, 4 Mar 2022 19:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646420585; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=sDyMCL+WNqokqeRg1184B87VJ2cSo0YlCiIByD/SOjg=; b=If1yO7oGWCjbSaYTldrXkCDuWBiKuoIoelM3YmSg7wrlL31ywWPHAjjX9naboD3wH/fP3U oYchwKl2pQZUaWDl3AqHKuChOabwG+VOnLn0wkQliZbiHvfcRBqrzSb8JNMAyrrUvljcdp 4qEdyy84m+TWXqYDt0QzSEBl69DTg8k= X-MC-Unique: s3rAJMb8PuGBmN6W4QqqVw-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 8/8] softmmu: remove is_daemonized() method Date: Fri, 4 Mar 2022 18:56:20 +0000 Message-Id: <20220304185620.3272401-9-berrange@redhat.com> In-Reply-To: <20220304185620.3272401-1-berrange@redhat.com> References: <20220304185620.3272401-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Kevin Wolf , libvir-list@redhat.com, Stefan Weil , Hanna Reitz , Gerd Hoffmann , Paolo Bonzini , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Eric Blake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1646420595165100001 There are no longer any users of this method, so it can be removed to prevent future accidental (mis)use. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Eric Blake --- include/sysemu/os-posix.h | 2 -- include/sysemu/os-win32.h | 5 ----- os-posix.c | 5 ----- stubs/is-daemonized.c | 9 --------- stubs/meson.build | 1 - 5 files changed, 22 deletions(-) delete mode 100644 stubs/is-daemonized.c diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h index 390f3f8396..2c375f5b49 100644 --- a/include/sysemu/os-posix.h +++ b/include/sysemu/os-posix.h @@ -57,8 +57,6 @@ int os_mlock(void); typedef struct timeval qemu_timeval; #define qemu_gettimeofday(tp) gettimeofday(tp, NULL) =20 -bool is_daemonized(void); - /** * qemu_alloc_stack: * @sz: pointer to a size_t holding the requested usable stack size diff --git a/include/sysemu/os-win32.h b/include/sysemu/os-win32.h index 4879f8731d..a81f4fa9c1 100644 --- a/include/sysemu/os-win32.h +++ b/include/sysemu/os-win32.h @@ -76,11 +76,6 @@ typedef struct { } qemu_timeval; int qemu_gettimeofday(qemu_timeval *tp); =20 -static inline bool is_daemonized(void) -{ - return false; -} - static inline int os_mlock(void) { return -ENOSYS; diff --git a/os-posix.c b/os-posix.c index f598a52a4f..bd1140ab22 100644 --- a/os-posix.c +++ b/os-posix.c @@ -232,11 +232,6 @@ void os_set_line_buffering(void) setvbuf(stdout, NULL, _IOLBF, 0); } =20 -bool is_daemonized(void) -{ - return daemonize; -} - int os_mlock(void) { #ifdef HAVE_MLOCKALL diff --git a/stubs/is-daemonized.c b/stubs/is-daemonized.c deleted file mode 100644 index 8f63325bb2..0000000000 --- a/stubs/is-daemonized.c +++ /dev/null @@ -1,9 +0,0 @@ -#include "qemu/osdep.h" - -/* Win32 has its own inline stub */ -#ifndef _WIN32 -bool is_daemonized(void) -{ - return false; -} -#endif diff --git a/stubs/meson.build b/stubs/meson.build index d359cbe1ad..3d092b808e 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -18,7 +18,6 @@ if linux_io_uring.found() endif stub_ss.add(files('iothread-lock.c')) stub_ss.add(files('isa-bus.c')) -stub_ss.add(files('is-daemonized.c')) if libaio.found() stub_ss.add(files('linux-aio.c')) endif --=20 2.34.1