Commit 01c5f22c authored by Roman Stratiienko's avatar Roman Stratiienko Committed by Jan Kiszka

kernel: cobalt: use printk instead of print_symbol on v4.16 and later

print_symbol() removed since v4.16-rc1 commit d2279c9d7f7d
("kallsyms: remove print_symbol() function")
use print_symbol for version less than v4.16 and printk starting from v4.16
Signed-off-by: default avatarRoman Stratiienko <roman.stratiienko@globallogic.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent f3964312
......@@ -747,8 +747,13 @@ static inline int handle_exception(struct ipipe_trap_data *d)
}
splexit(s);
#endif /* CONFIG_XENO_ARCH_FPU */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)
printk("invalid use of FPU in Xenomai context at %pS\n",
(void *)xnarch_fault_pc(d));
#else
print_symbol("invalid use of FPU in Xenomai context at %s\n",
xnarch_fault_pc(d));
#endif
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment