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 B728BA0032; Wed, 14 Sep 2022 09:59:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F8D84281A; Wed, 14 Sep 2022 09:59:02 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id DDBAF40141 for ; Wed, 14 Sep 2022 09:59:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663142340; 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: in-reply-to:in-reply-to:references:references; bh=+aSaKvIyGl9CQoc0ONWg4a04U+wxWTNLN7F63P2UInY=; b=gEuSZhl8LhSsVu+rY+Dz3D4YE2g4pYixhyTkEIKAic4mHi0fVDPlXF2MNpeuEqz0CNOqn0 cZ+tVxdibFmvmWmKAGKd+PFNxBxwypG63Y7Bj7SogaPwCjWWgNsgmlooRvsuSx/SN3Jf6i XTiwtyBTE43rYtxjvOjslvBR2PEh2as= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-651-lGAbK3P0OAeW9sq5kbk5cw-1; Wed, 14 Sep 2022 03:58:59 -0400 X-MC-Unique: lGAbK3P0OAeW9sq5kbk5cw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EA3EF294EDC8; Wed, 14 Sep 2022 07:58:58 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.194.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2FC7F492CA2; Wed, 14 Sep 2022 07:58:58 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, bruce.richardson@intel.com Subject: [PATCH v6 01/27] devtools: forbid inclusions of driver only headers Date: Wed, 14 Sep 2022 09:58:15 +0200 Message-Id: <20220914075841.51555-2-david.marchand@redhat.com> In-Reply-To: <20220914075841.51555-1-david.marchand@redhat.com> References: <20220628144643.1213026-1-david.marchand@redhat.com> <20220914075841.51555-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 Let's be good citizens and enforce not using driver only headers in our own examples. Signed-off-by: David Marchand Acked-by: Bruce Richardson --- devtools/checkpatches.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 1edc5810ad..0e82c01947 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -142,6 +142,14 @@ check_forbidden_additions() { # -f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \ "$1" || res=1 + # forbid inclusion of driver specific headers in apps and examples + awk -v FOLDERS='app examples' \ + -v EXPRESSIONS='include.*_driver\\.h include.*_pmd\\.h' \ + -v RET_ON_FAIL=1 \ + -v MESSAGE='Using driver specific headers in applications' \ + -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.37.3