From nobody Mon Feb 9 19:55:35 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.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 (zohomail.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=1577114343; cv=none; d=zohomail.com; s=zohoarc; b=jhPQ0ntbq0WBtJG24voPTZYT5Y5sbE3pBOFu8wMP/mmv486v69syOkHTz1eCAKdq4PQZwCAG1UcNyr/rgHTP67XDEdVzA43c6lVOfbVbq27kSECAmhnqodUvCRZRLRSgjh1KoPn6/XEbVWlp15tsyaUzonimbfUel4jBypbq6z0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577114343; 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=hle62Fph7nFi2h4CNqcZxnOP2upLxp91GFzP0fYt7OY=; b=KEdmtBWg3MwbTHgeFHg3LHWd1RWIKc3uTh4p+QlwPHmiuo62x3h1JTxpFST1uvKytiYckV5apHniZwCxEFRPe0oQioQogsBJCauRd9OwNK40pk77wSq4LSIE/4hnuUhh4Jv7yeJ0XsZCvG5i1ZHxv0d7w/Iz6OwdC23Q/OEKhTM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.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 1577114343746707.0557935803738; Mon, 23 Dec 2019 07:19:03 -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 1ijPTN-0006Rs-Re; Mon, 23 Dec 2019 15:18:17 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ijPTM-0006RE-He for xen-devel@lists.xenproject.org; Mon, 23 Dec 2019 15:18:16 +0000 Received: from mail-qv1-xf44.google.com (unknown [2607:f8b0:4864:20::f44]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6488a966-2597-11ea-88e7-bc764e2007e4; Mon, 23 Dec 2019 15:17:54 +0000 (UTC) Received: by mail-qv1-xf44.google.com with SMTP id f16so6465194qvi.4 for ; Mon, 23 Dec 2019 07:17:54 -0800 (PST) Received: from four.lan (cpe-67-241-56-252.twcny.res.rr.com. [67.241.56.252]) by smtp.gmail.com with ESMTPSA id u15sm5823907qku.67.2019.12.23.07.17.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 07:17:53 -0800 (PST) X-Inumbo-ID: 6488a966-2597-11ea-88e7-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 :in-reply-to:references; bh=F/xV9O13I7GQ/UCRCjsUvyaympRarisj/rLEyIKgRFk=; b=pHMlx/8LE4XvEKQdtXEU5JugHWGVSHtPu5CB0TuFY+vwS7ud3dp6GCiMKqPWuoIc0J KeMrfC+AfndLLXMxb1XFU/WAgqW23rF/kZbi4q/eNA1VSv0W0FBUhK5irNio9wnHZdYU K3v0/jm5/q0IWBg9cQHMYRrLYeSJwgj9bRzWfefPjD30Z3TLNe/xvDCdGICKMnlGu3N8 q2O1oJD/RVEeOfQx55nRP9qKxuQeEyDWWCXT+sejzxosO1bMJ8bvxuhoSwa32D0vcCcK 0pJPq2e3lI13cUd2GrcPciO97d8HvvxxqafyfIqdYluGT1qPX0TB9Qn71dty/eCZJCzX uZyw== 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:in-reply-to:references; bh=F/xV9O13I7GQ/UCRCjsUvyaympRarisj/rLEyIKgRFk=; b=KMmxKm1iD+ddxhpK42nDdmfhnyUq1LgM+o3NSsZZpIxmCSYZDXnZldO6xAbggenAV1 wAaOUXxtcvG1r1C7ZslVKyQDlwtcFhEt4BhmvJAWrzSIVJ2pfoEGky6EsVNBldJa2Otd OWfgOQI57aT2dVfQgSzA19dnadxIvOiQJ3xd9kMLFaAAMfNt6p30tzIGtAhof9yULQ/u uzlgubvFAX35aSkGaOXzQf/1LqIYt5zVOC9VmPw13GulyPfUakEqLgDDpNjLw18bKOpO Rp/giE7FKjjfOQ+9gonis23ziVGg7I+q35vLrQY3b9I1Lfwz6bBvZqZ3uanGAK6+ho13 axpQ== X-Gm-Message-State: APjAAAUampyArhidBPb109Nj90sOZnjW9hQgzp4qRWblybT32SYXHWRg CfNqNom667Hfw7keVGDkn34j5YAo X-Google-Smtp-Source: APXvYqwZ8k+GIdIvG464d7bb9g5hI8ovmp+u+tGC7954ukk610VnYppuqyyat1ONvNOLglX4BesNEQ== X-Received: by 2002:a0c:c389:: with SMTP id o9mr25177144qvi.232.1577114273901; Mon, 23 Dec 2019 07:17:53 -0800 (PST) From: Nick Rosbrook X-Google-Original-From: Nick Rosbrook To: xen-devel@lists.xenproject.org Date: Mon, 23 Dec 2019 10:17:07 -0500 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Subject: [Xen-devel] [PATCH v4 6/6] 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 MIME-Version: 1.0 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) 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 Reviewed-by: George Dunlap --- 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 5f14cab6ce..237f26bce9 100644 --- a/tools/golang/xenlight/xenlight.go +++ b/tools/golang/xenlight/xenlight.go @@ -504,17 +504,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.17.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel