From d228e43048dd7d915ca90bff7f54ea5a82234016 Mon Sep 17 00:00:00 2001 From: jpsollie Date: Thu, 10 Jun 2021 14:33:51 +0200 Subject: Cleanup Makefile for better compatibility + enable "make debug" - clean up Makefile to improve compiler compatibility - add a "Make debug" target for easier debug builds - update INSTALL - fix six.c when running "make debug" against GCC 9 (maybe-uninitialized) Signed-off by: Janpieter Sollie --- linux/six.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux') diff --git a/linux/six.c b/linux/six.c index fca12087..c4ae4e0d 100644 --- a/linux/six.c +++ b/linux/six.c @@ -142,6 +142,8 @@ static __always_inline bool do_six_trylock_type(struct six_lock *lock, union six_lock_state old, new; bool ret; u64 v; + old.v = 0; + new.v = 0; EBUG_ON(type == SIX_LOCK_write && lock->owner != current); EBUG_ON(type == SIX_LOCK_write && (lock->state.seq & 1)); -- cgit v1.2.3