diff options
author | Heiko Carstens | 2023-10-12 09:40:33 +0200 |
---|---|---|
committer | Vasily Gorbik | 2023-10-23 18:21:21 +0200 |
commit | c9b611bf6e576aa1a03ac097b74322af56cb7052 (patch) | |
tree | d883718e6a97a058605698ff9d063e79e7068bae /arch/s390 | |
parent | 28f3e0002aeaf9b02ace41551c92dc1c04f0de6e (diff) |
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 <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/mm/fault.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index d22a8fe5e4fc..dcea87f9ef68 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); } |