From nobody Sat May 4 15:10:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1490516891640213.1447030764209; Sun, 26 Mar 2017 01:28:11 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0DE21C05490D; Sun, 26 Mar 2017 08:28:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D659DA68E3; Sun, 26 Mar 2017 08:28:10 +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 64E2BB3481; Sun, 26 Mar 2017 08:28:10 +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 v2PGvnCt027131 for ; Sat, 25 Mar 2017 12:57:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id E1CD0825F2; Sat, 25 Mar 2017 16:57:49 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DC086825E4 for ; Sat, 25 Mar 2017 16:57:48 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 630517E9C8 for ; Sat, 25 Mar 2017 16:57:47 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id h125so5908666lfe.0 for ; Sat, 25 Mar 2017 09:57:46 -0700 (PDT) Received: from kloomba.my.domain ([31.29.231.57]) by smtp.gmail.com with ESMTPSA id r204sm987735lff.57.2017.03.25.09.57.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Mar 2017 09:57:43 -0700 (PDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0DE21C05490D Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 0DE21C05490D Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Crrf3WpH" DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 630517E9C8 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=bogorodskiy@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 630517E9C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=40eDWgvUQZ9PS8qgG91h0mWycCdv83npMKutPf7DM3w=; b=Crrf3WpH8JauF0Z+IGbEjAAu9dT3iyqlJHd8Fk1aXtu8DyM8WgWmhQySc3XYaWFvcL Qs1zt7S2bYKgXzg9Z+KciEH9BaDhrC6syvSM7yN43Nw4AWK6U1+0h/9IKUxHLQs7TJD4 0FZQKuttV78/7ZzJ4lTmAzFz+f/ACKmr+77OTnstYs4VHrpdIA4WvrsBOA/HRNhHxOEI /zaxf4tp4Q50dgtZPfH8rpN/yQcnPqL8gVdWUyiLGFCkgIdjBlF9UwqbA9skXjWvFCcP whne5TTJR+QfFBFfKOpVq83oPX/b9tmC1/VwYxerlb43a7IYGQ/fa8H52b7z5Jd3HsL/ MWiQ== 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; bh=40eDWgvUQZ9PS8qgG91h0mWycCdv83npMKutPf7DM3w=; b=MZoqUERr9uHy9euJzi4I2SfCdz7r9UzokdMCUSejI53lexGyBMwhtc+S3o+LZpyjjw wAvXnqnyp1+EQYBlnG80wgVdUA3iTvAjIJ515dLhH/2tBgUA3hijMXyxw8lIIENL2vZ2 oUbvlOiXlo7TIm0yBq/jkycNwH5OiO/YhKXACaWmWp1qyrwLsbKL8Gg8sZp590tk+97S gdD/+s0apf411nKCH5AunGtLTzgK/QTJbDGsLa4ZLzBAYJyNEXLYn/45gLDm33FAhwx5 QUhZ7ZJi/Lx5o8Qrq8+NprHYKyPKVtLhVfSMb+f6YDq6xQ0sOWR+4iGkfbn6C4Hq/7qh EfHA== X-Gm-Message-State: AFeK/H0kB83xP8vfWX4VWvdr9Aydy+96YjQis3XByJKW8dgHLDYOTopIlRhXUavJ2JvN3A== X-Received: by 10.25.227.70 with SMTP id c6mr7241187lfk.106.1490461064545; Sat, 25 Mar 2017 09:57:44 -0700 (PDT) From: Roman Bogorodskiy To: libvir-list@redhat.com Date: Sat, 25 Mar 2017 20:57:35 +0400 Message-Id: <20170325165735.22007-1-bogorodskiy@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sat, 25 Mar 2017 16:57:47 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sat, 25 Mar 2017 16:57:47 +0000 (UTC) for IP:'209.85.215.44' DOMAIN:'mail-lf0-f44.google.com' HELO:'mail-lf0-f44.google.com' FROM:'bogorodskiy@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.77 (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 209.85.215.44 mail-lf0-f44.google.com 209.85.215.44 mail-lf0-f44.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Roman Bogorodskiy Subject: [libvirt] [PATCH] virpci: fix build on non-Linux 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sun, 26 Mar 2017 08:28:11 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" virPCIGetDeviceAddressFromSysfsLink() should return virPCIDeviceAddressPtr, so return NULL in the stub instead of "-1". --- Pushed under the build-breaker rule. src/util/virpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virpci.c b/src/util/virpci.c index 546aeb550..65c108f2e 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -2945,7 +2945,7 @@ virPCIDeviceAddressPtr virPCIGetDeviceAddressFromSysfsLink(const char *device_link ATTRIBUTE_UNUS= ED) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported)); - return -1; + return NULL; } =20 =20 --=20 2.11.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list