From nobody Mon Feb 9 00:30:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 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=1571752908; cv=none; d=zoho.com; s=zohoarc; b=XYZIDWw4GkBG2AFaQBAzbjsjZ+sIdJyV4cUw4IbmsRd0OQ7W2niK6aCLpOQjEsPFaiOH4OqDStNZ71qXQa4GrwpppX3WPJZcasVOlzfi+zluHoBMHoRY7hx6r7jbZOUZMPFeIWsGu/nNhRBtwfNc9tY2Qp6DHxUjpdcyySfA6A4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571752908; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vHGqMww40XpakK7jhVk8ssmv065PufEHIyPuaOV0yrY=; b=MRYyCU5DO41rGNISBPxgHrc4vjnA7FcFTxsbaOOXY3TPbOtvXEVCZ68RYrs8dFalNpQ5vTcDb8BInlm5LJSBuNsPeBBbk39uaUUGBQ6gfe1zOdMKnRUpp9nkbn/KmWNNoaBSXPbFP0cBzbAFSk1S5wPnLTJfqlYJ57NCtpwpj4Q= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 15717529088221022.8977073616876; Tue, 22 Oct 2019 07:01:48 -0700 (PDT) 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-3-3VfnxFLmNye0rijokHYdJA-1; Tue, 22 Oct 2019 10:01:44 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 81CDE801E73; Tue, 22 Oct 2019 14:01:39 +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 4FAE75C1D4; Tue, 22 Oct 2019 14:01:39 +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 E0E243FB42; Tue, 22 Oct 2019 14:01:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9ME12CX002946 for ; Tue, 22 Oct 2019 10:01:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id 765DE6012D; Tue, 22 Oct 2019 14:01:02 +0000 (UTC) Received: from moe.redhat.com (unknown [10.43.2.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2B976012C for ; Tue, 22 Oct 2019 14:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571752907; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=vHGqMww40XpakK7jhVk8ssmv065PufEHIyPuaOV0yrY=; b=fiEs+Qbj9oDJy3594m/NaLP1Y36qJCWlqrgPdoswqd7H5flTFkFpOt4Gp8whR0aFuJCs7H 0U53odM0vf9IkZfC8xDRpUm0dbxAPfYB1naf1PKiIhPIuXkM4+fXY7IuCF86IyWIZbkeO0 Wr0NaIRa5n1Azsaxrz7BZn5bOJnuZTI= From: Michal Privoznik To: libvir-list@redhat.com Date: Tue, 22 Oct 2019 15:58:12 +0200 Message-Id: <274e5ded8e0530e42cbf3b7784cccc0b9a599570.1571752582.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 68/75] virpcimock: Make @fakerootdir static 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.79 on 10.5.11.16 X-MC-Unique: 3VfnxFLmNye0rijokHYdJA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Since we are not passing the @fakerootdir variable to any inline function anymore, we can make the variable static. Signed-off-by: Michal Privoznik --- tests/virpcimock.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/virpcimock.c b/tests/virpcimock.c index 0d502db68c..7e4554a1dc 100644 --- a/tests/virpcimock.c +++ b/tests/virpcimock.c @@ -39,11 +39,7 @@ static int (*real_close)(int fd); static DIR * (*real_opendir)(const char *name); static char *(*real_virFileCanonicalizePath)(const char *path); =20 -/* Don't make static, since it causes problems with clang - * when passed as an arg to virAsprintf() - * vircgroupmock.c:462:22: error: static variable 'fakesysfsdir' is used i= n an inline function with external linkage [-Werror,-Wstatic-in-inline] - */ -char *fakerootdir; +static char *fakerootdir; =20 /* To add a new mocked prefix in virpcimock: * - add the prefix here as a define to make it easier to track what we --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list