From patchwork Wed Apr 3 21:52:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 161708 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp833032jan; Wed, 3 Apr 2019 14:52:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZMfbwr8JRPI8YmNeGgK4SPEEtMky/7d+DD5rvQOesCBDzreCKPzmGzBNjDVGawI61Ab3k X-Received: by 2002:a37:4897:: with SMTP id v145mr2159726qka.268.1554328379727; Wed, 03 Apr 2019 14:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554328379; cv=none; d=google.com; s=arc-20160816; b=oxQbpGb8G1j3j974ZXSTJUSAgjxSWijqMNcBLMl7Ph0W3nCfOFpUukuzn1smHltGlk IPa0Z+1m5Ka0xRm5iDkc7+JfEhBm0kP1u/Jm6ZBL3ez54zQbCL30eb5sSJz+92upVy+c /AOw0dCKVRQfFOEK/SfhQaKNqJlYr0G+qc0gVaBAQ8hQTEqvHX70jhvqnVg6xqgo9pcm QVkVuqwZD0x7CDs4Z2KfEaLwNE/UUWIkMmTkjQf9rkI5LJUCWQhfKRqsnmgfJHDV3XTG fJ1D6or+u9yAsT7MxRXKm97yZ5f9sYoWR55HfIRMFdAmwJ4w64nsk0tM45meUgR0dMob IV+g== 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:message-id:date:to:from:delivered-to; bh=OF9gEzWEkyB3np9HbpXKmc5u4TcLu4WZc11rHX+EvAw=; b=FT8qaH5jPz8q0qDEJkaf4oq/XeqA+649LX2MObiQWo8pXy95ky3WrNGeKkLYeGFKMn sHCgJtFJJfjhQGoxFDMHmcU9wdHdV9oN41zObNqFOF92v/GCG/xAlTsWqs8cjXe0TLMt kP0WpzWIF7JZP/WLha+lm3u1uwpyWAo8xevDlC0Ypq6OB7qjf8m/WA2cwfM8EA3/Nauy jLGsCuim+wB9ME3M3tiawWGiDUpSXpN14/BDzxsL2n0Kb9r/v9GkTLVnA20895Qk6vNR H88Y1CFajVzXvk7QpXPe21GFeO8KLRoXdreCQy16wGmlFBg5fBJrzWSkl/Vq7a5DSH0k gnWQ== 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 a28si3362049qta.158.2019.04.03.14.52.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 14:52:59 -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-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2BC4E30024D5; Wed, 3 Apr 2019 21:52:58 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0D7EF19C69; Wed, 3 Apr 2019 21:52:57 +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 57D37181AC43; Wed, 3 Apr 2019 21:52:54 +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 x33LqqxW013194 for ; Wed, 3 Apr 2019 17:52:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9F0EB61082; Wed, 3 Apr 2019 21:52:52 +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 21DC760C47; Wed, 3 Apr 2019 21:52:50 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 3 Apr 2019 17:52:42 -0400 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 0/6] Some '#pragma once' conversions 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.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 03 Apr 2019 21:52:58 +0000 (UTC) danpb added a BiteSizedTask for '#pragma once' conversions https://wiki.libvirt.org/page/BiteSizedTasks#Switch_headers_to_use_.23pragma_once We don't currently have any usage in the code. Turns out we need some syntax check tweaks to make things happy. This series fixes those, and adds a few conversion examples. Tested on Fedora30 and freebsd12.0 with nodedev hal driver build Cole Robinson (6): build-aux: header-ifdef: Fix typos build-aux: header-ifdef: Handle #pragma once node_device_driver.h: Use #pragma once node_device_udev.h: Use #pragma once node_device_hal.h: Use #pragma once vircgrouppriv.h: Use #pragma once build-aux/header-ifdef.pl | 11 ++++++++--- src/node_device/node_device_driver.h | 21 +++++++++------------ src/node_device/node_device_hal.h | 5 +---- src/node_device/node_device_udev.h | 13 +++++-------- src/util/vircgrouppriv.h | 9 +++------ 5 files changed, 26 insertions(+), 33 deletions(-) -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list