diff mbox

[API-NEXT,2/2] linux-generic: drv: adding compiler.h

Message ID 1455698659-26695-2-git-send-email-christophe.milard@linaro.org
State New
Headers show

Commit Message

Christophe Milard Feb. 17, 2016, 8:44 a.m. UTC
Signed-off-by: Christophe Milard <christophe.milard@linaro.org>
---
 include/odp_drv.h                                 |  1 +
 platform/linux-generic/include/odp/drv/compiler.h | 34 +++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 platform/linux-generic/include/odp/drv/compiler.h

Comments

Christophe Milard Feb. 17, 2016, 8:30 a.m. UTC | #1
Missing Makefile update. will send a v2 :-)

On 17 February 2016 at 09:44, Christophe Milard <
christophe.milard@linaro.org> wrote:

> Signed-off-by: Christophe Milard <christophe.milard@linaro.org>

> ---

>  include/odp_drv.h                                 |  1 +

>  platform/linux-generic/include/odp/drv/compiler.h | 34

> +++++++++++++++++++++++

>  2 files changed, 35 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 <odp/drv/compiler.h>

>  #include <odp/drv/std_types.h>

>

>  #ifdef __cplusplus

> 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 <odp/drv/spec/compiler.h>

> +

> +#ifdef __cplusplus

> +}

> +#endif

> +

> +#endif

> --

> 2.1.4

>

>
diff mbox

Patch

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 <odp/drv/compiler.h>
 #include <odp/drv/std_types.h>
 
 #ifdef __cplusplus
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 <odp/drv/spec/compiler.h>
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif