Received: by 2002:a05:6504:1d0:b0:1de:de76:8684 with SMTP id e16csp879078ltn; Fri, 2 Sep 2022 09:15:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR4jLGTQmSYIY60U8WmEFa8zo79OkyVFvjc43elha+4GNnVdLAhKpS6CX9U/stYUm9U0prpo X-Received: by 2002:a17:90a:2b0a:b0:1ff:f1cc:b430 with SMTP id x10-20020a17090a2b0a00b001fff1ccb430mr5629891pjc.243.1662135311211; Fri, 02 Sep 2022 09:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662135311; cv=none; d=google.com; s=arc-20160816; b=Gu38HfURd7Iz31LD67QCmAla5DmWK0a0x3jERsrmqiK6z2heJ0CX4UAIBsgT4v2Vjz U7CoaeNeV/ydfWIgFKWlXrZVncxIxD0/kSQ8gCyiG42vXVsOA/s+3cWdNkKCClHnQdDG pEZ/4XRZ412zhoJ/jYGdHciU+4ZaKNnSoURTP/LBzhBRwQOmJMdwRe+9FrfldwJty9th RzCRS4mXQ213b9pvsJV5yDrnDqSKASVazUX7oP9SiL1F0SzAMUN+7Q969eL94oLiYwrT A5K9jSVekhyZ/qEOKQUUdRm8V0IjQafhUc1ckLVM0uDJ8fyllWJx8X24zTcdmQXxOqCu 9RHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=VjftxiFHvjpnzGzL+w7981ky2lYAmOpwuAyN1ugWVGo=; b=HyrgOjTKzgm+KZM/QV0h2FwAxZI1OC3aC480LGuThSgoVeD5T5IG5mJ9WdSKUPV79a CfWIxZkubjyj1HZsDBzCbpcnzEui0gI2LudwlmHIffNR6UwmNwxF61NkIgO5quX31kCJ Bbib9GjOUkPh789EWAZTyRUHYA8Ld9BTzWYOYYQIxYHP5Xjwgz6aaMeEt5WSCB7DY8op kL7N5diFiXEVeJK85A60DlYE3bwL6qXZz3vuuCQQGEdRp3EO5h2kKP/5JBSQqT7Sh94H KHFuYNgRFoVmU9pKu30IhrxbeOdLhBsji/jG5K1Ah98piTFQ6pps6U4NqUqLKQ03yQ1X IhNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc4-20020a17090325c400b00172d8f7cb5csi2103112plb.473.2022.09.02.09.14.59; Fri, 02 Sep 2022 09:15:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235900AbiIBQMf (ORCPT + 99 others); Fri, 2 Sep 2022 12:12:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236217AbiIBQML (ORCPT ); Fri, 2 Sep 2022 12:12:11 -0400 Received: from smtp.smtpout.orange.fr (smtp-11.smtpout.orange.fr [80.12.242.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46BB0580B2 for ; Fri, 2 Sep 2022 09:07:58 -0700 (PDT) Received: from pop-os.home ([90.11.190.129]) by smtp.orange.fr with ESMTPA id U9D1oWX719qatU9D1o9omT; Fri, 02 Sep 2022 18:07:56 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Fri, 02 Sep 2022 18:07:56 +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 v3] vfio/fsl-mc: Fix a typo in a message Date: Fri, 2 Sep 2022 18:07:54 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org L and S are swapped in the message. s/VFIO_FLS_MC/VFIO_FSL_MC/ Also use 'ret' instead of 'WARN_ON(ret)' to avoid a duplicated message. Signed-off-by: Christophe JAILLET --- Changes in v3: * Remove WARN_ON() and WARN() and only keep dev_warn() [Diana Madalina Craciun ] Changes in v2: * s/comment/message/ in the subject [Cornelia Huck ] * use WARN instead of WARN_ON+dev_warn [Jason Gunthorpe ] https://lore.kernel.org/all/3d2aa8434393ee8d2aa23a620e59ce1059c9d7ad.1660663440.git.christophe.jaillet@wanadoo.fr/ v1: https://lore.kernel.org/all/2b65bf8d2b4d940cafbafcede07c23c35f042f5a.1659815764.git.christophe.jaillet@wanadoo --- drivers/vfio/fsl-mc/vfio_fsl_mc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vfio/fsl-mc/vfio_fsl_mc.c b/drivers/vfio/fsl-mc/vfio_fsl_mc.c index 3feff729f3ce..42b344bd7cd5 100644 --- a/drivers/vfio/fsl-mc/vfio_fsl_mc.c +++ b/drivers/vfio/fsl-mc/vfio_fsl_mc.c @@ -108,9 +108,9 @@ static void vfio_fsl_mc_close_device(struct vfio_device *core_vdev) /* reset the device before cleaning up the interrupts */ ret = vfio_fsl_mc_reset_device(vdev); - if (WARN_ON(ret)) + if (ret) dev_warn(&mc_cont->dev, - "VFIO_FLS_MC: reset device has failed (%d)\n", ret); + "VFIO_FSL_MC: reset device has failed (%d)\n", ret); vfio_fsl_mc_irqs_cleanup(vdev); -- 2.34.1