From nobody Tue May 13 18:30:10 2025 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.zohomail.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; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1530481472844322.5475270548004; Sun, 1 Jul 2018 14:44:32 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 835634E028; Sun, 1 Jul 2018 21:44:31 +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 491769495C; Sun, 1 Jul 2018 21:44:31 +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 ED2C118037F1; Sun, 1 Jul 2018 21:44:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w61LiDZn009038 for ; Sun, 1 Jul 2018 17:44:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3F6A530C43AE; Sun, 1 Jul 2018 21:44:13 +0000 (UTC) Received: from mx1.redhat.com (ext-mx16.extmail.prod.ext.phx2.redhat.com [10.5.110.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3826030C43B0 for ; Sun, 1 Jul 2018 21:44:11 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) (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 B85503082A36 for ; Sun, 1 Jul 2018 21:44:00 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id y15-v6so5072183pll.9 for ; Sun, 01 Jul 2018 14:44:00 -0700 (PDT) Received: from centos.localdomain ([157.37.164.55]) by smtp.gmail.com with ESMTPSA id v68-v6sm15006933pfv.143.2018.07.01.14.43.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jul 2018 14:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=odpFJM723TKvOapMlzItA1zQwXCPm70WhWYPrhxGT+Q=; b=p0kkWycZnCT2txmFMA5aqhaRy0tz4kSDNqGoYHqHdJDOgAH4pOZmki8w7WBZfmyWNL A3HT+TEnN/VmYgU6yHrTgf+0gqrVChvasVG+KJ9k2TctqTIkx8GbMm3zNeRZ348+DFsG ORt2t3srejcpAGZME45LCgfzdlYv/vZrcERU8Tonzr8ot2vG6v6wzSUdjZsWAIrfs+5U g/ZIoXnAgP777nFc9G56TYJKP6UBVWvkoLZIM+sAp30D6ZfeJzJiLkrzIkBSqJNWur5G E69Gq9hXBw1RnO3XLX2d4CtE6mW705ssY9uwzVZcIp/0Wjp2t3bW5Y4T5lxA4WLO3hJT 8UEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=odpFJM723TKvOapMlzItA1zQwXCPm70WhWYPrhxGT+Q=; b=YjNfiDSMXo2rT4cFOR1QJDWbExoEiE7Y62+3sSfd58ITMC2huS0KYWSPH8FshN+4pD 7fmq1zaNu3WpUfL5pvUkPdq96MZKCxIC4Io9t78Z1AfJGOxtN9s92CwGbqz9b/C2g7g2 05v1r81A/a9xfcdDIUSdDYhl6HYPBMP9pfZUky5ZCBJQofvFjaGWa5yOi53bI5xFvS8T LZfiPEQE2bd20y+aciMPLqievul4+l3sihSZktIFp/OW+z6+1gO6Q1LrJk5Ywj1jQbJP I9RRM7kef2zKP/RGwZDf5fOoJfOM7sF5gWBNpsPaVnKqtMyUi1gTK/iLiCX0xP133cfh xtzg== X-Gm-Message-State: APt69E2WDafsQA9iCfwIfGyS5odlOR+yyPEIQVNJXEYg+oVVxox0XBP3 Njvrsz/B22RBx+mNxrbDkgFuSP0k X-Google-Smtp-Source: ADUXVKK26N1UiJTM1aqwMNvDg/3hhfuDudC7+JBP8DuKYoXYUou7vbk/Sp/qiBkGV8Q5x/TMHBLEjw== X-Received: by 2002:a17:902:22:: with SMTP id 31-v6mr23655369pla.332.1530481439968; Sun, 01 Jul 2018 14:43:59 -0700 (PDT) From: Sukrit Bhatnagar To: libvir-list@redhat.com Date: Sat, 30 Jun 2018 14:30:09 +0530 Message-Id: <1530349239-22049-6-git-send-email-skrtbhtngr@gmail.com> In-Reply-To: <1530349239-22049-1-git-send-email-skrtbhtngr@gmail.com> References: <1530349239-22049-1-git-send-email-skrtbhtngr@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Sun, 01 Jul 2018 21:44:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Sun, 01 Jul 2018 21:44:00 +0000 (UTC) for IP:'209.85.160.67' DOMAIN:'mail-pl0-f67.google.com' HELO:'mail-pl0-f67.google.com' FROM:'skrtbhtngr@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.766 * (DATE_IN_PAST_24_48, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 209.85.160.67 mail-pl0-f67.google.com 209.85.160.67 mail-pl0-f67.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.45 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v3 05/35] cfg.mk: no trailing semicolon at line invoking VIR_DEFINE_* cleanup macro 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Sun, 01 Jul 2018 21:44:32 +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" Add rule to ensure that there is no semicolon at the end of the line where a VIR_DEFINE_* cleanup macro is invoked. Signed-off-by: Sukrit Bhatnagar --- cfg.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cfg.mk b/cfg.mk index 7949fc8..d292005 100644 --- a/cfg.mk +++ b/cfg.mk @@ -1085,6 +1085,15 @@ sc_require_attribute_cleanup_one_per_line: halt=3D'there must be only one variable declaration per line when usin= g cleanup macro' \ $(_sc_search_regexp) =20 +# Rule to ensure that there is no trailing semicolon at the line on +# which a cleanup funciton is defined using a VIR_DEFINE_* macro. +sc_require_attribute_cleanup_no_semicolon: + @prohibit=3D'VIR_DEFINE_AUTOPTR_FUNC\(.+\)\s*;' \ + in_vc_files=3D'\.[chx]$$' \ + halt=3D'cleanup macro defining a function must not end with a semicolo= n' \ + $(_sc_search_regexp) + + # We don't use this feature of maint.mk. prev_version_file =3D /dev/null =20 --=20 1.8.3.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list