diff mbox

[KEYSTONE2,04/15] linux-ks2: align: add ODP_ALIGNOF() macro

Message ID 1426001473-14618-5-git-send-email-taras.kondratiuk@linaro.org
State New
Headers show

Commit Message

Taras Kondratiuk March 10, 2015, 3:31 p.m. UTC
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Signed-off-by: Taras Kondratiuk <taras@ti.com>
---
 platform/linux-keystone2/include/odp/plat/align.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

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
  */