From nobody Fri Apr 26 08:42:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1617183292; cv=none; d=zohomail.com; s=zohoarc; b=XTICLBtRXehc9d3zdDPmS7M1ITNQAJwnB+I2iARlIIXVt/kXGgZAfNuy/u69pfZzxJoX+qoKeTl8/8aVSi/GsfzTVlqxC1pQspW0smE+QayspFsR62xgvWDJoQ9IPsM5r4VoWwwA1vf9+iUf6uy4ds5aQOkpq3WMfyLZeh/4zpI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617183292; 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=d3MhALmcVhwmmxx9OLT5/OIbf/Q+nTVB7F+c5L/q4TI=; b=jgtkXLfPsX31aGOGeS/gZasp/EptpkS/AhsgSiHFBxFtuPfmXAMjy9cptW+dGfzoo3cDbDfQZqT6W4ZZI+JyVnq4oa3XG4LCczbayzCi8j3thBy/2pbIQje3W/EC0sBbVUOZitSd/V5nHPOlTFpjEU+vwntZBWU9k5LU47rOzlA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1617183292297824.1230866451095; Wed, 31 Mar 2021 02:34:52 -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-307-DMLKDseeNLWwF1HraqRciQ-1; Wed, 31 Mar 2021 05:34:48 -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 05B498030D5; Wed, 31 Mar 2021 09:34:43 +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 CB1265C241; Wed, 31 Mar 2021 09:34:41 +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 5441F4BB7C; Wed, 31 Mar 2021 09:34:37 +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 12V9YZ0H005081 for ; Wed, 31 Mar 2021 05:34:35 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5E59819C59; Wed, 31 Mar 2021 09:34:35 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id B9DB119C44 for ; Wed, 31 Mar 2021 09:34:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617183291; 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=d3MhALmcVhwmmxx9OLT5/OIbf/Q+nTVB7F+c5L/q4TI=; b=TQvY5Ng+tVvIlhFTZ0QnWVVSLVq3lpdrPxvgxwE/550nTIZIG4YRW1+7lZAKgJWDVlJA2X BqD7tDUjMuUJGTXIimiydpH07m6HlBmrlu3KlAJk8ww4TKlVyni8N4tcW7veO/X447h05I 5LYtfwkafTLiz2yHvvzl2PsB/iibwIc= X-MC-Unique: DMLKDseeNLWwF1HraqRciQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 1/6] syntax-check: Remove check for proper spelling of 'Red Hat' Date: Wed, 31 Mar 2021 11:34:24 +0200 Message-Id: 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 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 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Don't single out this one, and also don't waste computational resources on it. Signed-off-by: Peter Krempa --- build-aux/syntax-check.mk | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 51a498a897..1dac418008 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -793,18 +793,6 @@ sc_prohibit_long_lines: halt=3D'Wrap long lines in expected output files' \ $(_sc_search_regexp) -sc_copyright_format: - @require=3D'Copyright .*Red 'Hat', Inc\.' \ - containing=3D'Copyright .*Red 'Hat \ - halt=3D'Red Hat copyright is missing Inc.' \ - $(_sc_search_regexp) - @prohibit=3D'Copyright [^(].*Red 'Hat \ - halt=3D'consistently use (C) in Red Hat copyright' \ - $(_sc_search_regexp) - @prohibit=3D'\' \ - halt=3D'spell Red Hat as two words' \ - $(_sc_search_regexp) - # Prefer the new URL listing over the old street address listing when # calling out where to get a copy of the [L]GPL. Also, while we have # to ship COPYING (GPL) alongside COPYING.LESSER (LGPL), we want any @@ -1878,9 +1866,6 @@ exclude_file_name_regexp--sc_bindtextdomain =3D .* exclude_file_name_regexp--sc_gettext_init =3D ^((tests|examples)/|tools/vi= rt-login-shell.c|src/util/vireventglib\.c) -exclude_file_name_regexp--sc_copyright_format =3D \ - ^build-aux/syntax-check\.mk$$ - exclude_file_name_regexp--sc_copyright_usage =3D \ ^COPYING(|\.LESSER)|build-aux/syntax-check.mk$$ --=20 2.29.2 From nobody Fri Apr 26 08:42:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1617183293; cv=none; d=zohomail.com; s=zohoarc; b=QBBeENwrRFL2TJWE04mrOsHPbtMH6lHjjs2UgeXjanZ8Ams4OSyZE81g0S9Rwty9MH+NnwKMnPVOZPzZ7TG6nqZL2T2I/abFDQ0cim1vrja6nS4s9varOgeS69gR65dkGLRwJm3ej2vn+d9CT2YXGm+bE0vg19Yy9dC40ixWUbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617183293; 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=ksVsx+n32m9uWwVYzkfPa/JehKpK1KQ7Ozt74gpuxwg=; b=J2itWHv0MpKjK1paCD4XxeIdGTAvEAa6It5RMqGJOepk+X2qp1APeulBza6oZzp7pMIZpDp2fcFrriL4jlm5NsEKUJUAWUsW7mcheazph86lr+bGiM2e2urjQmrzyUittNxgJIb7C65K3vR31FfNb6KAknZFdn4NwdIuSksvxmg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1617183293278635.1416667689978; Wed, 31 Mar 2021 02:34:53 -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-137-Pnoc0ZcgMF-TO0E5ZqIlHg-1; Wed, 31 Mar 2021 05:34:49 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 178715B365; Wed, 31 Mar 2021 09:34:42 +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 CD484A8446; Wed, 31 Mar 2021 09:34:41 +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 870121809C84; Wed, 31 Mar 2021 09:34:38 +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 12V9Yaac005095 for ; Wed, 31 Mar 2021 05:34:36 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7988C19C59; Wed, 31 Mar 2021 09:34:36 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id CA3B919C44 for ; Wed, 31 Mar 2021 09:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617183292; 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=ksVsx+n32m9uWwVYzkfPa/JehKpK1KQ7Ozt74gpuxwg=; b=KeMDka6Q1yt8FJob+3LvlV3MfWd1DnEeS8vl64UOkbHBUkuul+t/kvhm2aqX7DPlqZa2E/ FXj4aQpzWNbbZy1dnFezy1U/d5HS4jWh6knTPx8mSYw46Z6JRzQHqlffgAMWamlUnrwOWd IX9IC5JwE+DGBl/Jt7aCCA2r6xq8S/g= X-MC-Unique: Pnoc0ZcgMF-TO0E5ZqIlHg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 2/6] syntax-check: Clean up check for g_auto* Date: Wed, 31 Mar 2021 11:34:25 +0200 Message-Id: <741775f23315ce395a39ebdebc041281372b3726.1617183249.git.pkrempa@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 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.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Remove the old libvirt variants that are no longer in use and include g_autostringlist. Signed-off-by: Peter Krempa --- build-aux/syntax-check.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 1dac418008..b03441d4cd 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1115,7 +1115,7 @@ sc_prohibit_backslash_alignment: # Rule to ensure that variables declared using a cleanup macro are # always initialized. sc_require_attribute_cleanup_initialization: - @prohibit=3D'((g_auto(ptr|free)?)|(VIR_AUTO((FREE|PTR|UNREF|CLEAN)\(.+\)|= CLOSE|STRINGLIST))) *[^=3D]+;' \ + @prohibit=3D'((g_auto(ptr|free|slist)?)|VIR_AUTOCLOSE)) *[^=3D]+;' \ in_vc_files=3D'\.[chx]$$' \ halt=3D'variable declared with a cleanup macro must be initialized' \ $(_sc_search_regexp) --=20 2.29.2 From nobody Fri Apr 26 08:42:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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=1617183364; cv=none; d=zohomail.com; s=zohoarc; b=EXDuOXp6N0+LybqE+1/46JTKEYBvlO1VVNtvRhCEHKzCfz6mv6DqAoVKDhoLZMKXO6A9yc4VWhPO0PgYPvL0UF9Xg5o8gOjBVZ0pceYQyXfPc6eHXRWR6z4roayb/XnQMZjN4C++iRQx3XlNmoTEoFde5oAmWED0h6ycWZ5Yb0M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617183364; 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=AJBp0EZcskc2T2pprZl7mnE5HtYoqWego4cbMBGqLeg=; b=DgfE+YoFX+dJ6A6ZwttyTBVJSYlCTVLvikcPvi8B652uM6j6uyepFKnOLFGRfpaIFLR6JhxuER5xOwLNKAhv6Ncj4ufzToyaqhERHYOH+tjImOf1Eg0JxQjSqbNVTizRl01OHXtDE10UNv/zyPXl/M+gSUxx0HR/vgZDm0tC+dQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1617183364026695.0276576630083; Wed, 31 Mar 2021 02:36:04 -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-448-guwobJC-Nw67BrLn0yL3sg-1; Wed, 31 Mar 2021 05:35:09 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 886D35B368; Wed, 31 Mar 2021 09:35:04 +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 60B296F452; Wed, 31 Mar 2021 09:35:04 +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 0F6384A7CA; Wed, 31 Mar 2021 09:35:04 +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 12V9Yb2H005106 for ; Wed, 31 Mar 2021 05:34:37 -0400 Received: by smtp.corp.redhat.com (Postfix) id 98CFB19C59; Wed, 31 Mar 2021 09:34:37 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id EABBC19C44 for ; Wed, 31 Mar 2021 09:34:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617183362; 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=AJBp0EZcskc2T2pprZl7mnE5HtYoqWego4cbMBGqLeg=; b=fJ4r+FH4/P3gikeLEX7Dap5NRhY1wti8FnVjir4/vGOTHnu+bmuknxApBQsTJWOJLCQ++4 5r4s8dK7EZ0hBXFXj3H9xYEgKfnU7bzb+WoKYEMJ5gxTzpLfVOVszgBOsETMSB2Oey5FLh AtX6cRgx7GNc65Lo0huPybSz5kn690U= X-MC-Unique: guwobJC-Nw67BrLn0yL3sg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 3/6] syntax-check: Remove used header checks for gnulib modules Date: Wed, 31 Mar 2021 11:34:26 +0200 Message-Id: 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 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.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" We removed gnulib support, so all the checks whether a header is included only when it's used are pointless now. Signed-off-by: Peter Krempa --- build-aux/syntax-check.mk | 96 --------------------------------------- 1 file changed, 96 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index b03441d4cd..c1134d6a02 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1415,97 +1415,10 @@ endef sc_prohibit_assert_without_use: @h=3D'assert.h' re=3D'\new(file =3D> "/dev/stdin")->as_string'|sed 's= /\?://g' -# Note this was produced by the above: -# _xa1 =3D \ -#x(((2n?)?re|c(har)?|n(re|m)|z)alloc|alloc_(oversized|die)|m(alloc|emdup)|= strdup) -# But we can do better, in at least two ways: -# 1) take advantage of two "dup"-suffixed strings: -# x(((2n?)?re|c(har)?|n(re|m)|[mz])alloc|alloc_(oversized|die)|(mem|str)du= p) -# 2) notice that "c(har)?|[mz]" is equivalent to the shorter and more read= able -# "char|[cmz]" -# x(((2n?)?re|char|n(re|m)|[cmz])alloc|alloc_(oversized|die)|(mem|str)dup) -_xa1 =3D x(((2n?)?re|char|n(re|m)|[cmz])alloc|alloc_(oversized|die)|(mem|s= tr)dup) -_xa2 =3D X([CZ]|N?M)ALLOC -sc_prohibit_xalloc_without_use: - @h=3D'xalloc.h' \ - re=3D'\<($(_xa1)|$(_xa2)) *\('\ - $(_sc_header_without_use) - -sc_prohibit_cloexec_without_use: - @h=3D'cloexec.h' re=3D'\<(set_cloexec_flag|dup_cloexec) *\(' \ - $(_sc_header_without_use) - -sc_prohibit_posixver_without_use: - @h=3D'posixver.h' re=3D'\' \ - $(_sc_header_without_use) - -sc_prohibit_safe_read_without_use: - @h=3D'safe-read.h' re=3D'(\|\|\<(inval= id_arg|argmatch(_exit_fn|_(in)?valid)?) *\()' \ - $(_sc_header_without_use) - -sc_prohibit_canonicalize_without_use: - @h=3D'canonicalize.h' \ - re=3D'CAN_(EXISTING|ALL_BUT_LAST|MISSING)|canonicalize_(mode_t|filename_m= ode|file_name)' \ - $(_sc_header_without_use) - -sc_prohibit_root_dev_ino_without_use: - @h=3D'root-dev-ino.h' \ - re=3D'(\|\' \ - $(_sc_header_without_use) - # The following list was generated by running: # man signal.h|col -b|perl -ne '/bsd_signal.*;/.../sigwaitinfo.*;/ and pri= nt' \ # | perl -lne '/^\s+(?:int|void).*?(\w+).*/ and print $1' | fmt @@ -1546,11 +1459,6 @@ sc_prohibit_stdio--_without_use: @h=3D'stdio--.h' re=3D'\<((f(re)?|p)open|tmpfile) *\(' \ $(_sc_header_without_use) -# Don't include stdio-safer.h unless you use one of its functions. -sc_prohibit_stdio-safer_without_use: - @h=3D'stdio-safer.h' re=3D'\<((f(re)?|p)open|tmpfile)_safer *\(' \ - $(_sc_header_without_use) - # Prohibit the inclusion of strings.h without a sensible use. # Using the likes of bcmp, bcopy, bzero, index or rindex is not sensible. sc_prohibit_strings_without_use: @@ -1576,10 +1484,6 @@ sc_prohibit_dirent_without_use: re=3D'\<($(_dirent_syms_re))\>' \ $(_sc_header_without_use) -# Don't include xfreopen.h unless you use one of its functions. -sc_prohibit_xfreopen_without_use: - @h=3D'xfreopen.h' re=3D'\ (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1617183324214973.5034415584846; Wed, 31 Mar 2021 02:35:24 -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-482-kyNL9ZWNMKC6iCpgfuTqPQ-1; Wed, 31 Mar 2021 05:35:21 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 916EB1084D6D; Wed, 31 Mar 2021 09:35:16 +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 63CD64EF98; Wed, 31 Mar 2021 09:35:16 +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 DEE2C1800848; Wed, 31 Mar 2021 09:35:15 +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 12V9Yc3v005115 for ; Wed, 31 Mar 2021 05:34:38 -0400 Received: by smtp.corp.redhat.com (Postfix) id A368919C59; Wed, 31 Mar 2021 09:34:38 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 13D3419C44 for ; Wed, 31 Mar 2021 09:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617183323; 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=usFPKZUo56mYkxJmf7u5tHNFsqYolpX8SLJBUjKMUFo=; b=bA5521KiHc4u6omzdZki6hW3WbgaphH3OmRAbQlf8GXJ4FtDMnKFPluZ7TBmacGVzQ0LY0 d3XvlHFpTC5zq5C9esHGPp+fXEngVDRqwXocppQIn6MU3t87+fO5zKj6Efy/Xwrr0S8hJN 6FQiCqRZQI8fDZnKpsFOEit2YE872/4= X-MC-Unique: kyNL9ZWNMKC6iCpgfuTqPQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 4/6] syntax-check: Remove check for prohibited 'WITH_MBRTOWC' Date: Wed, 31 Mar 2021 11:34:27 +0200 Message-Id: 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 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.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" While our code uses mbrtowc, we don't do any detection of it. Additionally it was recently changed from HAVE_MBRTOWC to WITH_MBRTOWC so even if it came from an included file it would no longer work. Signed-off-by: Peter Krempa --- build-aux/syntax-check.mk | 5 ----- 1 file changed, 5 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index c1134d6a02..8f8d0ec6ab 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1390,11 +1390,6 @@ sc_require_config_h_first: else :; \ fi -sc_prohibit_WITH_MBRTOWC: - @prohibit=3D'\bWITH_MBRTOWC\b' \ - halt=3D"do not use $$prohibit; it is always defined" \ - $(_sc_search_regexp) - # To use this "command" macro, you must first define two shell variables: # h: the header name, with no enclosing <> or "" # re: a regular expression that matches IFF something provided by $h is us= ed. --=20 2.29.2 From nobody Fri Apr 26 08:42:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 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=1617183329; cv=none; d=zohomail.com; s=zohoarc; b=Zm6YiPvCDeC8Z5N7dcOXywilyjU4RrRRdTAC3dIcEFlvVnRJ0uJaH5R8jFEVLrHrBdag7338+5sA2yJrpPOfa6y9sNoSkmkk0wEBZoGH9pa4mS9XOG98yC3Xym8up4q0FS8Nye7t+mb++eZhY0WNJOLslNi353E1IGzue0S/wTM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617183329; 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=pO8KLE/Yv+XgvXre7rdVJUDwLHDNHqs8wFKXaLuWeyY=; b=iybtM1VDqZs8nADHj3S2eGRwH5bAn1KoTmmtOYNVuMBLIPUEnLUZWu18dzYL1z9upeo1N43jIB1hJhhtFjHcuqgHMR8WVz7UkaZiGRfzH6Tb8OE5Zg+JviCt1eAJpitrlyA3Mn27/dVs9dDkZ3eYttCSHryHZpHXg9oS9Ua8ogo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 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-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1617183329571554.1538969058855; Wed, 31 Mar 2021 02:35:29 -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-432-q1w8_pJ4Nb64KqrpTQS1zQ-1; Wed, 31 Mar 2021 05:35:25 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 76A4D1084D68; Wed, 31 Mar 2021 09:35:20 +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 4ACFBA8457; Wed, 31 Mar 2021 09:35:20 +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 DECB84A705; Wed, 31 Mar 2021 09:35:19 +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 12V9Ydhk005126 for ; Wed, 31 Mar 2021 05:34:39 -0400 Received: by smtp.corp.redhat.com (Postfix) id B50C719D80; Wed, 31 Mar 2021 09:34:39 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 18C2D19C44 for ; Wed, 31 Mar 2021 09:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617183327; 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=pO8KLE/Yv+XgvXre7rdVJUDwLHDNHqs8wFKXaLuWeyY=; b=aXGhu4QxWP+N6zE/N49/J56EvI7x79JTt2VD/Fg3X+ZbXuiX/XpUkyVmncA8MnUJwNNVLv Mca/GnEUoPRKI6PgPGWHE1U0kmq01uVFXrQC5CIVmvyeJv/IfQehi59P+GPMTUTUfeMArC 0Snq4r32tfEWgupzr5yORcD8f1JFMEA= X-MC-Unique: q1w8_pJ4Nb64KqrpTQS1zQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 5/6] syntax-check: Remove unused header check for 'strings.h' Date: Wed, 31 Mar 2021 11:34:28 +0200 Message-Id: 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 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.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Libvirt doesn't use it and we also require use of wrappers for such string operations. Remove the pointless check. Signed-off-by: Peter Krempa --- build-aux/syntax-check.mk | 8 -------- 1 file changed, 8 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 8f8d0ec6ab..dbc0338ac0 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1454,14 +1454,6 @@ sc_prohibit_stdio--_without_use: @h=3D'stdio--.h' re=3D'\<((f(re)?|p)open|tmpfile) *\(' \ $(_sc_header_without_use) -# Prohibit the inclusion of strings.h without a sensible use. -# Using the likes of bcmp, bcopy, bzero, index or rindex is not sensible. -sc_prohibit_strings_without_use: - @h=3D'strings.h' \ - re=3D'\<(strn?casecmp|ffs(ll)?)\>' \ - $(_sc_header_without_use) - - _stddef_syms_re =3D NULL|offsetof|ptrdiff_t|size_t|wchar_t # Prohibit the inclusion of stddef.h without an actual use. sc_prohibit_stddef_without_use: --=20 2.29.2 From nobody Fri Apr 26 08:42:49 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1617183321; cv=none; d=zohomail.com; s=zohoarc; b=HLGmRZxxljktrkG0nWa0/U3J7sJnCpXnRkHFp32tWHXgmHS9AoIZfSFEdefbpXMkdEDC39t5GvMiJOH/xdbwJOhUJlkz4RZduZbsfZ+spyZaNx70bS/G9khQ00nqCUzDUwSWU7ySLKDvSE4sPRLmPMLXqYCZKiPehsdJQcRZjCA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617183321; 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=ECHl6lOeWRw3q+wSOpnUSqAkfF2H+3TpgQdkHobCxDI=; b=LMwsUKzpZqOZRvN9fknQ7UCWFb+v8CwCjqFGwLr4sLZeQ/fPajVvweRgyX3F6gCfX9wRe8cmQbOtzdF8nOsCXfriVSl9I/ZLHs+8p3mC1YiRNRX1WI/ME2beqk7v/AmJP10RaSp96ftizh+Kgb7CNmK0ePeuGan9p/bjAiAeO/E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1617183321486870.7450030949669; Wed, 31 Mar 2021 02:35:21 -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-463-gXhZpxItM_eaVvMw9WFRoQ-1; Wed, 31 Mar 2021 05:35:18 -0400 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9BDA45B36A; Wed, 31 Mar 2021 09:35:09 +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 72DC0648A9; Wed, 31 Mar 2021 09:35:09 +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 0C23C4A700; Wed, 31 Mar 2021 09:35:09 +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 12V9Ye3c005137 for ; Wed, 31 Mar 2021 05:34:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id DAA8219D80; Wed, 31 Mar 2021 09:34:40 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F57C19C44 for ; Wed, 31 Mar 2021 09:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617183320; 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=ECHl6lOeWRw3q+wSOpnUSqAkfF2H+3TpgQdkHobCxDI=; b=ZbK94a1ikh1hqBb2hFVmOm73b/FoXSfJoaKmgoAXU9vLDR7c5eBVvg9v5mht6n4/8KGrpE fiv7Zrzu6+IiW28H9+O1qazsmRvMWhvVA9NzBBGwO8AgJH9lwAFnm/ejTnCrNVCbn2q411 Ujxyj/aiKEwcZDnDqXxBNH44Z48M4aY= X-MC-Unique: gXhZpxItM_eaVvMw9WFRoQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 6/6] syntax-check: Remove GFDL format check Date: Wed, 31 Mar 2021 11:34:29 +0200 Message-Id: <5645634315251d8c51cfa6fe5b34f72e2ca74037.1617183249.git.pkrempa@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 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 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Our docs don't use the GFDL so checking its format is pointless. Signed-off-by: Peter Krempa --- build-aux/syntax-check.mk | 8 -------- 1 file changed, 8 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index dbc0338ac0..6d934c4de1 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -1513,14 +1513,6 @@ sc_prohibit_backup_files: { echo '$(ME): found version controlled backup file' 1>&2; \ exit 1; } || : -# Require the latest GFDL. Two regexp, since some .texi files end up -# line wrapping between 'Free Documentation License,' and 'Version'. -_GFDL_regexp =3D (Free ''Documentation.*Version 1\.[^3]|Version 1\.[^3] or= any) -sc_GFDL_version: - @prohibit=3D'$(_GFDL_regexp)' \ - halt=3D'GFDL vN, N!=3D3' \ - $(_sc_search_regexp) - # This Perl code is slightly obfuscated. Not only is each "$" doubled # because it's in a Makefile, but the $$c's are comments; we cannot # use "#" due to the way the script ends up concatenated onto one line. --=20 2.29.2