From patchwork Wed Jul 8 20:41:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 50912 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0C93922A03 for ; Wed, 8 Jul 2015 20:41:23 +0000 (UTC) Received: by lagc2 with SMTP id c2sf25025187lag.0 for ; Wed, 08 Jul 2015 13:41:21 -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=jV9ethTVGKn6m4mS97b37R79VnhzXWqaDNFf5B+Ogw8=; b=G53qRxbkfLCt9Ua+L9mTWUPqiTHX+xRdSv8o8smVUaoM5WlVFSXGCnazsRNwHbGl7n L+fgYcx1/HYmi4lNMmTXFZ4HieI3qeCK5o+CBJcyyc7fryWSYNH0j3C9JbGiXRhcQGIL WWwcuCo7cLzwXntiaTv9nyO0SeziWAOFAe+xm9nHAEmEDhVqF7ULMYbOAp3ETDLWN8Dz 6Pffwmd0MzMqAI8qqtmulJFBtS4jLvm4joQnTdxLbH+JcNtz+/9OedeL+SbngkqvCCJK N1AEvBEnyWcrc+g0Gi6lNv1RI0ugB3hOpomn0pgn12OauSuWPzAlC1Uw97jR8p3NTlbE RR0w== X-Gm-Message-State: ALoCoQmqEMYz1A0Fr2dIuij/AU4oY0xC4zvscVJh/ujGkKjF5S1s5av8yyK9pNRy3PXIS2njl1N/ X-Received: by 10.180.106.10 with SMTP id gq10mr34714525wib.0.1436388081692; Wed, 08 Jul 2015 13:41:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.10 with SMTP id j10ls1034868lae.6.gmail; Wed, 08 Jul 2015 13:41:21 -0700 (PDT) X-Received: by 10.112.185.100 with SMTP id fb4mr11404316lbc.79.1436388081512; Wed, 08 Jul 2015 13:41:21 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id pk1si2568691lac.161.2015.07.08.13.41.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jul 2015 13:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by laar3 with SMTP id r3so233790330laa.0 for ; Wed, 08 Jul 2015 13:41:21 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr4033258lav.36.1436388081368; Wed, 08 Jul 2015 13:41:21 -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.108.230 with SMTP id hn6csp203781lbb; Wed, 8 Jul 2015 13:41:20 -0700 (PDT) X-Received: by 10.55.23.146 with SMTP id 18mr18356357qkx.99.1436388080165; Wed, 08 Jul 2015 13:41:20 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x104si4387362qgx.59.2015.07.08.13.41.19; Wed, 08 Jul 2015 13:41:20 -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 0517B61F83; Wed, 8 Jul 2015 20:41:19 +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 DF01061B1D; Wed, 8 Jul 2015 20:41:14 +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 2C14761B7B; Wed, 8 Jul 2015 20:41:13 +0000 (UTC) Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by lists.linaro.org (Postfix) with ESMTPS id 3102D61842 for ; Wed, 8 Jul 2015 20:41:12 +0000 (UTC) Received: by obbgp5 with SMTP id gp5so46562734obb.0 for ; Wed, 08 Jul 2015 13:41:11 -0700 (PDT) X-Received: by 10.182.240.135 with SMTP id wa7mr11750542obc.63.1436388071722; Wed, 08 Jul 2015 13:41:11 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id e184sm1605236oih.26.2015.07.08.13.41.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jul 2015 13:41:11 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 8 Jul 2015 15:41:07 -0500 Message-Id: <1436388067-11805-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: types: increase alignment of odp_handle_t to avoid lint issues 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: bill.fischofer@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.215.52 as permitted sender) smtp.mail=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 ODP handles are abstract types however because compilers see their implementation they assume these have alignments that can result in false lint warnings. Increasing the apparent alignment to uint64_t removes these. It has no effect on ODP operation or performance. Signed-off-by: Bill Fischofer --- platform/linux-generic/include/odp/plat/strong_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/include/odp/plat/strong_types.h b/platform/linux-generic/include/odp/plat/strong_types.h index a53d763..3eb4556 100644 --- a/platform/linux-generic/include/odp/plat/strong_types.h +++ b/platform/linux-generic/include/odp/plat/strong_types.h @@ -17,9 +17,9 @@ /** Use strong typing for ODP types */ #ifdef __cplusplus -#define ODP_HANDLE_T(type) struct _##type { uint8_t unused_dummy_var; } *type +#define ODP_HANDLE_T(type) struct _##type { uint64_t unused_dummy_var; } *type #else -#define odp_handle_t struct { uint8_t unused_dummy_var; } * +#define odp_handle_t struct { uint64_t unused_dummy_var; } * /** C/C++ helper macro for strong typing */ #define ODP_HANDLE_T(type) odp_handle_t type #endif