From patchwork Wed Aug 28 14:46:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 172394 Delivered-To: patch@linaro.org Received: by 2002:ac9:5c4b:0:0:0:0:0 with SMTP id r11csp1016524ocp; Wed, 28 Aug 2019 07:47:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwLR0ST/kbpL57Iji8nPph1CZO4pPH1xRDVUECXUZTXxsuoFqf449rDuTnXXJkahRHi6KK X-Received: by 2002:a50:ef04:: with SMTP id m4mr4482981eds.155.1567003619998; Wed, 28 Aug 2019 07:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567003619; cv=none; d=google.com; s=arc-20160816; b=YXG1G48xykVUDBh8TlvD8ITA+7rOZ4EHGXGnRvxl6cUjwFiFAhj/Rc/pHIyv+ggUO8 x3K6AZHg/erZ+Fa0T9PAzRn9XetSOgz0psMkIud5M69XvcTO/ZmYaLrVyv8eby4swRM7 5vu2I1JjsWhNGs73L4SnjrwIb/wBx9ezkbzkqpj1kr8ervbQcIIpIh81hLACrzRVgB36 KqCbpfhH5ENGcWFS3LwPM2KCwqDG+k3qIh0iO0G2i6eneSiPZGDDodi20KNIVsJ/Sx1B EI2HuwAu8ZfU5DjwWSeJ0tWE9mMeQQ4qe5n6QqT/uPDEJXayP60QM2XsxLIWjFPEagtZ 87Gg== 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=G9vQ57iBfEx3aKo1NMtQUGESs3j/UM71KTlwgBPWY4WSHydRRodTYu1dm/D3iABJWB KBGSfbsu05+AEy59URR8eql/6oAlRFc5L3MbDaGi5fjYQUqgzrncGgwflWLTNEmiv6rO pFLI3qbWO0meaqI3n8a1wqkARgTvHRuEBY8dCuuLsF4aPWOZXg8FU66/ts/5SAgrv9Xx Xx3lw/aCaptRHjtelpFfnE9oGOy2QplwfcDjyraNrBtwfjtdxcmEIzQKHdRbJ6uGMV+F T1pC7hEug++Hctden9EtrJNGRv3lnEjsnGHOoUC3HEflqIfUsuqNYHbdg2IR0UDyw90J /Peg== 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 jp21si1370673ejb.216.2019.08.28.07.46.59; Wed, 28 Aug 2019 07:46:59 -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 9E88D1BFD7; Wed, 28 Aug 2019 16:46:42 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 429E21BEEE for ; Wed, 28 Aug 2019 16:46:39 +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 D28CD1570; Wed, 28 Aug 2019 07:46:38 -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 C08ED3F246; Wed, 28 Aug 2019 07:46:38 -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, honnappa.nagarahalli@arm.com Cc: dev@dpdk.org, dharmik.thakkar@arm.com, gavin.hu@arm.com, ruifeng.wang@arm.com, nd@arm.com Date: Wed, 28 Aug 2019 09:46:12 -0500 Message-Id: <20190828144614.25284-4-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190828144614.25284-1-honnappa.nagarahalli@arm.com> References: <20190828144614.25284-1-honnappa.nagarahalli@arm.com> Subject: [dpdk-dev] [PATCH 3/5] 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 {