hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/lib/lockdep/preload.c
....@@ -270,7 +270,7 @@
270270 */
271271 r = ll_pthread_mutex_lock(mutex);
272272 if (r)
273
- lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_);
273
+ lock_release(&__get_lock(mutex)->dep_map, (unsigned long)_RET_IP_);
274274
275275 return r;
276276 }
....@@ -284,7 +284,7 @@
284284 lock_acquire(&__get_lock(mutex)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_);
285285 r = ll_pthread_mutex_trylock(mutex);
286286 if (r)
287
- lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_);
287
+ lock_release(&__get_lock(mutex)->dep_map, (unsigned long)_RET_IP_);
288288
289289 return r;
290290 }
....@@ -295,7 +295,7 @@
295295
296296 try_init_preload();
297297
298
- lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_);
298
+ lock_release(&__get_lock(mutex)->dep_map, (unsigned long)_RET_IP_);
299299 /*
300300 * Just like taking a lock, only in reverse!
301301 *
....@@ -355,7 +355,7 @@
355355 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 2, 1, NULL, (unsigned long)_RET_IP_);
356356 r = ll_pthread_rwlock_rdlock(rwlock);
357357 if (r)
358
- lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_);
358
+ lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_);
359359
360360 return r;
361361 }
....@@ -369,7 +369,7 @@
369369 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 1, 2, 1, NULL, (unsigned long)_RET_IP_);
370370 r = ll_pthread_rwlock_tryrdlock(rwlock);
371371 if (r)
372
- lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_);
372
+ lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_);
373373
374374 return r;
375375 }
....@@ -383,7 +383,7 @@
383383 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_);
384384 r = ll_pthread_rwlock_trywrlock(rwlock);
385385 if (r)
386
- lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_);
386
+ lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_);
387387
388388 return r;
389389 }
....@@ -397,7 +397,7 @@
397397 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_);
398398 r = ll_pthread_rwlock_wrlock(rwlock);
399399 if (r)
400
- lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_);
400
+ lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_);
401401
402402 return r;
403403 }
....@@ -408,7 +408,7 @@
408408
409409 init_preload();
410410
411
- lock_release(&__get_lock(rwlock)->dep_map, 0, (unsigned long)_RET_IP_);
411
+ lock_release(&__get_lock(rwlock)->dep_map, (unsigned long)_RET_IP_);
412412 r = ll_pthread_rwlock_unlock(rwlock);
413413 if (r)
414414 lock_acquire(&__get_lock(rwlock)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_);