Work around build error with gcc <10

linux/six.c: In function ‘__six_lock_type_slowpath’:
linux/six.c:73:6: error: ‘old.<U81c8>.v’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: Justin Husted <sigstop@gmail.com>
This commit is contained in:
Justin Husted 2021-06-05 02:15:22 -07:00
parent 0335d55043
commit f6d87e9a87

View File

@ -139,7 +139,7 @@ static __always_inline bool do_six_trylock_type(struct six_lock *lock,
bool try)
{
const struct six_lock_vals l[] = LOCK_VALS;
union six_lock_state old, new;
union six_lock_state old = {0}, new;
bool ret;
u64 v;