From patchwork Thu Jan 18 17:00:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 124993 Delivered-To: patch@linaro.org Received: by 10.46.64.27 with SMTP id n27csp208375lja; Thu, 18 Jan 2018 09:01:40 -0800 (PST) X-Google-Smtp-Source: ACJfBosbkaA42yrM9KeF/aG7/gNKVPE5NLEL+cqESLYt0mV7yQdFxbn+olBJpfzNhJ9OioPP5AyV X-Received: by 10.55.150.6 with SMTP id y6mr54881084qkd.155.1516294900313; Thu, 18 Jan 2018 09:01:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516294900; cv=none; d=google.com; s=arc-20160816; b=BZw7iMn27LsRUNV1YjDLU4w4RFwyudJglWFRHDLWBEJJMcJbCcZhXsy8KkDkSmamsF sNe+8zu7W85+Hv+Jf1Ljg7Xs5z1aSSX3lil4CX2RBQ4QZNq5pSBVe6gtB1ZDdwnyKt12 leoDsQhcRczvsowOr4tnbi8Qx9BZcsolWmH/mBirz4ZW+t0ItQfqg07TAH1S2x+qHG4h dtupI/jVwIXTXTlE5+Vmq4GkoiFVo+DJIf+X5fvGR1zm8XOHnPzhTm9HOTityq+yBnjN z6rfHoUpHrfiijlS5BCu6kFZnjEovyBsoznwKkdPseKExc5qJVe8H5iXsyuTUB8OSzwy 0qag== 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:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Yao/jKG3j/oWZfe7Skh83VBnbZm2otdxOwwiuu22yhI=; b=T/DrQjKY+OPfuU0G+AdIMCe9NQZbCYSfnvoVvhwQxkXHptnp4e02sV33pyVBQq3GTB ClBONmWYfyr47pCSvNYINkzUysoWQeMEBtGrLLU6ej1N41Xa3vIguvYO1XCh57+7RCO7 ozTCfudAr6HWGr+SmREOgUhSRqIL+78oDSAMFIZhXFk43Bt4Ly54q2bBKHRmki2sitB8 NzDnlWlsYBs9OOjeyV39P3PRZsCqgG1nujr4Vd+sLaVZJTKK6l80DAtU76CrIPa1GFVN gqsCVdhaGT9XOqo48vrmZb46ITzonoLIkziNI06chh8g8y+Uqk7MoUa275irz861y9CH q4Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id a204si174325qkc.161.2018.01.18.09.01.37; Thu, 18 Jan 2018 09:01:40 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 7AE95627DA; Thu, 18 Jan 2018 17:01:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5EC3E617DD; Thu, 18 Jan 2018 17:00:56 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3547162774; Thu, 18 Jan 2018 17:00:52 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 71CB5627B2 for ; Thu, 18 Jan 2018 17:00:23 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 43BAE5104AD1 for ; Thu, 18 Jan 2018 20:00:22 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id TKf6ibUqPK-0MCKc1d3; Thu, 18 Jan 2018 20:00:22 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id qx06IFqOH5-0LheFIRU; Thu, 18 Jan 2018 20:00:21 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 18 Jan 2018 20:00:19 +0300 Message-Id: <1516294820-4980-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516294820-4980-1-git-send-email-odpbot@yandex.ru> References: <1516294820-4980-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 398 Subject: [lng-odp] [PATCH v2 1/2] checkpatch.pl: do not warn on odp aligh macros X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Maxim Uvarov do not if structure has ODP_ preprocessor macro. ERROR: open brace '{' following function declarations go on the next line static uint8_t ODP_ALIGNED(4) ip_hdr_test_vect[NUM_IP_HDR][IP_HDR_LEN] = { Signed-off-by: Maxim Uvarov --- /** Email created from pull request 398 (apalos:align) ** https://github.com/Linaro/odp/pull/398 ** Patch: https://github.com/Linaro/odp/pull/398.patch ** Base sha: 77ff03881d844a9d6a4bc773086bd8aaecace541 ** Merge commit sha: c603837c88f6623aeccb807bbb19cbd91c4c0583 **/ scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 16316b928..d366f257d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3411,6 +3411,7 @@ sub process { # function brace can't be on same line, except for #defines of do while, # or if closed on same line if (($line=~/$Type\s*$Ident\(.*\).*\s*{/) and + !($line=~/ODP_/) and !($line=~/\#\s*define.*do\s\{/) and !($line=~/}/)) { if (ERROR("OPEN_BRACE", "open brace '{' following function declarations go on the next line\n" . $herecurr) &&