Fix style issues Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
and move the definition from endian.h to sys/endian.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>