X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Flockdep.h;h=036095249792419dc959a41cc21c93eb5972d5ba;hb=c088e31d2828deb92ae03b99ad2aad0f0492e09c;hp=2e75dc34bff5cd3e468571918329793eaf7a0911;hpb=0217690f888e1894fd038b8e70aa5a5d6fd5e5d3;p=mirror_ubuntu-bionic-kernel.git diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 2e75dc34bff5..036095249792 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h @@ -313,6 +313,8 @@ static inline int lockdep_match_key(struct lockdep_map *lock, return lock->key == key; } +struct lock_class *lockdep_hlock_class(struct held_lock *hlock); + /* * Acquire a lock. * @@ -442,6 +444,7 @@ struct lockdep_map { }; #define lockdep_depth(tsk) (0) +#define lockdep_is_held(lock) (1) #define lockdep_is_held_type(l, r) (1) #define lockdep_assert_held(l) do { (void)(l); } while (0) @@ -475,8 +478,6 @@ enum xhlock_context_t { #define STATIC_LOCKDEP_MAP_INIT(_name, _key) \ { .name = (_name), .key = (void *)(_key), } -static inline void crossrelease_hist_start(enum xhlock_context_t c) {} -static inline void crossrelease_hist_end(enum xhlock_context_t c) {} static inline void lockdep_invariant_state(bool force) {} static inline void lockdep_init_task(struct task_struct *task) {} static inline void lockdep_free_task(struct task_struct *task) {}