From nobody Sun Feb 8 10:03:32 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=1571576151; cv=none; d=zoho.com; s=zohoarc; b=dX9Xc9YBzEcwsYbPhpR2Nbb+84DzoUF7ocp/j0K8IozPEH3GX2/R6LHxrZhOzVOc4Krh1Jh6aEvXn8IoLZR35O+w++FMBdizebxKbEDOY8MIGSRfDwvyldpyNjAPmJf1BulhMmrNrml6I7JHDCkjW+5Ol7kouxN7uKrhC4H1Prs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571576151; 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=8ICjfFVHtJGnyLEhaSADv9+rwZoem8qt1RG6CJ0hVrw=; b=KARHsjH2EQxVlyGnnw9EKWZdFSyCdAsokOIXBIvbc6x5EJ8FMTijEc6aVI9inVJXCP94uxBx1hFQGaDrvYVXlv1pvx6DBeTxprAYTwHIKjAs+b4um7TSY7nRdINV17eRpduCrErS2/JZ/owQIYiUC5RB/wwJS007B8wFtR2NA0A= 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 1571576151353413.5461262586539; Sun, 20 Oct 2019 05:55:51 -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-147-cz6yk_RlNma2qQti53FKbw-1; Sun, 20 Oct 2019 08:55:46 -0400 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id A8F685E4; Sun, 20 Oct 2019 12:55:41 +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 A74931EC; Sun, 20 Oct 2019 12:55: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 E654D18089C8; Sun, 20 Oct 2019 12:55:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9KCtWaK023306 for ; Sun, 20 Oct 2019 08:55:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id 633E0196AE; Sun, 20 Oct 2019 12:55:32 +0000 (UTC) Received: from lpt.redhat.com (ovpn-200-23.brq.redhat.com [10.40.200.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9DF48194B9 for ; Sun, 20 Oct 2019 12:55:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571576150; 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=8ICjfFVHtJGnyLEhaSADv9+rwZoem8qt1RG6CJ0hVrw=; b=S4mQJqir9RImyGUw6M+aQxhM3GD+x36WcPuTr24Inm0UzHzf101+xtsq61p3uG+HVa8mNg ExOpBhS69bsxj0TBLxgQ4ia77T95EDUbE3cIUCEAriM/bTFL0LYnc/T/B4/i58iuVBjyz/ Y6acd+5IBTjMbdMN69kldrOGZPYm1Rs= From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Sun, 20 Oct 2019 14:55:19 +0200 Message-Id: <91f9e142d60e88fedf9debaea30f7c893862ca48.1571575889.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 01/34] scripts: introduce a macro file for coccinelle 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-MC-Unique: cz6yk_RlNma2qQti53FKbw-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" Signed-off-by: J=C3=A1n Tomko --- scripts/cocci-macro-file.h | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 scripts/cocci-macro-file.h diff --git a/scripts/cocci-macro-file.h b/scripts/cocci-macro-file.h new file mode 100644 index 0000000000..a76ba533b4 --- /dev/null +++ b/scripts/cocci-macro-file.h @@ -0,0 +1,39 @@ +/* + * cocci-macro-file.h: simplified macro definitions for Coccinelle + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see + * . + * + * To be used with: + * $ spatch --macro-file scripts/cocci-macro-file.h + */ + +#pragma once + +#define ATTRIBUTE_NONNULL(x) +#define ATTRIBUTE_PACKED + +#define G_GNUC_WARN_UNUSED_RESULT +#define G_GNUC_UNUSED +#define G_GNUC_NULL_TERMINATED +#define G_GNUC_NORETURN +#define G_GNUC_NO_INLINE +#define G_GNUC_FALLTHROUGH +#define G_GNUC_PRINTF(a, b) + +#define g_autoptr(x) x##_autoptr +#define g_autofree +#define g_auto + +#define BAD_CAST --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list