Re: [LEDE-DEV] [PATCH ubox 1/3] kmodloader: fix endianess check

2017-08-30 Thread Florian Fainelli
On 08/30/2017 06:23 AM, Hans Dedecker wrote: > Use __BYTE_ORDER macro to check system endianess as the macro's > __LITTLE_ENDIAN, __BIG_ENDIAN are defined irrespective of the > sytem endianess leading to an endianess check failure on big > endian systems. Good catch, can you add a Fixes: tag for t

Re: [LEDE-DEV] [PATCH ubox 1/3] kmodloader: fix endianess check

2017-08-30 Thread John Crispin
On 30/08/17 15:23, Hans Dedecker wrote: Use __BYTE_ORDER macro to check system endianess as the macro's __LITTLE_ENDIAN, __BIG_ENDIAN are defined irrespective of the sytem endianess leading to an endianess check failure on big endian systems. Thanks ! Acked-by: John Crispin ... feel free t

[LEDE-DEV] [PATCH ubox 1/3] kmodloader: fix endianess check

2017-08-30 Thread Hans Dedecker
Use __BYTE_ORDER macro to check system endianess as the macro's __LITTLE_ENDIAN, __BIG_ENDIAN are defined irrespective of the sytem endianess leading to an endianess check failure on big endian systems. Signed-off-by: Hans Dedecker --- kmodloader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 de