forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/misc/sgi-xp/xpc_channel.c
....@@ -28,7 +28,7 @@
2828 {
2929 enum xp_retval ret;
3030
31
- DBUG_ON(!spin_is_locked(&ch->lock));
31
+ lockdep_assert_held(&ch->lock);
3232
3333 if (!(ch->flags & XPC_C_OPENREQUEST) ||
3434 !(ch->flags & XPC_C_ROPENREQUEST)) {
....@@ -82,7 +82,7 @@
8282 struct xpc_partition *part = &xpc_partitions[ch->partid];
8383 u32 channel_was_connected = (ch->flags & XPC_C_WASCONNECTED);
8484
85
- DBUG_ON(!spin_is_locked(&ch->lock));
85
+ lockdep_assert_held(&ch->lock);
8686
8787 if (!(ch->flags & XPC_C_DISCONNECTING))
8888 return;
....@@ -755,7 +755,7 @@
755755 {
756756 u32 channel_was_connected = (ch->flags & XPC_C_CONNECTED);
757757
758
- DBUG_ON(!spin_is_locked(&ch->lock));
758
+ lockdep_assert_held(&ch->lock);
759759
760760 if (ch->flags & (XPC_C_DISCONNECTING | XPC_C_DISCONNECTED))
761761 return;