From patchwork Tue Mar 10 15:31:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 45585 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 80E3C214BF for ; Tue, 10 Mar 2015 15:31:56 +0000 (UTC) Received: by wivz2 with SMTP id z2sf2566625wiv.1 for ; Tue, 10 Mar 2015 08:31:55 -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:from:to:date:message-id:in-reply-to :references:cc: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=iHRMCUCqONCkFPi+zgnYLLHIPJz+Dv3DtWp+HFVFJPA=; b=D7KH6CnF8ASQa4zA5C70NN23rZz5rp/nG+TRBwc5/vEpJb4jFK0yeHUcDHHbVrxE6c B/lF0FU0sXg6PCbuYnf5PlbeMld9t+HvFI64w8LDa+6qHln/n0woNHas9XFUJGAELJO+ 3NFdeNAlHOqdhXXG68xXDsDvnajS7DLGz1snE8ltRaH2RfBwXonJ68E7h0Iijq1JnsBI 4O1vukp/decywxzEqhPYIiLKvNylDFVHMzBC9O0rONzLQNuxZWwhsrz2gDoL3J9b6z7U bx9dgLn98Iwb9VbuIl+885+D2hS5J5V6Qa41c+yIAoyfQJED0VtZHeg1keLvyybDtu5l GJJg== X-Gm-Message-State: ALoCoQljJWhCQImY6hkrykTranZEvhdEywD3gY50qEMizJyK6YGo8Xg15q0S/dJsBSpdbnmtcLWk X-Received: by 10.112.147.35 with SMTP id th3mr4688771lbb.15.1426001515469; Tue, 10 Mar 2015 08:31:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.130 with SMTP id v2ls35333lae.98.gmail; Tue, 10 Mar 2015 08:31:55 -0700 (PDT) X-Received: by 10.112.92.66 with SMTP id ck2mr30676348lbb.105.1426001515148; Tue, 10 Mar 2015 08:31:55 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id y5si545472lag.88.2015.03.10.08.31.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Mar 2015 08:31:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbiz11 with SMTP id z11so2498011lbi.13 for ; Tue, 10 Mar 2015 08:31:54 -0700 (PDT) X-Received: by 10.112.201.231 with SMTP id kd7mr10124470lbc.35.1426001514705; Tue, 10 Mar 2015 08:31:54 -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.35.133 with SMTP id h5csp2206608lbj; Tue, 10 Mar 2015 08:31:54 -0700 (PDT) X-Received: by 10.140.235.131 with SMTP id g125mr42704562qhc.85.1426001511802; Tue, 10 Mar 2015 08:31:51 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 62si802089qhb.22.2015.03.10.08.31.50 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Mar 2015 08:31:51 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YVM8K-0003rH-SS; Tue, 10 Mar 2015 15:31:48 +0000 Received: from mail-la0-f47.google.com ([209.85.215.47]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YVM81-0003ou-JM for lng-odp@lists.linaro.org; Tue, 10 Mar 2015 15:31:29 +0000 Received: by lams18 with SMTP id s18so2515849lam.9 for ; Tue, 10 Mar 2015 08:31:23 -0700 (PDT) X-Received: by 10.112.181.41 with SMTP id dt9mr31756320lbc.56.1426001483748; Tue, 10 Mar 2015 08:31:23 -0700 (PDT) Received: from uglx0153363.synapse.com ([195.238.92.128]) by mx.google.com with ESMTPSA id a2sm106609lbm.32.2015.03.10.08.31.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Mar 2015 08:31:23 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 10 Mar 2015 17:31:02 +0200 Message-Id: <1426001473-14618-5-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426001473-14618-1-git-send-email-taras.kondratiuk@linaro.org> References: <1426001473-14618-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Cc: Taras Kondratiuk Subject: [lng-odp] [KEYSTONE2 PATCH 04/15] linux-ks2: align: add ODP_ALIGNOF() macro X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: taras.kondratiuk@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.175 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 Signed-off-by: Taras Kondratiuk Signed-off-by: Taras Kondratiuk --- platform/linux-keystone2/include/odp/plat/align.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/linux-keystone2/include/odp/plat/align.h b/platform/linux-keystone2/include/odp/plat/align.h index 55271a5..d56e085 100644 --- a/platform/linux-keystone2/include/odp/plat/align.h +++ b/platform/linux-keystone2/include/odp/plat/align.h @@ -21,6 +21,10 @@ extern "C" { * @{ */ + +/** Returns type alignment */ +#define ODP_ALIGNOF(type) __alignof__(type) + /* * Round up */