From patchwork Wed Apr 3 21:52:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 161713 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp833205jan; Wed, 3 Apr 2019 14:53:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5rIwpUGc8k3vtT/+VPrJIeyO4d1csHMr2KBJ5w9KUBfWgZoCsZ27TGVeDkKBU3atcGtMV X-Received: by 2002:a0c:d4a2:: with SMTP id u31mr1800501qvh.139.1554328397104; Wed, 03 Apr 2019 14:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554328397; cv=none; d=google.com; s=arc-20160816; b=JbEmSReAT6i+mrHPF/u76tcZszXCIxjxryh9IqC18iwBGW31OTR27paMU7uIa4SocX r5s85VSoGvLi/UvxRb88cim47jPoBjOWf4cLUfDy0L56j2LXM5f+gnqFUHjdlNwzCN7l ehmezEUZG9BG4cO4xLF0gVkcKjDdCbfJB3pbn5K+VCDMJi1hMi2z8Tq/REp6l+dYwkDn mhPldlplo0MWq4aijt23IUu27FDUrdqU/LrNWPOXr9e1b9vC9smNNhR2hSlXBahSfAuE KGqdjbJyNcvRQrFT+LyiQ93OhmZEYJi+XvwRbtqODqwKElKq62lEq7DQ1CRjrJLjPPwR rhFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :delivered-to; bh=Sjp1Bn4o9xLmHxAs8Ln6b/7TcuEBPqgX3/TcyNfFyIA=; b=J2R6QH6VwfaVJuKzHDRoFTZ7JeLQVyzL5sHb5/iiKZKERFddOpuJeymdXBLdtqyOEM Sjzk+AdtMFF9pS6XQtmnP/SFGfPWIf9yjJwkHnpx37BlqfkAA5bO09Sq8Q54hWWWPnIH KMKrUc5hTkuYjFoq9WzLGtPs4zu2Ho8sh/f1Pfoy6Nya4xFNHQSuZqCeQXBUXgSppGxj yGKYLQTlIo86HShXcMwWWJqzUP4MoW/1pCKUGp3MOI95UUL34m8dykALnoRZ7zHSOrnm X7vmJWJ5wBD5GZ19o8JLFQzHGcW9/rahs89pOacQ2iR7tOhD20yFg4T+b7v8wtV36K38 uNUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id d26si8382880qkk.57.2019.04.03.14.53.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 14:53:17 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A7992307E05C; Wed, 3 Apr 2019 21:53:15 +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 8262B643EC; Wed, 3 Apr 2019 21:53:15 +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 44B1D3FB16; Wed, 3 Apr 2019 21:53:15 +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 x33Lqwmi013225 for ; Wed, 3 Apr 2019 17:52:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id B66E5BA9B; Wed, 3 Apr 2019 21:52:58 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.redhat.com (ovpn-120-38.rdu2.redhat.com [10.10.120.38]) by smtp.corp.redhat.com (Postfix) with ESMTP id 53F3861082; Wed, 3 Apr 2019 21:52:58 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 3 Apr 2019 17:52:46 -0400 Message-Id: <2ae9bc71554fc73a6120a768c82b1ee4ff3e0f38.1554328223.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 4/6] node_device_udev.h: Use #pragma once 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Wed, 03 Apr 2019 21:53:16 +0000 (UTC) Signed-off-by: Cole Robinson --- src/node_device/node_device_udev.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/src/node_device/node_device_udev.h b/src/node_device/node_device_udev.h index 8c1d8fec1d..996677dfe0 100644 --- a/src/node_device/node_device_udev.h +++ b/src/node_device/node_device_udev.h @@ -18,13 +18,10 @@ * . */ -#ifndef LIBVIRT_NODE_DEVICE_UDEV_H -# define LIBVIRT_NODE_DEVICE_UDEV_H +#pragma once -# include +#include -# define SYSFS_DATA_SIZE 4096 -# define DMI_DEVPATH "/sys/devices/virtual/dmi/id" -# define DMI_DEVPATH_FALLBACK "/sys/class/dmi/id" - -#endif /* LIBVIRT_NODE_DEVICE_UDEV_H */ +#define SYSFS_DATA_SIZE 4096 +#define DMI_DEVPATH "/sys/devices/virtual/dmi/id" +#define DMI_DEVPATH_FALLBACK "/sys/class/dmi/id"