summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorYuntao Wang <ytcoode@gmail.com>2023-12-20 04:01:24 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-29 21:22:28 +0100
commit43132282d8efc3fe8a90ecd97a715559ed510b5d (patch)
tree746417a9e05afabfbb1f6e05bf469e6561111add /mm
parentnilfs2: add missing set_freezable() for freezable kthread (diff)
downloadlinux-43132282d8efc3fe8a90ecd97a715559ed510b5d.tar.xz
linux-43132282d8efc3fe8a90ecd97a715559ed510b5d.zip
x86/kexec: use pr_err() instead of kexec_dprintk() when an error occurs
When detecting an error, the current code uses kexec_dprintk() to output log message. This is not quite appropriate as kexec_dprintk() is mainly used for outputting debugging messages, rather than error messages. Replace kexec_dprintk() with pr_err(). This also makes the output method for this error log align with the output method for other error logs in this function. Additionally, the last return statement in set_page_address() is unnecessary, remove it. Link: https://lkml.kernel.org/r/20231220030124.149160-1-ytcoode@gmail.com Signed-off-by: Yuntao Wang <ytcoode@gmail.com> Cc: Baoquan He <bhe@redhat.com> Cc: Borislav Petkov (AMD) <bp@alien8.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/highmem.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/highmem.c b/mm/highmem.c
index e19269093a93..bd48ba445dd4 100644
--- a/mm/highmem.c
+++ b/mm/highmem.c
@@ -799,8 +799,6 @@ void set_page_address(struct page *page, void *virtual)
}
spin_unlock_irqrestore(&pas->lock, flags);
}
-
- return;
}
void __init page_address_init(void)