summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorjpsollie <janpieter.sollie@edpnet.be>2021-06-10 14:33:51 +0200
committerKent Overstreet <kent.overstreet@gmail.com>2021-06-13 01:14:47 -0400
commitd228e43048dd7d915ca90bff7f54ea5a82234016 (patch)
tree6d85e015ed18cb0f4c0e99984ce8a66dd5cb306d /linux
parent0fbe294a96bfecf7cb2d1fdb747f5c541f62b47f (diff)
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 <janpieter.sollie@edpnet.be>
Diffstat (limited to 'linux')
-rw-r--r--linux/six.c2
1 files changed, 2 insertions, 0 deletions
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));