Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _LIBLOCKDEP_LOCKDEP_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _LIBLOCKDEP_LOCKDEP_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <sys/prctl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <sys/syscall.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include <string.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <limits.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <linux/utsname.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/compiler.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/export.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/kern_levels.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/err.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/rcu.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/list.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <linux/hardirq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <unistd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define MAX_LOCK_DEPTH 63UL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define asmlinkage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define __visible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #include "../../../include/linux/lockdep.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) struct task_struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	u64 curr_chain_key;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	int lockdep_depth;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	unsigned int lockdep_recursion;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	struct held_lock held_locks[MAX_LOCK_DEPTH];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	gfp_t lockdep_reclaim_gfp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	int pid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	int state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	char comm[17];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define TASK_RUNNING 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) extern struct task_struct *__curr(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define current (__curr())
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) static inline int debug_locks_off(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	return 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define task_pid_nr(tsk) ((tsk)->pid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define KSYM_NAME_LEN 128
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define printk(...) dprintf(STDOUT_FILENO, __VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #define pr_warn pr_err
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define pr_cont pr_err
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #define list_del_rcu list_del
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define atomic_t unsigned long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define atomic_inc(x) ((*(x))++)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define print_tainted() ""
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #define static_obj(x) 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #define debug_show_all_locks()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) extern void debug_check_no_locks_held(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) static __used bool __is_kernel_percpu_address(unsigned long addr, void *can_addr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) 	return false;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #endif