From 6fe391e5c3b97d2e60fcaad102ab96852a5e033b Mon Sep 17 00:00:00 2001 From: Lijun Fang Date: Thu, 14 Apr 2022 09:33:48 +0000 Subject: [PATCH] svm: Delete unused function sysrq_sched_debug_show_export ascend inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I4UR5Y CVE: NA -------------------- Delete unused function sysrq_sched_debug_show_export Signed-off-by: Lijun Fang Reviewed-by: Weilong Chen Signed-off-by: Yongqiang Liu --- drivers/char/svm.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/char/svm.c b/drivers/char/svm.c index c48cbce39661..864cb79c6738 100644 --- a/drivers/char/svm.c +++ b/drivers/char/svm.c @@ -163,8 +163,6 @@ static char *svm_cmd_to_string(unsigned int cmd) return NULL; } -extern void sysrq_sched_debug_tidy(void); - /* * image word of slot * SVM_IMAGE_WORD_INIT: initial value, indicating that the slot is not used. @@ -423,17 +421,6 @@ static int svm_va2pa_trunk_init(struct device *dev) return 0; } -void sysrq_sched_debug_show_export(void) -{ -#ifdef CONFIG_SCHED_DEBUG - sysrq_sched_debug_tidy(); -#else - pr_err("Not open CONFIG_SCHED_DEBUG\n"); -#endif - panic("pcie heart miss\n"); -} -EXPORT_SYMBOL(sysrq_sched_debug_show_export); - static struct svm_process *find_svm_process(unsigned long asid) { struct rb_node *node = svm_process_root.rb_node; -- GitLab