diff mbox

[1/2] Keystone2: buffer: Update buffer types

Message ID 1404237602-20051-1-git-send-email-taras.kondratiuk@linaro.org
State Accepted
Commit 91a5f5ca77cd71e29b64335c798a5fe420b87d8c
Headers show

Commit Message

Taras Kondratiuk July 1, 2014, 6 p.m. UTC
Since patch 9b8a4bb "Added timeout buffer type" KS2 build fails,
because TIMEOUT and ANY types are not available.
Add them just to fix a build. ANY type is not implemented yet.

Reported-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
---
 platform/linux-keystone2/include/api/odp_buffer.h |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Comments

Maxim Uvarov July 3, 2014, 10:14 a.m. UTC | #1
Applied both patches.

Maxim.

On 07/01/2014 10:00 PM, Taras Kondratiuk wrote:
> Since patch 9b8a4bb "Added timeout buffer type" KS2 build fails,
> because TIMEOUT and ANY types are not available.
> Add them just to fix a build. ANY type is not implemented yet.
>
> Reported-by: Anders Roxell <anders.roxell@linaro.org>
> Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
> ---
>   platform/linux-keystone2/include/api/odp_buffer.h |    8 +++++---
>   1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/platform/linux-keystone2/include/api/odp_buffer.h b/platform/linux-keystone2/include/api/odp_buffer.h
> index aa8e740..487791d 100644
> --- a/platform/linux-keystone2/include/api/odp_buffer.h
> +++ b/platform/linux-keystone2/include/api/odp_buffer.h
> @@ -56,9 +56,11 @@ size_t odp_buffer_size(odp_buffer_t buf);
>   int odp_buffer_type(odp_buffer_t buf);
>   
>   #define ODP_BUFFER_TYPE_INVALID (-1) /**< Buffer type invalid */
> -#define ODP_BUFFER_TYPE_RAW       0  /**< Raw buffer */
> -#define ODP_BUFFER_TYPE_PACKET    1  /**< Packet buffer */
> -#define ODP_BUFFER_TYPE_TIMER     2  /**< Timer buffer */
> +#define ODP_BUFFER_TYPE_ANY       0  /**< Buffer that can hold any other
> +					  buffer type */
> +#define ODP_BUFFER_TYPE_RAW       1  /**< Raw buffer, no additional metadata */
> +#define ODP_BUFFER_TYPE_PACKET    2  /**< Packet buffer */
> +#define ODP_BUFFER_TYPE_TIMEOUT   3  /**< Timeout buffer */
>   
>   /**
>    * Tests if buffer is part of a scatter/gather list
diff mbox

Patch

diff --git a/platform/linux-keystone2/include/api/odp_buffer.h b/platform/linux-keystone2/include/api/odp_buffer.h
index aa8e740..487791d 100644
--- a/platform/linux-keystone2/include/api/odp_buffer.h
+++ b/platform/linux-keystone2/include/api/odp_buffer.h
@@ -56,9 +56,11 @@  size_t odp_buffer_size(odp_buffer_t buf);
 int odp_buffer_type(odp_buffer_t buf);
 
 #define ODP_BUFFER_TYPE_INVALID (-1) /**< Buffer type invalid */
-#define ODP_BUFFER_TYPE_RAW       0  /**< Raw buffer */
-#define ODP_BUFFER_TYPE_PACKET    1  /**< Packet buffer */
-#define ODP_BUFFER_TYPE_TIMER     2  /**< Timer buffer */
+#define ODP_BUFFER_TYPE_ANY       0  /**< Buffer that can hold any other
+					  buffer type */
+#define ODP_BUFFER_TYPE_RAW       1  /**< Raw buffer, no additional metadata */
+#define ODP_BUFFER_TYPE_PACKET    2  /**< Packet buffer */
+#define ODP_BUFFER_TYPE_TIMEOUT   3  /**< Timeout buffer */
 
 /**
  * Tests if buffer is part of a scatter/gather list