Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1035729rwe; Thu, 25 Aug 2022 14:08:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR4vk8KJM2OrELfN57+kkp6R2Z7q7ML+MC91cRFvRnMOspaHxVjgoznNthj7cvEPeX+OJyd3 X-Received: by 2002:a17:907:3d90:b0:73c:83de:eb82 with SMTP id he16-20020a1709073d9000b0073c83deeb82mr3715261ejc.343.1661461700542; Thu, 25 Aug 2022 14:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661461700; cv=none; d=google.com; s=arc-20160816; b=S8Vpgyi9BjeDiiUP3Ix2J6ZAC0/RQ0K2uhLocZkGMG+8r/HMUfAgwvVqdqagRyzEgQ 0Q4YDNsrKEj3meoxBjnilwuklBS5WF2XXImggFQM0N5qG3U5znJb+VIOOom+JmnnKoDb JonOp/HIaS8jmoa9kUtJK2QUU97R3f/oqdlLWhwIs8qFT2JUdSIvTR0MIxDJIcFThwph d7PKlTMrT7JrTZfCuHSYEr+hlrNuXXo+o0qE9ZnPNfC5UVexB4xtsuBbsEoSe1WKYc8s gSVEA/uTOReok+VoRbJq/Vwxx5GM1NO4RrjMxXH7FbUpp//dc9qaYqYPnBmmO0Yk+2OD 5c5w== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=OKHhMLBTBc7z1ahPgLZl8Wpxc7AkNqzPxKKC/XdmrI8=; b=ksv3gM1Wcb5Iax3tg4xxOBmw7nIxU4le/L+NYXYUphjlIAJBwfWUZYIs9ggnzQHfrD v43IhWfczzXTrJRw/DycIJ+zfAkqFdfqu04TGJ9ZG9ZWqQcURhF5rUKvmDxNhgb9+CU2 +uDhvpQMXVnk5re9ZGdbOecjTycjP4R7NV/w2+BmayDUwplFUWoix1kNArNJAfEXD5IO UpNAswqnAregEOljQpxh0qkqy1XEuWr7oBiisT1ypuB5BXNa8em7jzTpysJWWEaXOOnd 1soE8+X3oQ/YVe/Jd7lMbVEZ+VpGYbXXQMxSC6DFX5EQVO312Qs9Cg1v/FVrece3P8RI 8KGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OeR6+N3B; 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 7-20020a170906328700b007384c1db86fsi145445ejw.60.2022.08.25.14.07.32; Thu, 25 Aug 2022 14:08:20 -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=OeR6+N3B; 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 S237844AbiHYVCA (ORCPT + 99 others); Thu, 25 Aug 2022 17:02:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243450AbiHYVBh (ORCPT ); Thu, 25 Aug 2022 17:01:37 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15864A6C70 for ; Thu, 25 Aug 2022 14:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661461291; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OKHhMLBTBc7z1ahPgLZl8Wpxc7AkNqzPxKKC/XdmrI8=; b=OeR6+N3B4mSWKb5YfywLCNfRbPwmixaEP0B0HLqIrK7v+NWzyaueco3CPCYHca9Wj/qMFQ h3OfCCuhjlQ6TGlPLIoWo094eZ2fjePoTpVIDAI2xa/ITflJfj7haydto27JhSG3Je8Rzu PZWP+LKWdADT42BwzOxtYV7mYcwhsGE= Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-596-RerXPPzEPmGlZodt1ueGPQ-1; Thu, 25 Aug 2022 17:01:30 -0400 X-MC-Unique: RerXPPzEPmGlZodt1ueGPQ-1 Received: by mail-il1-f199.google.com with SMTP id i13-20020a056e02152d00b002e97839ff00so11404370ilu.15 for ; Thu, 25 Aug 2022 14:01:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc; bh=OKHhMLBTBc7z1ahPgLZl8Wpxc7AkNqzPxKKC/XdmrI8=; b=JuYcS8pTYyxRvUS+IlqCbUKORukRjf//DI7mAYK+gW6Z+5kYUXURT9AR6WXaKnOvDn YHH5WMGU0SYPVjzScDBnO1jI6c3S1ORC/m6Z+JwTxJ+zcYZqogiqTFzW7x21nsN90lZb fKssXzz+T9wsolkCfZAx3ESTgo+j0Ts4ijUMiW/yxvyTbHISLIj/PbUejxq0ppP9CpKK CJ0xiSmnM4ihzbp9xcbnoKVAKrv4ijgUGvF6n7l4KcmzWy/SzgRLBJfh7J71epuV3MyM E2BskVL+5eLhf7AvX2ZfDuKLsOIwovq1k7uHAuaIuAT7gBkOcvyaeFJJ3kK4wu6gyta/ Rkxg== X-Gm-Message-State: ACgBeo18oWi+1iZnapmaDilenxwhw+x9hCk4iUQJGfdw9FaivyFtm7V9 h6n/OzZcpBblrSe0iak+oQfdfpu9nV0ULcMAZhYTyFMzTP2C5k/9Z81b8WaLS2ZDA7b131ochca L3rpjKHeKNY+UQDIOWOkH5T2n X-Received: by 2002:a05:6e02:19ca:b0:2df:68c:4a6d with SMTP id r10-20020a056e0219ca00b002df068c4a6dmr2807783ill.32.1661461289401; Thu, 25 Aug 2022 14:01:29 -0700 (PDT) X-Received: by 2002:a05:6e02:19ca:b0:2df:68c:4a6d with SMTP id r10-20020a056e0219ca00b002df068c4a6dmr2807776ill.32.1661461289143; Thu, 25 Aug 2022 14:01:29 -0700 (PDT) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id k34-20020a026622000000b00349bbbdcb95sm167663jac.42.2022.08.25.14.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 14:01:28 -0700 (PDT) Date: Thu, 25 Aug 2022 15:01:27 -0600 From: Alex Williamson To: Diana Craciun Cc: Cornelia Huck , Christophe JAILLET , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v2] vfio/fsl-mc: Fix a typo in a message Message-ID: <20220825150127.1fd3a8d4.alex.williamson@redhat.com> In-Reply-To: <87y1vgocsi.fsf@redhat.com> References: <3d2aa8434393ee8d2aa23a620e59ce1059c9d7ad.1660663440.git.christophe.jaillet@wanadoo.fr> <87y1vgocsi.fsf@redhat.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Mon, 22 Aug 2022 11:19:57 +0200 Cornelia Huck wrote: > 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? Diana, what do you want to do here? Thanks, Alex