From patchwork Wed Feb 17 09:32:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 62095 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2148346lbl; Wed, 17 Feb 2016 00:34:10 -0800 (PST) X-Received: by 10.50.110.99 with SMTP id hz3mr22164146igb.16.1455698050373; Wed, 17 Feb 2016 00:34:10 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y25si3429456ioi.55.2016.02.17.00.34.09; Wed, 17 Feb 2016 00:34:10 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B726B619F7; Wed, 17 Feb 2016 08:34:09 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=Ewr5VOpl; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED 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 9A2446677C; Wed, 17 Feb 2016 08:33:41 +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 081DC618E0; Wed, 17 Feb 2016 08:33:39 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by lists.linaro.org (Postfix) with ESMTPS id E629A61796 for ; Wed, 17 Feb 2016 08:33:37 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id m1so5961204lfg.0 for ; Wed, 17 Feb 2016 00:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QlqSvsgJ6QpBFnj4xJwAX1rzp4riKrBSRVgrrcGpKmI=; b=Ewr5VOplVPnTfTg547qbyLUgWGkjqqQ63mnre5wXFni+RuRhASvkTGySPwgOSqk5+M Vtg2PLqEkwfPtQFWw1Z1WvpBZH3qCnYK/UXWLg/g1evVbhjpGDdKn4HeGCYKnlYxNqnH 5zYSIDWhAwhNbywYCNHtMfsjIy0NPlddBbv/E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QlqSvsgJ6QpBFnj4xJwAX1rzp4riKrBSRVgrrcGpKmI=; b=NSRu4eeF06QtikT7KgJXUdU2A178suaIWFMn4Apo8gm8ACLh0TTE7Uyn7CB8H1i5xZ JcvhHfrbKG7KlTjIiwJl8T7SDyy/BUE1xTq768MtDoI2B+JbpNXO46WFENCQoe+gRbdI SeSm+Gl7J5gjs85rPenfqBdF/JKqY43pSzYuSS4QEoLg6gVgUUDJ+kDORrjbwq/ac5Sn M9VIIbq465TAMmCRjH4dc2IMe5GK07Tri4ygyO7DXGBWv36EWLjcMursmKYropchjJq+ NcRYpQEtosbhSBebpdLacjZKixxp8UjH02ZhcFR3GiOGDb8ijwdTWamy4k6DxFFdYD18 uUkw== X-Gm-Message-State: AG10YOSmjYcywKYN8Ttg/BaUm0aqD1nPopXry7MeSo9pE9hRYU+6HMLnDYB5IBMbuNFwKd2pGJc= X-Received: by 10.25.211.70 with SMTP id k67mr131600lfg.119.1455698016887; Wed, 17 Feb 2016 00:33:36 -0800 (PST) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-90-46.cust.bredband2.com. [83.233.90.46]) by smtp.gmail.com with ESMTPSA id a14sm47275lfe.7.2016.02.17.00.33.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Feb 2016 00:33:36 -0800 (PST) From: Christophe Milard To: anders.roxell@linaro.org, mike.holmes@linaro.org, bill.fischofer@linaro.org, petri.savolainen@linaro.org Date: Wed, 17 Feb 2016 10:32:26 +0100 Message-Id: <1455701546-48997-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455701546-48997-1-git-send-email-christophe.milard@linaro.org> References: <1455701546-48997-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [API-NEXT PATCHv2 2/2] linux-generic: drv: adding compiler.h 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Christophe Milard --- include/odp_drv.h | 1 + platform/linux-generic/Makefile.am | 4 +++ platform/linux-generic/include/odp/drv/compiler.h | 34 +++++++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 platform/linux-generic/include/odp/drv/compiler.h diff --git a/include/odp_drv.h b/include/odp_drv.h index 51fca7a..a6d3a44 100644 --- a/include/odp_drv.h +++ b/include/odp_drv.h @@ -18,6 +18,7 @@ extern C { #endif +#include #include #ifdef __cplusplus diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 00c8ac9..734e2a4 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -88,6 +88,10 @@ odpapiplatinclude_HEADERS = \ $(srcdir)/include/odp/api/plat/traffic_mngr_types.h \ $(srcdir)/include/odp/api/plat/version_types.h +odpdrvincludedir= $(includedir)/odp/drv +odpdrvinclude_HEADERS = \ + $(srcdir)/include/odp/drv/compiler.h + noinst_HEADERS = \ ${srcdir}/include/odp_align_internal.h \ ${srcdir}/include/odp_atomic_internal.h \ diff --git a/platform/linux-generic/include/odp/drv/compiler.h b/platform/linux-generic/include/odp/drv/compiler.h new file mode 100644 index 0000000..24e84c5 --- /dev/null +++ b/platform/linux-generic/include/odp/drv/compiler.h @@ -0,0 +1,34 @@ +/* Copyright (c) 2016, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @file + * + * Compiler related + */ + +#ifndef ODPDRV_PLAT_COMPILER_H_ +#define ODPDRV_PLAT_COMPILER_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/** @addtogroup odpdrv_compiler_optim ODPDRV COMPILER / OPTIMIZATION + * @{ + */ + +/** + * @} + */ + +#include + +#ifdef __cplusplus +} +#endif + +#endif