提交 7c8ae03f 编写于 作者: S Stephan Mueller 提交者: Herbert Xu

crypto: drbg - fix sparse warning for cpu_to_be[32|64]

The sparse tool complained that the cpu_to_be[32|64] functions return
__be[32|64] instead of __u32 or __u64. The patch replaces the __u32 and
__u64 with __be32 and __be64.
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NStephan Mueller <smueller@chronox.de>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 4c1948fc
......@@ -277,7 +277,7 @@ static bool drbg_fips_continuous_test(struct drbg_state *drbg,
static inline void drbg_cpu_to_be32(__u32 val, unsigned char *buf)
{
struct s {
__u32 conv;
__be32 conv;
};
struct s *conversion = (struct s *) buf;
......@@ -989,7 +989,7 @@ static int drbg_hash_generate(struct drbg_state *drbg,
int ret = 0;
union {
unsigned char req[8];
__u64 req_int;
__be64 req_int;
} u;
unsigned char prefix = DRBG_PREFIX3;
struct drbg_string data1, data2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册