s390/mm,fault: use pr_warn_ratelimited()
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 12 Oct 2023 07:40:33 +0000 (09:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 23 Oct 2023 16:21:21 +0000 (18:21 +0200)
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 <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/mm/fault.c

index d22a8fe5e4fcc7542b4672d3b240512edc598129..dcea87f9ef6830e225bd2349e8ef9b30f6a7fa48 100644 (file)
@@ -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);
 }