Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2143211rwa; Mon, 22 Aug 2022 02:58:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YCzv7lMPFmSTpORwBsafH4PGL8vzhRef6LuNc/UWRiIGKYcMc+YOIpXChCF1zgPKXfroC X-Received: by 2002:a17:906:a219:b0:6e4:86a3:44ea with SMTP id r25-20020a170906a21900b006e486a344eamr12958911ejy.385.1661162298309; Mon, 22 Aug 2022 02:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661162298; cv=none; d=google.com; s=arc-20160816; b=DVkbXUbpFIPorYMy3PB1smydlhbjMMqEQlDrKpD9/e9EZGtS2XWpuY9W5CzaXad/QL jT9Xoc447MXF8xDqkbcr2y++mS/rp/lZqtlhIv1QK8i2tXoI/MhiixHFxkWk3OrwE2w6 D3ayAEJYMhOgbYrBAYGw26lc4ftpgYTvGsk1U03ojMgZAqKQA2ujvGCQ8CGb/hRrbXr8 ygKPUooV23OKL8XcrQ4XfuMRFSwWMnjG3/qpPMbiUzOY1VIn7S+ahWiDOKSr0bXXaOlo LpTe7fI6zekVxqSgtEBu9R9ZkVxEpceXunIo59icJ9GL/DZmT9goH5WDeTBQ88mjTADL CC9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:organization:in-reply-to:subject:cc:to:from :dkim-signature; bh=Ngqpb8Rvk54UWz4xTDNZ012eO5zct1yya4XBjftITj4=; b=QHDFP0bTXi4nkfIWtdp7eVQ22tdXcRnUI+t+eubJkveH3xqknHFagKNjzXGGXakDyQ 4pRb1CWW1eRzXn69aYH9CkPlkIgshrCiQLWJ1tUBePxaqy8VIJX2O2NlEkCmkIR8Xp9J rkc/uxM1Lg/xCSFlikU34APEeY3VZzo8YFkLqfOF4sLrlHCDyizTAyhms2nXIdhvVGaQ SoSve/eMBPm7GTAVgyMwpX75vg8GyJtsnC8I7lh97bDH3FW20eSbhIrTzU/3phZmOnC2 i0pDIJg4jlBcJy3FZwabzbraqXwFCXi9S0SZdN1PXwIXcszMVJlUQYSngxpaAaQrfyLv jjyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jVPi3KF9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056402090c00b00441ec11be8esi11831361edz.111.2022.08.22.02.57.53; Mon, 22 Aug 2022 02:58:18 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jVPi3KF9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234423AbiHVJVE (ORCPT + 99 others); Mon, 22 Aug 2022 05:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233268AbiHVJUF (ORCPT ); Mon, 22 Aug 2022 05:20:05 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7535BA9 for ; Mon, 22 Aug 2022 02:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661160003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ngqpb8Rvk54UWz4xTDNZ012eO5zct1yya4XBjftITj4=; b=jVPi3KF9FQjd4sbu2ucBSwq1dtNNG4JNu4wQmo4EIiAPw36Vk3fOK0LBJltN6FjJNQ1fE5 0/+MqTRZgZIPKr5ztv/970ZGuRHiUBj1IZtC3DGjLmyvCheY7X60PF0Novbfp9ohnbEPHS IK+aMzoH4TJCaD4Ys4SCZRPZcGbDfYE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-473-ToeIBdFJMwihErbdufKduw-1; Mon, 22 Aug 2022 05:19:59 -0400 X-MC-Unique: ToeIBdFJMwihErbdufKduw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1A03885A586; Mon, 22 Aug 2022 09:19:59 +0000 (UTC) Received: from localhost (unknown [10.39.193.142]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C444C2166B26; Mon, 22 Aug 2022 09:19:58 +0000 (UTC) From: Cornelia Huck To: Christophe JAILLET , Diana Craciun , Alex Williamson Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , kvm@vger.kernel.org Subject: Re: [PATCH v2] vfio/fsl-mc: Fix a typo in a message In-Reply-To: <3d2aa8434393ee8d2aa23a620e59ce1059c9d7ad.1660663440.git.christophe.jaillet@wanadoo.fr> Organization: Red Hat GmbH References: <3d2aa8434393ee8d2aa23a620e59ce1059c9d7ad.1660663440.git.christophe.jaillet@wanadoo.fr> User-Agent: Notmuch/0.36 (https://notmuchmail.org) Date: Mon, 22 Aug 2022 11:19:57 +0200 Message-ID: <87y1vgocsi.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,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 On Tue, Aug 16 2022, Christophe JAILLET wrote: > 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 > --- > 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.1659815764.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_fsl_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 = vfio_fsl_mc_reset_device(vdev); > > - 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); Hm, but this drops the device information, not such a fan... maybe the author can chime in? > > vfio_fsl_mc_irqs_cleanup(vdev); >