提交 66f5ae89 编写于 作者: R Richard Henderson 提交者: Theodore Ts'o

linux/random.h: Use false with bool

Keep the generic fallback versions in sync with the other architecture
specific implementations and use the proper name for false.
Suggested-by: NArd Biesheuvel <ardb@kernel.org>
Signed-off-by: NRichard Henderson <rth@twiddle.net>
Signed-off-by: NMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200110145422.49141-6-broonie@kernel.orgSigned-off-by: NTheodore Ts'o <tytso@mit.edu>
上级 647f50d5
......@@ -169,19 +169,19 @@ static inline void prandom_seed_state(struct rnd_state *state, u64 seed)
#else
static inline bool arch_get_random_long(unsigned long *v)
{
return 0;
return false;
}
static inline bool arch_get_random_int(unsigned int *v)
{
return 0;
return false;
}
static inline bool arch_get_random_seed_long(unsigned long *v)
{
return 0;
return false;
}
static inline bool arch_get_random_seed_int(unsigned int *v)
{
return 0;
return false;
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册