From nobody Mon Feb 9 07:26:52 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1573847269; cv=none; d=zoho.com; s=zohoarc; b=hfI79Dn3lEYPgChFJav2V14L642Ny6boy1tKS4GZ9MgzuIqyfqv2S8mS6wBVf9MN6LhakdnhaGrwmpXQJWLO09iRKRi8eWcZK0kI9RUbU7yv3nABqpI68BS7Ja2h/0EC873ZywafDM0c1e5f3IhCmUbJ2lqk++/VG54dyhHiqEE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573847269; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=VsedHnO8/5PTidyCzXMl1mK1VG5jfp+WAJ5nNJNz8qM=; b=LQO8YKl0Xy27HA/nIoRpof+KoJaaiXsoATtJmgT5I8/+b/g4Iyun3o7nzq+NYMIGTI+BaqYlvu5Gxaj/gEXXDa6oCwE54ehnx+Y8tEZ470Xm7iPEaZGwIZqrRxpZqeQVBojPkW3s9c1wNi+kXK0wHI/UU9UxA/8Y3/X9iwUnJRw= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1573847269752430.022800644271; Fri, 15 Nov 2019 11:47:49 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iVhYR-0002cT-9m; Fri, 15 Nov 2019 19:46:51 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iVhYP-0002ao-J1 for xen-devel@lists.xenproject.org; Fri, 15 Nov 2019 19:46:49 +0000 Received: from mail-qv1-xf44.google.com (unknown [2607:f8b0:4864:20::f44]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 78fe067c-07e0-11ea-984a-bc764e2007e4; Fri, 15 Nov 2019 19:45:27 +0000 (UTC) Received: by mail-qv1-xf44.google.com with SMTP id w11so4214811qvu.13 for ; Fri, 15 Nov 2019 11:45:27 -0800 (PST) Received: from five.crux.rad.ainfosec.com (209-217-208-226.northland.net. [209.217.208.226]) by smtp.googlemail.com with ESMTPSA id y10sm4649679qkb.55.2019.11.15.11.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 11:45:25 -0800 (PST) X-Inumbo-ID: 78fe067c-07e0-11ea-984a-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=egIM9yCGWbdecCrAFUBjEjOn4j3q9tSDSDea7oC7rr8=; b=H4/BTJzhowbQudbGlUu2y2yu3ohdaDXN4m35scKXn7VM5ZTTcckffHXXFeB1lGeqfJ DljoBg2YxHm3akcFieuKNqF4E/nl+5pxVoBXZdjv8NX+kyeR/4Nte6yOhd7AYczGz6YV skZeUmO5CbL/QPjLf5RtupNah2CwrtYmBr5NmBsKlU0GC0kUOueg6aORDmQTJsSeEKDG dkwycdTBSi/NxiLcJ1PUzkwbHGPwRMMdsiz3sA5Gli+i/UJmqwXNKT0x9O3EkRf3C42m uScj3FAxoKQTHUV3KoUeruxqfgVicMX4mWKh2yR/V6VaHYnwiwVYVYZ7RjI8kmlrQwoZ dovA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=egIM9yCGWbdecCrAFUBjEjOn4j3q9tSDSDea7oC7rr8=; b=gKOCbkAGmWCcDZ2k1fgk7s4ysc46n+HbTgxAfz2LY63KWmWSDcO8/G4+0NWEna+A0V H5aIbRcCHG71ev2I0paEvbhbq7wC1GYVv9mS1GEFWCDwXHG3HWbeKONXTVgO1Ujo69em 9z3MAL+IP2fox/3iBvoEv4paQ6IbOg7WtSfeCs0KrPabaW4e3skIOc4Ou57FQSlLSooT +QCCdCZOD5idlQ09WY7sDJdfunH+4wz8JLbPdbbc/lvDBS1OZWuRjot7V+bDpPnvlZlq LdwE6uxWahh7mlxucEucuENqDqs44Wlkx4r59QSdQe3PIgr7SZfmb2tub31F609NxU8B 3w8A== X-Gm-Message-State: APjAAAWIRz79gpJiBDdIkXtZR4uHt4lYymAijvdnJivjHXoFku+gwqM7 Uw8A3aDo6uaWFIPeezT1qQ+yTAvy X-Google-Smtp-Source: APXvYqxeh+EiRrpVmslLrzkou8tKzpPqwcB8kEp9mS+xwPoIPUMchMQsqucQXHEDj6bM7E4zGo5ipg== X-Received: by 2002:ad4:4c4d:: with SMTP id cs13mr15555360qvb.165.1573847126507; Fri, 15 Nov 2019 11:45:26 -0800 (PST) From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Fri, 15 Nov 2019 14:44:29 -0500 Message-Id: X-Mailer: git-send-email 2.19.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2 22/22] golang/xenlight: add error return type to Context.Cpupoolinfo X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Nick Rosbrook , Ian Jackson , kerriganb@ainfosec.com, George Dunlap , Wei Liu Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Nick Rosbrook A previous commit that removed Context.CheckOpen revealed an ineffectual assignent to err in Context.Cpupoolinfo, as there is no error return type. Since it appears that the intent is to return an error here, add an error return value to the function signature. Signed-off-by: Nick Rosbrook --- tools/golang/xenlight/xenlight.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/golang/xenlight/xenlight.go b/tools/golang/xenlight/xenl= ight.go index 4e12cebac1..becd07b0b6 100644 --- a/tools/golang/xenlight/xenlight.go +++ b/tools/golang/xenlight/xenlight.go @@ -513,17 +513,17 @@ func (Ctx *Context) ListCpupool() (list []Cpupoolinfo= ) { } =20 // int libxl_cpupool_info(libxl_ctx *ctx, libxl_cpupoolinfo *info, uint32_= t poolid); -func (Ctx *Context) CpupoolInfo(Poolid uint32) (pool Cpupoolinfo) { +func (Ctx *Context) CpupoolInfo(Poolid uint32) (pool Cpupoolinfo, err erro= r) { var c_cpupool C.libxl_cpupoolinfo =20 ret :=3D C.libxl_cpupool_info(Ctx.ctx, &c_cpupool, C.uint32_t(Poolid)) if ret !=3D 0 { - //err =3D Error(-ret) + err =3D Error(-ret) return } defer C.libxl_cpupoolinfo_dispose(&c_cpupool) =20 - _ =3D pool.fromC(&c_cpupool) + err =3D pool.fromC(&c_cpupool) =20 return } --=20 2.19.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel