I am not sure I understand the problem ?
The files were originated from the following commit ID which was the
last commit ID in the api-next branch when I did the patch...

I have had a review from Anders and will send a v2 anyway now

Christophe.


Christophe
commit 77a27212b563299959fb2a609b86bb9117a8f918
Author: Barry Spinney <spin...@mellanox.com>
Date:   Wed Jul 13 11:59:40 2016 -0500

    api: tm: resolve todo

    This todo just asks a question which is no longer important.

    Signed-off-by: Barry Spinney <spin...@mellanox.com>
    Signed-off-by: Bill Fischofer <bill.fischo...@linaro.org>
    Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org>

On 20 July 2016 at 20:49, Maxim Uvarov <maxim.uva...@linaro.org> wrote:
> On 07/18/16 20:49, Christophe Milard wrote:
>>
>> duplicated from the API side
>> (hash: 77a27212b563299959fb2a609b86bb9117a8f918.)
>
> all commits have reference to this hash which looks like not very correlate
> with what should it be....
>
> Maxim.
>
>
>> Signed-off-by: Christophe Milard <christophe.mil...@linaro.org>
>> ---
>>   include/odp_drv.h                              |  1 +
>>   platform/linux-generic/Makefile.am             |  1 +
>>   platform/linux-generic/include/odp/drv/align.h | 60
>> ++++++++++++++++++++++++++
>>   3 files changed, 62 insertions(+)
>>   create mode 100644 platform/linux-generic/include/odp/drv/align.h
>>
>> diff --git a/include/odp_drv.h b/include/odp_drv.h
>> index e2c3bda..6d2f7ff 100644
>> --- a/include/odp_drv.h
>> +++ b/include/odp_drv.h
>> @@ -18,6 +18,7 @@
>>   extern C {
>>   #endif
>>   +#include <odp/drv/align.h>
>>   #include <odp/drv/byteorder.h>
>>   #include <odp/drv/compiler.h>
>>   #include <odp/drv/std_types.h>
>> diff --git a/platform/linux-generic/Makefile.am
>> b/platform/linux-generic/Makefile.am
>> index 68db647..20b4b29 100644
>> --- a/platform/linux-generic/Makefile.am
>> +++ b/platform/linux-generic/Makefile.am
>> @@ -93,6 +93,7 @@ odpapiplatinclude_HEADERS = \
>>     odpdrvincludedir = $(includedir)/odp/drv
>>   odpdrvinclude_HEADERS = \
>> +                 $(srcdir)/include/odp/drv/align.h \
>>                   $(srcdir)/include/odp/drv/byteorder.h \
>>                   $(srcdir)/include/odp/drv/compiler.h \
>>                   $(srcdir)/include/odp/drv/std_types.h \
>> diff --git a/platform/linux-generic/include/odp/drv/align.h
>> b/platform/linux-generic/include/odp/drv/align.h
>> new file mode 100644
>> index 0000000..9ae3e19
>> --- /dev/null
>> +++ b/platform/linux-generic/include/odp/drv/align.h
>> @@ -0,0 +1,60 @@
>> +/* Copyright (c) 2013, Linaro Limited
>> + * All rights reserved.
>> + *
>> + * SPDX-License-Identifier:    BSD-3-Clause
>> + */
>> +
>> +/**
>> + * @file
>> + *
>> + * ODPDRV alignments
>> + */
>> +
>> +#ifndef ODPDRV_PLAT_ALIGN_H_
>> +#define ODPDRV_PLAT_ALIGN_H_
>> +
>> +#ifdef __cplusplus
>> +extern "C" {
>> +#endif
>> +
>> +/** @ingroup odpdrv_compiler_optim
>> + *  @{
>> + */
>> +
>> +#ifdef __GNUC__
>> +
>> +#define ODPDRV_ALIGNED(x) __attribute__((__aligned__(x)))
>> +
>> +#define ODPDRV_PACKED __attribute__((__packed__))
>> +
>> +#define ODPDRV_OFFSETOF(type, member) __builtin_offsetof(type, member)
>> +
>> +#define ODPDRV_FIELD_SIZEOF(type, member) sizeof(((type *)0)->member)
>> +
>> +#if defined __arm__ || defined __aarch64__
>> +
>> +#define ODPDRV_CACHE_LINE_SIZE 64
>> +
>> +#endif
>> +
>> +#else
>> +#error Non-gcc compatible compiler
>> +#endif
>> +
>> +#define ODPDRV_PAGE_SIZE       4096
>> +
>> +#define ODPDRV_ALIGNED_CACHE   ODPDRV_ALIGNED(ODPDRV_CACHE_LINE_SIZE)
>> +
>> +#define ODPDRV_ALIGNED_PAGE    ODPDRV_ALIGNED(ODPDRV_PAGE_SIZE)
>> +
>> +/**
>> + * @}
>> + */
>> +
>> +#include <odp/drv/spec/align.h>
>> +
>> +#ifdef __cplusplus
>> +}
>> +#endif
>> +
>> +#endif
>
>

Reply via email to