diff --git a/kmod/src/Makefile.kernelcompat b/kmod/src/Makefile.kernelcompat index 45c42e9b..6d784f69 100644 --- a/kmod/src/Makefile.kernelcompat +++ b/kmod/src/Makefile.kernelcompat @@ -196,15 +196,6 @@ ifneq (,$(shell grep 'struct list_lru_one \*list, spinlock_t \*lock, void \*cb_a ccflags-y += -DKC_LIST_LRU_WALK_CB_LIST_LOCK endif -# -# v5.1-rc4-273-ge9b98e162aa5 -# -# introduce stack trace helpers -# -ifneq (,$(shell grep '^unsigned int stack_trace_save' include/linux/stacktrace.h)) -ccflags-y += -DKC_STACK_TRACE_SAVE -endif - # # v3.14-rc1-7-g4e34e719e457 # diff --git a/kmod/src/kernelcompat.h b/kmod/src/kernelcompat.h index ea37a7fb..cfa78214 100644 --- a/kmod/src/kernelcompat.h +++ b/kmod/src/kernelcompat.h @@ -207,32 +207,6 @@ unsigned long kc_list_lru_shrink_walk(struct list_lru *lru, struct shrink_contro #define kc_list_lru_shrink_walk list_lru_shrink_walk #endif -#ifndef KC_STACK_TRACE_SAVE -#include -static inline unsigned int stack_trace_save(unsigned long *store, unsigned int size, - unsigned int skipnr) -{ - struct stack_trace trace = { - .entries = store, - .max_entries = size, - .skip = skipnr, - }; - - save_stack_trace(&trace); - return trace.nr_entries; -} - -static inline void stack_trace_print(unsigned long *entries, unsigned int nr_entries, int spaces) -{ - struct stack_trace trace = { - .entries = entries, - .nr_entries = nr_entries, - }; - - print_stack_trace(&trace, spaces); -} -#endif - #ifndef KC_TIMER_CONTAINER_OF #define timer_container_of(var, callback_timer, timer_fieldname) \ from_timer(var, callback_timer, timer_fieldname)