From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2E8E7A0C4E; Sat, 23 Oct 2021 12:29:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A4A7D4069D; Sat, 23 Oct 2021 12:29:15 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id BA20B40041 for ; Sat, 23 Oct 2021 12:29:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634984953; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vqkmPR0GZTY7vuwtMrtkQgDS1dF7zLv+sEbBbbkWgg4=; b=dj96z8KN2suHVqItmi+wtIdaypjEUZw64mKtsNUi0nfkRy2g6KWx5VLGpSlwcqguKFtFyh dkK+XLRxNouSgvlqBDUAQyPwJvO7BuFDqUOHloT5c66zHaF81uiapREjtbr3FAHFC4WHXx T0KqSa3qXPsIESgZPhlMQzUieTkxm9U= 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-468-7wTWQQrqOdGlQ9gNSWK1zg-1; Sat, 23 Oct 2021 06:29:09 -0400 X-MC-Unique: 7wTWQQrqOdGlQ9gNSWK1zg-1 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 F319693C; Sat, 23 Oct 2021 10:29:07 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5A9AC19D9B; Sat, 23 Oct 2021 10:29:05 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: dmitry.kozliuk@gmail.com, Thomas Monjalon Date: Sat, 23 Oct 2021 12:29:00 +0200 Message-Id: <20211023102900.22317-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH] devtools: forbid additions of __reserved X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" __reserved is a reserved keyword in Windows system headers. Signed-off-by: David Marchand --- devtools/checkpatches.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index c314d83a29..25f60a4a27 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -134,6 +134,15 @@ check_forbidden_additions() { # -f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \ "$1" || res=1 + # refrain from using __reserved which is a reserved keyword in Windows + # system headers + awk -v FOLDERS="lib drivers app examples" \ + -v EXPRESSIONS='\\<__reserved\\>' \ + -v RET_ON_FAIL=1 \ + -v MESSAGE='Using __reserved' \ + -f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \ + "$1" || res=1 + # SVG must be included with wildcard extension to allow conversion awk -v FOLDERS='doc' \ -v EXPRESSIONS='::[[:space:]]*[^[:space:]]*\\.svg' \ -- 2.23.0