From nobody Mon Feb 9 08:10:28 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1650439921; cv=none; d=zohomail.com; s=zohoarc; b=hhQVTzHy7iAdzrLMl0SQLcdkxyM8QcutvHktAO8yvK8SRb/YyABWdEasZe7bFkXPIEZMP/d3lJjFOuJgFo8v9I8zyhPuQSW0LnuPKZBGuxjVRC54VpJQGFclDmTpGHhdBidhEcUGeHqDfJ7ObQl4Hozc+WtSFLQuOWVU0SJE6Dw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650439921; h=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=8ofN2RF9Ov3D5sC5yESVJrU8I3one2H23BuRvfynNlI=; b=kHh82WeJJKWKZUV+udN7OBAteEWiBvlXS3gqnsNP5+YjWIZgCIqIn/kcKp5b75HBREaFrXGx7DyhOBJrh1VMuW2Yb7sNrzzPWidMOZQPr6T+yhJ8zHegboCw4Ga8C1gv4+vrjDGDGt6H+vU7RCh6j4gTTQ9zHJjUnQW2pr3te4A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 16504399219931021.5397427092382; Wed, 20 Apr 2022 00:32:01 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.308940.524878 (Exim 4.92) (envelope-from ) id 1nh4o9-000745-Je; Wed, 20 Apr 2022 07:31:25 +0000 Received: by outflank-mailman (output) from mailman id 308940.524878; Wed, 20 Apr 2022 07:31:25 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nh4o9-00072n-DY; Wed, 20 Apr 2022 07:31:25 +0000 Received: by outflank-mailman (input) for mailman id 308940; Wed, 20 Apr 2022 07:31:24 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nh4o8-0006Tb-BJ for xen-devel@lists.xenproject.org; Wed, 20 Apr 2022 07:31:24 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id dfdddeec-c07b-11ec-8fbf-03012f2f19d4; Wed, 20 Apr 2022 09:31:21 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 8615D2112B; Wed, 20 Apr 2022 07:31:21 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5694C13A30; Wed, 20 Apr 2022 07:31:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id wED1E8m2X2IhXAAAMHmgww (envelope-from ); Wed, 20 Apr 2022 07:31:21 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: dfdddeec-c07b-11ec-8fbf-03012f2f19d4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1650439881; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8ofN2RF9Ov3D5sC5yESVJrU8I3one2H23BuRvfynNlI=; b=CFYyAfwKtHfiGQPN8PiSdhC2b12FJrOUyq3casjWcZCNkvp7W9stmazsqnXa4o/RhhTyeb MP/iSlvFo1wX/n/wZnwJjJeIbS2HQjVU/qQzGB2Hhj/P/NIyaGKm9k2L964JCsnPGxZTA+ GeWxLSGo7DqukzpY3u4yJFuYIlGl5tQ= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Wei Liu , Anthony PERARD Subject: [PATCH 3/4] tools/libs/guest: don't set errno to a negative value Date: Wed, 20 Apr 2022 09:31:18 +0200 Message-Id: <20220420073119.16974-4-jgross@suse.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220420073119.16974-1-jgross@suse.com> References: <20220420073119.16974-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1650439922973100001 Content-Type: text/plain; charset="utf-8" Setting errno to a negative error value makes no sense. Signed-off-by: Juergen Gross Acked-by: Andrew Cooper --- tools/libs/guest/xg_dom_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/guest/xg_dom_core.c b/tools/libs/guest/xg_dom_core.c index c17cf9f712..c4f4e7f3e2 100644 --- a/tools/libs/guest/xg_dom_core.c +++ b/tools/libs/guest/xg_dom_core.c @@ -855,7 +855,7 @@ int xc_dom_devicetree_file(struct xc_dom_image *dom, co= nst char *filename) return -1; return 0; #else - errno =3D -EINVAL; + errno =3D EINVAL; return -1; #endif } --=20 2.34.1