From nobody Sat Apr 11 02:23:12 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E761C25B0E for ; Tue, 16 Aug 2022 15:25:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232414AbiHPPZa (ORCPT ); Tue, 16 Aug 2022 11:25:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236074AbiHPPZA (ORCPT ); Tue, 16 Aug 2022 11:25:00 -0400 Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D76D3F7 for ; Tue, 16 Aug 2022 08:24:49 -0700 (PDT) Received: from pop-os.home ([90.11.190.129]) by smtp.orange.fr with ESMTPA id NyQxoTzZrBDYDNyQxoNv3a; Tue, 16 Aug 2022 17:24:48 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 16 Aug 2022 17:24:48 +0200 X-ME-IP: 90.11.190.129 From: Christophe JAILLET To: Diana Craciun , Alex Williamson , Cornelia Huck Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , kvm@vger.kernel.org Subject: [PATCH v2] vfio/fsl-mc: Fix a typo in a message Date: Tue, 16 Aug 2022 17:24:46 +0200 Message-Id: <3d2aa8434393ee8d2aa23a620e59ce1059c9d7ad.1660663440.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" L and S are swapped in the message. s/VFIO_FLS_MC/VFIO_FSL_MC/ Also use WARN instead of WARN_ON+dev_warn because WARN can already print the message. Signed-off-by: Christophe JAILLET Reviewed-by: Jason Gunthorpe --- Changes in v2: * s/comment/message/ in the subject [Cornelia Huck ] * use WARN instead of WARN_ON+dev_warn [Jason Gunthorpe ] v1: https://lore.kernel.org/all/2b65bf8d2b4d940cafbafcede07c23c35f042f5a.1659= 815764.git.christophe.jaillet@wanadoo.fr/ --- drivers/vfio/fsl-mc/vfio_fsl_mc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/vfio/fsl-mc/vfio_fsl_mc.c b/drivers/vfio/fsl-mc/vfio_f= sl_mc.c index 3feff729f3ce..57774009e0eb 100644 --- a/drivers/vfio/fsl-mc/vfio_fsl_mc.c +++ b/drivers/vfio/fsl-mc/vfio_fsl_mc.c @@ -108,9 +108,7 @@ static void vfio_fsl_mc_close_device(struct vfio_device= *core_vdev) /* reset the device before cleaning up the interrupts */ ret =3D vfio_fsl_mc_reset_device(vdev); =20 - if (WARN_ON(ret)) - dev_warn(&mc_cont->dev, - "VFIO_FLS_MC: reset device has failed (%d)\n", ret); + WARN(ret, "VFIO_FSL_MC: reset device has failed (%d)\n", ret); =20 vfio_fsl_mc_irqs_cleanup(vdev); =20 --=20 2.34.1