1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12#ifndef __LINUX_DEBUG_LOCKING_H 13#define __LINUX_DEBUG_LOCKING_H 14 15struct task_struct; 16 17#define _RET_IP_ (unsigned long)__builtin_return_address(0) 18#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) 19 20#define DEBUG_LOCKS_WARN_ON(c) ({ int __ret = 0; if (unlikely(c)) { if (debug_locks_off()) WARN_ON(1); __ret = 1; } __ret; }) 21 22#define SMP_DEBUG_LOCKS_WARN_ON(c) do { } while (0) 23 24#define locking_selftest() do { } while (0) 25 26#endif 27