lockdep.c 660 B

123456789101112131415161718192021222324252627
  1. #include <linux/lockdep.h>
  2. #include <stdlib.h>
  3. /* Trivial API wrappers, we don't (yet) have RCU in user-space: */
  4. #define hlist_for_each_entry_rcu hlist_for_each_entry
  5. #define hlist_add_head_rcu hlist_add_head
  6. #define hlist_del_rcu hlist_del
  7. #define list_for_each_entry_rcu list_for_each_entry
  8. #define list_add_tail_rcu list_add_tail
  9. u32 prandom_u32(void)
  10. {
  11. /* Used only by lock_pin_lock() which is dead code */
  12. abort();
  13. }
  14. static struct new_utsname *init_utsname(void)
  15. {
  16. static struct new_utsname n = (struct new_utsname) {
  17. .release = "liblockdep",
  18. .version = LIBLOCKDEP_VERSION,
  19. };
  20. return &n;
  21. }
  22. #include "../../../kernel/locking/lockdep.c"