From: Heiko Carstens Date: Thu, 12 Oct 2023 07:40:33 +0000 (+0200) Subject: s390/mm,fault: use pr_warn_ratelimited() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c9b611bf6e576aa1a03ac097b74322af56cb7052;p=linux.git s390/mm,fault: use pr_warn_ratelimited() Use pr_warn_ratelimited() instead of printk_ratelimited(). checkpatch reports: WARNING: Prefer ... pr_warn_ratelimited(... to printk_ratelimited(KERN_WARNING ... + printk_ratelimited(KERN_WARNING Reviewed-by: Claudio Imbrenda Signed-off-by: Heiko Carstens Signed-off-by: Vasily Gorbik --- diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index d22a8fe5e4fcc..dcea87f9ef683 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c @@ -661,9 +661,8 @@ void do_secure_storage_violation(struct pt_regs *regs) * This exception is only triggered when a guest 2 is running * and can therefore never occur in kernel context. */ - printk_ratelimited(KERN_WARNING - "Secure storage violation in task: %s, pid %d\n", - current->comm, current->pid); + pr_warn_ratelimited("Secure storage violation in task: %s, pid %d\n", + current->comm, current->pid); send_sig(SIGSEGV, current, 0); }