xen: make CONFIG_DEBUG_LOCKS usable without CONFIG_DEBUG
authorJuergen Gross <jgross@suse.com>
Tue, 21 Jan 2020 10:13:01 +0000 (11:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 Jan 2020 15:16:23 +0000 (15:16 +0000)
commite8660f82c9731d3ab913b58a2304eef09461f2c3
tree920fc8a4ba2abbc3b880c9c8c61082dba1cc6102
parentd3d86f711a339ed1a875e25ae456e90059eb18bb
xen: make CONFIG_DEBUG_LOCKS usable without CONFIG_DEBUG

In expert mode it is possible to enable CONFIG_DEBUG_LOCKS without
having enabled CONFIG_DEBUG. The coding is depending on CONFIG_DEBUG
as it is using ASSERT(), however.

Fix that by using BUG_ON() instead of ASSERT() in rel_lock().

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/spinlock.c