kmodloader: fix endianess check
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 30 Aug 2017 13:23:58 +0000 (15:23 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 30 Aug 2017 17:12:51 +0000 (19:12 +0200)
commit9cb63df9b905e735c718d582b1d65cdff383cbd3
treea091e38530460dc87cda3cb996e1a313e5f8658c
parent2cff779140b7b10256d722c9267f8a38c9fba088
kmodloader: fix endianess check

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 <dedeckeh@gmail.com>
Acked-by: John Crispin <john@phrozen.org>
kmodloader.c