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) #include <linux/lockdep.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #include <stdlib.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) /* Trivial API wrappers, we don't (yet) have RCU in user-space: */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define hlist_for_each_entry_rcu	hlist_for_each_entry
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #define hlist_add_head_rcu		hlist_add_head
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define hlist_del_rcu			hlist_del
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define list_for_each_entry_rcu		list_for_each_entry
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define list_add_tail_rcu		list_add_tail
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) u32 prandom_u32(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	/* Used only by lock_pin_lock() which is dead code */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	abort();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) void print_irqtrace_events(struct task_struct *curr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	abort();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) static struct new_utsname *init_utsname(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	static struct new_utsname n = (struct new_utsname) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 		.release = "liblockdep",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 		.version = LIBLOCKDEP_VERSION,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	};
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	return &n;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #include "../../../kernel/locking/lockdep.c"