Browse Source

fix bch compile.

Signed-off-by: qiaochong <qiaochong@loongson.cn>
master
qiaochong 10 years ago
committed by Chong Qiao
parent
commit
f7d442d1ab
  1. 27
      include/ubifs_pmon.h
  2. 2
      lib/libc/bch.c

27
include/ubifs_pmon.h

@ -122,33 +122,6 @@ typedef unsigned __bitwise__ gfp_t;
# define uswap_64(x) _uswap_64(x, )
#endif
#if BYTE_ORDER == LITTLE_ENDIAN
# define cpu_to_le16(x) (x)
# define cpu_to_le32(x) (x)
# define cpu_to_le64(x) (x)
# define le16_to_cpu(x) (x)
# define le32_to_cpu(x) (x)
# define le64_to_cpu(x) (x)
# define cpu_to_be16(x) uswap_16(x)
# define cpu_to_be32(x) uswap_32(x)
# define cpu_to_be64(x) uswap_64(x)
# define be16_to_cpu(x) uswap_16(x)
# define be32_to_cpu(x) uswap_32(x)
# define be64_to_cpu(x) uswap_64(x)
#else
# define cpu_to_le16(x) uswap_16(x)
# define cpu_to_le32(x) uswap_32(x)
# define cpu_to_le64(x) uswap_64(x)
# define le16_to_cpu(x) uswap_16(x)
# define le32_to_cpu(x) uswap_32(x)
# define le64_to_cpu(x) uswap_64(x)
# define cpu_to_be16(x) (x)
# define cpu_to_be32(x) (x)
# define cpu_to_be64(x) (x)
# define be16_to_cpu(x) (x)
# define be32_to_cpu(x) (x)
# define be64_to_cpu(x) (x)
#endif
#endif

2
lib/libc/bch.c

@ -65,7 +65,7 @@
* finite fields GF(2^q). In Rapport de recherche INRIA no 2829, 1996.
*/
//#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/errno.h>
//#include <linux/init.h>
//#include <linux/module.h>

Loading…
Cancel
Save