From patchwork Wed Aug 19 16:20:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 52557 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by patches.linaro.org (Postfix) with ESMTPS id D86BD20AF6 for ; Wed, 19 Aug 2015 16:21:23 +0000 (UTC) Received: by labd1 with SMTP id d1sf3223946lab.0 for ; Wed, 19 Aug 2015 09:21:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=csXFOrO1EniwQri8x0S+ynEMJcdEQGlwcS35LTEO38c=; b=BA8Xx8qBVbXN9vNSEt/lWMgaTo1ppHuozPSi86Gk1PW+jNnV4dUmuugsvfsAAwhDUO HQcLjJAMLO92em84MQjBsPIAh4YV29pTZnv1+zs7+PJyWRwXhmXiHY4N29WSzXyR3C9C yTFghfieSo8uEYBQcRSaVD+2yfxc379lJDaXI5Z+BwgNWdWehFgaFsigYfymrD8fI6iE uUNXO7EseTrxWK0QqWhTjp9uv90NOwRqk4yOFw7USHOXb5NJczK4IuaAE8aPCI4j79vV EkMKVkI2nWvkVK6ZfpaKwtweAJUye6II7qWb8IiS5fRBC4sJMnOUUbZna0eQgQF8vi+d 4oAA== X-Gm-Message-State: ALoCoQmovLai7myzEKoDa5qm+g5nFkXflFyWED5F7MoTnqqxPhm7PMkWoa3kw4bhoOlRuN65kbyO X-Received: by 10.180.12.205 with SMTP id a13mr681459wic.4.1440001282872; Wed, 19 Aug 2015 09:21:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.18.137 with SMTP id w9ls45408lad.102.gmail; Wed, 19 Aug 2015 09:21:22 -0700 (PDT) X-Received: by 10.112.89.230 with SMTP id br6mr9576750lbb.15.1440001282699; Wed, 19 Aug 2015 09:21:22 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id 6si856503lau.49.2015.08.19.09.21.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Aug 2015 09:21:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbsx3 with SMTP id sx3so6735952lbb.0 for ; Wed, 19 Aug 2015 09:21:22 -0700 (PDT) X-Received: by 10.152.4.163 with SMTP id l3mr12125090lal.35.1440001282581; Wed, 19 Aug 2015 09:21:22 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.162.200 with SMTP id yc8csp478344lbb; Wed, 19 Aug 2015 09:21:21 -0700 (PDT) X-Received: by 10.55.195.214 with SMTP id r83mr5056255qkl.66.1440001253473; Wed, 19 Aug 2015 09:20:53 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m90si1838120qge.67.2015.08.19.09.20.52; Wed, 19 Aug 2015 09:20:53 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 6D61261FE4; Wed, 19 Aug 2015 16:20:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6812361EE0; Wed, 19 Aug 2015 16:20:46 +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 55DC061F7A; Wed, 19 Aug 2015 16:20:44 +0000 (UTC) Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by lists.linaro.org (Postfix) with ESMTPS id 7371961E84 for ; Wed, 19 Aug 2015 16:20:43 +0000 (UTC) Received: by qkep139 with SMTP id p139so3999594qke.3 for ; Wed, 19 Aug 2015 09:20:43 -0700 (PDT) X-Received: by 10.55.204.80 with SMTP id r77mr24569207qki.28.1440001243156; Wed, 19 Aug 2015 09:20:43 -0700 (PDT) Received: from localhost.localdomain (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id r10sm599368qkr.48.2015.08.19.09.20.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Aug 2015 09:20:42 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 19 Aug 2015 12:20:27 -0400 Message-Id: <1440001229-22483-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH 1/3] linux-generic: buffer_internal add clang-format barriers X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The odp_format tool is not infallible, in this case it is better to omit the macro from formatting Signed-off-by: Mike Holmes --- platform/linux-generic/include/odp_buffer_internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h index a7638da..db9defa 100644 --- a/platform/linux-generic/include/odp_buffer_internal.h +++ b/platform/linux-generic/include/odp_buffer_internal.h @@ -30,7 +30,7 @@ extern "C" { #include #include - +/* clang-format off */ #define ODP_BITSIZE(x) \ ((x) <= 2 ? 1 : \ ((x) <= 4 ? 2 : \ @@ -49,6 +49,7 @@ extern "C" { ((x) <= 32768 ? 15 : \ ((x) <= 65536 ? 16 : \ (0/0))))))))))))))))) +/* clang-format on */ _ODP_STATIC_ASSERT(ODP_CONFIG_PACKET_SEG_LEN_MIN >= 256, "ODP Segment size must be a minimum of 256 bytes");