mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
tools/lib/lockdep: Remove private kernel headers
Move to using tools/include/ instead. Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: acme@redhat.com Link: http://lkml.kernel.org/r/20170531003747.10557-2-alexander.levin@verizon.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
committed by
Ingo Molnar
parent
4ea4b3c257
commit
e58e871bec
4
tools/include/asm/sections.h
Normal file
4
tools/include/asm/sections.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef __TOOLS_INCLUDE_LINUX_ASM_SECTIONS_H
|
||||
#define __TOOLS_INCLUDE_LINUX_ASM_SECTIONS_H
|
||||
|
||||
#endif /* __TOOLS_INCLUDE_LINUX_ASM_SECTIONS_H */
|
||||
@@ -45,6 +45,10 @@
|
||||
# define __maybe_unused __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#ifndef __used
|
||||
# define __used __attribute__((__unused__))
|
||||
#endif
|
||||
|
||||
#ifndef __packed
|
||||
# define __packed __attribute__((__packed__))
|
||||
#endif
|
||||
@@ -65,6 +69,14 @@
|
||||
# define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
#endif
|
||||
|
||||
#ifndef __init
|
||||
# define __init
|
||||
#endif
|
||||
|
||||
#ifndef noinline
|
||||
# define noinline
|
||||
#endif
|
||||
|
||||
#define uninitialized_var(x) x = *(&(x))
|
||||
|
||||
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <asm/bug.h>
|
||||
|
||||
#define DEBUG_LOCKS_WARN_ON(x) WARN_ON(x)
|
||||
|
||||
4
tools/include/linux/delay.h
Normal file
4
tools/include/linux/delay.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef _TOOLS_INCLUDE_LINUX_DELAY_H
|
||||
#define _TOOLS_INCLUDE_LINUX_DELAY_H
|
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_DELAY_H */
|
||||
4
tools/include/linux/ftrace.h
Normal file
4
tools/include/linux/ftrace.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef _TOOLS_INCLUDE_LINUX_FTRACE_H
|
||||
#define _TOOLS_INCLUDE_LINUX_FTRACE_H
|
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_FTRACE_H */
|
||||
4
tools/include/linux/gfp.h
Normal file
4
tools/include/linux/gfp.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef _TOOLS_INCLUDE_LINUX_GFP_H
|
||||
#define _TOOLS_INCLUDE_LINUX_GFP_H
|
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_GFP_H */
|
||||
4
tools/include/linux/interrupt.h
Normal file
4
tools/include/linux/interrupt.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef _TOOLS_INCLUDE_LINUX_INTERRUPT_H
|
||||
#define _TOOLS_INCLUDE_LINUX_INTERRUPT_H
|
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_INTERRUPT_H */
|
||||
@@ -32,6 +32,7 @@
|
||||
(type *)((char *)__mptr - offsetof(type, member)); })
|
||||
#endif
|
||||
|
||||
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
|
||||
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
|
||||
|
||||
#ifndef max
|
||||
@@ -89,4 +90,7 @@ int scnprintf(char * buf, size_t size, const char * fmt, ...);
|
||||
#define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)
|
||||
#define round_down(x, y) ((x) & ~__round_mask(x, y))
|
||||
|
||||
#define current_gfp_context(k) 0
|
||||
#define synchronize_sched()
|
||||
|
||||
#endif
|
||||
|
||||
4
tools/include/linux/linkage.h
Normal file
4
tools/include/linux/linkage.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef _TOOLS_INCLUDE_LINUX_LINKAGE_H
|
||||
#define _TOOLS_INCLUDE_LINUX_LINKAGE_H
|
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_LINKAGE_H */
|
||||
@@ -7,6 +7,12 @@
|
||||
#include <limits.h>
|
||||
#include <linux/utsname.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/kern_levels.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/rcu.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/hardirq.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define MAX_LOCK_DEPTH 63UL
|
||||
@@ -39,6 +45,8 @@ static inline int debug_locks_off(void)
|
||||
|
||||
#define KSYM_NAME_LEN 128
|
||||
#define printk(...) dprintf(STDOUT_FILENO, __VA_ARGS__)
|
||||
#define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
|
||||
#define pr_warn pr_err
|
||||
|
||||
#define list_del_rcu list_del
|
||||
|
||||
4
tools/include/linux/mutex.h
Normal file
4
tools/include/linux/mutex.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef _TOOLS_INCLUDE_LINUX_MUTEX_H
|
||||
#define _TOOLS_INCLUDE_LINUX_MUTEX_H
|
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_MUTEX_H */
|
||||
4
tools/include/linux/proc_fs.h
Normal file
4
tools/include/linux/proc_fs.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef _TOOLS_INCLUDE_LINUX_PROC_FS_H
|
||||
#define _TOOLS_INCLUDE_LINUX_PROC_FS_H
|
||||
|
||||
#endif /* _TOOLS_INCLUDE_LINUX_PROC_FS_H */
|
||||
@@ -19,5 +19,6 @@ static inline bool rcu_is_watching(void)
|
||||
}
|
||||
|
||||
#define rcu_assign_pointer(p, v) ((p) = (v))
|
||||
#define RCU_INIT_POINTER(p, v) p=(v)
|
||||
|
||||
#endif
|
||||
4
tools/include/linux/sched/clock.h
Normal file
4
tools/include/linux/sched/clock.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef _TOOLS_PERF_LINUX_SCHED_CLOCK_H
|
||||
#define _TOOLS_PERF_LINUX_SCHED_CLOCK_H
|
||||
|
||||
#endif /* _TOOLS_PERF_LINUX_SCHED_CLOCK_H */
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user