File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
drivers/gpu/drm/amd/amdkcl Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 88#include <linux/kallsyms.h>
99#include <linux/bug.h>
1010
11- #if LINUX_VERSION_CODE < KERNEL_VERSION (2 , 6 , 33 ) && \
12- LINUX_VERSION_CODE > KERNEL_VERSION (5 , 7 , 0 )
11+ #if LINUX_VERSION_CODE < KERNEL_VERSION (2 , 6 , 33 )
1312extern unsigned long (* _kcl_kallsyms_lookup_name )(const char * name );
1413#endif
1514static inline unsigned long kcl_kallsyms_lookup_name (const char * name )
1615{
17- #if LINUX_VERSION_CODE < KERNEL_VERSION (2 , 6 , 33 ) && \
18- LINUX_VERSION_CODE > KERNEL_VERSION (5 , 7 , 0 )
16+ #if LINUX_VERSION_CODE < KERNEL_VERSION (2 , 6 , 33 )
1917 return _kcl_kallsyms_lookup_name (name );
18+ #elif LINUX_VERSION_CODE >= KERNEL_VERSION (5 , 7 , 0 )
19+ return (unsigned long )__symbol_get (name );
2020#else
2121 return kallsyms_lookup_name (name );
2222#endif
Original file line number Diff line number Diff line change 11SYMS=""
22
3- if version_lt 2.6.33 || version_gt 5.7.0 ; then
3+ if version_lt 2.6.33; then
44 SYMS+=" kallsyms_lookup_name"
55fi
You can’t perform that action at this time.
0 commit comments