From patchwork Fri Sep 6 19:05:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 173291 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1128737ilq; Fri, 6 Sep 2019 12:06:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMYZDMRSpXSqR7MhpXEre31lbp6ll2KbMnareTV48BiojDIu6bL/dnpFPY3PFanJ4bd+pH X-Received: by 2002:aa7:d40c:: with SMTP id z12mr11480419edq.30.1567796781057; Fri, 06 Sep 2019 12:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567796781; cv=none; d=google.com; s=arc-20160816; b=PuO5/gxTMsSXkt6ZtMWTwU7TAeKoISCZh++vLfG+cSn7Jv/kdW2aXpSrzgZ/PhZ7vv CZQ+oXAE3aDxYcuVc8sq5GwGEYsPTg0Sam1YvixpCRsY3Sh/ARi80mJkhtx4aFjEdLo7 JkNXAVV1XJawW7zeKzvZnnjokG5QjHNW0CsB20aHZGVTG/SiQqtQIpuLy90F2NdCd1Tp fROCbszQdfy1ByD7vNUeO6NTFjkhByEA4nhM4SS7ww5lm+gm+0kQ8xZtX3yjPOzBRr4O w9g1Y1Wq/NqE/wVJqQwWfbL8L0kF/EjIwL4YclBnarxo6objo7VSJls3BZCw4dz87Zjt 5HJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from; bh=M1yMDIqdkzcayLkzOGG0R74fOR+cUEAk0uq0QvV2fkA=; b=Bz9pZZn1jAAmUiDqhQp+LgED2YY7ttxzl5+jeqSqesT73x9uB0oG8dBcmq8uLDA4Xj fmPAR3O0OqqNITfEG69uzpOEG5C2qMHo5OJldaY8EXWv6i/SI/wzk5WCKL/goi8MBnYm bZ2f4EJVV5QyZGLumEwV0MSlE80+EH7k5wtO3H4OWDr40SfCxv4Y859WvBrqVf3WAQsz 0CuNHkrgJ7TXECAoegYxoExVnu2/9CFlg4iciw9cp6esOUFnRQtpY0fWMNxm5l5GG/vX sxAoVA6YLhpPTmBfk5MKPnyQOdacaRMrhNDoHBCcLr+bVCwQgEEfSYim1KH7/enT1vrE Cb2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id jz22si3278962ejb.195.2019.09.06.12.06.20; Fri, 06 Sep 2019 12:06:21 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D2CC61BEDD; Fri, 6 Sep 2019 21:06:05 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 0FD0E1BEA7 for ; Fri, 6 Sep 2019 21:06:00 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4274128; Fri, 6 Sep 2019 12:06:00 -0700 (PDT) Received: from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com [10.118.12.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 30E243F59C; Fri, 6 Sep 2019 12:06:00 -0700 (PDT) From: Honnappa Nagarahalli To: olivier.matz@6wind.com, yipeng1.wang@intel.com, sameh.gobriel@intel.com, bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org, pbhagavatula@marvell.com, jerinj@marvell.com, Honnappa Nagarahalli Date: Fri, 6 Sep 2019 14:05:07 -0500 Message-Id: <20190906190510.11146-4-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190906190510.11146-1-honnappa.nagarahalli@arm.com> References: <20190828144614.25284-1-honnappa.nagarahalli@arm.com> <20190906190510.11146-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH v2 3/6] tools/checkpatch: relax constraints on __rte_experimental X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Relax the constraints on __rte_experimental usage, allow redefining to macros. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu --- devtools/checkpatches.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 560e6ce93..090c9b08a 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -99,9 +99,14 @@ check_experimental_tags() { # ret = 1; } if ($1 != "+__rte_experimental" || $2 != "") { - print "__rte_experimental must appear alone on the line" \ - " immediately preceding the return type of a function." - ret = 1; + # code such as "#define XYZ __rte_experimental" is + # allowed + if ($1 != "+#define") { + print "__rte_experimental must appear alone " \ + "on the line immediately preceding the " \ + "return type of a function." + ret = 1; + } } } END {