From nobody Fri Apr 26 21:35:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1605781936; cv=none; d=zohomail.com; s=zohoarc; b=Zmhi6aAKfjQ3FfmLZVIVyB+o427pVvWmfUItjpmxe+dx8DvAhMlTE3MDN2v+qdx/XFItYU+mUxnj2k1z5lO3BRH/S22r1flJYSrYru6tBEvO01b16vQx9uVrC3AtOOGM7RWeVf4SKHHt8UxqXMOxZhBi+bMX408AMTVPFxVSl+Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605781936; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=2rC+fwuDbTqNMjdoQIFqO0TeNqApV0lo8QxIsVils/E=; b=Q5XYtziubc1EAMFuonVFAzCJ+UgDUHPgDeRlj/Dxsy/hy0fMcVeFKdkc3nHV6bBmuy0kQN2Ns3/333jvNAyiXS8ircsKofpRRoxdI1CPFH7T9jC7cW6OTfMC7yl4lLt2BG+oo/hfOZ439ZSYuDLqaz8vdTC/SABO8Mqdz3YiMM8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1605781936965719.6832295111593; Thu, 19 Nov 2020 02:32:16 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-543-jJgChzrWOKKmZqOTdOJ5aw-1; Thu, 19 Nov 2020 05:32:13 -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 7731CE745; Thu, 19 Nov 2020 10:32:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 456D210013BD; Thu, 19 Nov 2020 10:32:07 +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 0C0104BB7B; Thu, 19 Nov 2020 10:32:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AJAW57b004131 for ; Thu, 19 Nov 2020 05:32:05 -0500 Received: by smtp.corp.redhat.com (Postfix) id 28CA360853; Thu, 19 Nov 2020 10:32:05 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.40.208.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6B32F60843 for ; Thu, 19 Nov 2020 10:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605781935; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=2rC+fwuDbTqNMjdoQIFqO0TeNqApV0lo8QxIsVils/E=; b=R1ZPqFBIdGd0ccKLT8mWju6hBQ8MheLJDY4xjz82aHK264FJzTFntKjJXzxQTVAHvga4C7 zKk+yv8dAs5L8esyAO5RiQE2E/kr/aFez6PczF70/2u63V8pqgjkblAMATrzRf2Y0PQYTH XjjOcgAqiqmMrwz8sJzLVOh7Z5JCWJQ= X-MC-Unique: jJgChzrWOKKmZqOTdOJ5aw-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] cgroup: add stub for virCgroupNew Date: Thu, 19 Nov 2020 11:31:59 +0100 Message-Id: <0a8d5614335efa71622c0f5f40dc33c028350966.1605781914.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com 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) The previous commit exported the function but forgot to add a non-Linux stub. Signed-off-by: J=C3=A1n Tomko Fixes: 126cb34a206a44f04e364700b46426dff9f387d5 --- Pushed. src/util/vircgroup.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index e0fe1dbf3e..13df10e507 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -2820,6 +2820,17 @@ virCgroupNewPartition(const char *path G_GNUC_UNUSED, } =20 =20 +int +virCgroupNew(const char *path G_GNUC_UNUSED, + int controllers G_GNUC_UNUSED, + virCgroupPtr *group G_GNUC_UNUSED) +{ + virReportSystemError(ENXIO, "%s", + _("Control groups not supported on this platform"= )); + return -1; +} + + int virCgroupNewSelf(virCgroupPtr *group G_GNUC_UNUSED) { --=20 2.26.2