Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp341677pxb; Tue, 28 Sep 2021 23:58:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxHQe+2rwuZBYk67u24ZrIXO7/XPVpYUlmUNFWfh+KinW6YzzeNhWklTUFmg9ZjxfuBPvz X-Received: by 2002:a17:906:2f94:: with SMTP id w20mr12269888eji.14.1632898717979; Tue, 28 Sep 2021 23:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632898717; cv=none; d=google.com; s=arc-20160816; b=LB7xQVetut+Rik8tYisJoMTKfa6IjqgsW+56zs44B9SC5ZqoDBK7SKPE9gHrMWYz7g BSP4jQBEoy38M2TlG4vxCgjzG8bTenGNU4LalHuRD7mHt17R6WS7HacNLubEzBvMZ0Zp Of8jyTiGAErOFd/4jc962D2xeY15ebDZoR0Mdt1nbFBrID2PRAR1WkG/UBtnZYFanuvx LRO7SHoT17/7R8N0eE2knNfXfrtLXeZS4+zKKAqyuBveilQqP5/KktSPLDz/iLbi1iHg ca3WRKF1GuJI1S14eMVn5YMrMvVDmaEukVShY/F5zlJzcPSXe7RyoeHD2pUgYC0ZxhEV hcZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vJnhZzHesizlzOdq1W43Xav44aVM2wENIbQ/nsFlymI=; b=ITf1K1qvzAxl1pza+lwAdJzT1vAjyysSGMpr5OMizxvssUW7pNBGuCc+cOFnCV3veu 6Rre2S6v/R+RwFPGzk1AVerIDruSqa7xXW3MLQ1duJj/jx9YgzFA5rpYOqth821Wa84m D4e2MtmagE9jMgihKBXTG0PISIjd2p0JQZa2M83pY5RYNI7Ceei7lXVmuCv0665sn+t0 fSAgUlE9ScYI4Gs2vKxEUn2mfQSuiEz98LZLRkhCCleN0/0D5JSACi3yD5r67O7PLVWz 4fk2t5ljOT5PNlTwXyjSj/ou+7lpqsP7wkveAYhZN9uoucEpTZfModyFvMdr9FIaVJw5 mloQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Cy2EgRLE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kl17si1797536ejc.507.2021.09.28.23.58.12; Tue, 28 Sep 2021 23:58:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Cy2EgRLE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244365AbhI2G5G (ORCPT + 99 others); Wed, 29 Sep 2021 02:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbhI2G5F (ORCPT ); Wed, 29 Sep 2021 02:57:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0389EC06161C; Tue, 28 Sep 2021 23:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vJnhZzHesizlzOdq1W43Xav44aVM2wENIbQ/nsFlymI=; b=Cy2EgRLEDgo0P9vw2aShtTeXSs IHuAGK6bOhq2ej6lcZPWx/I8Bf8itVXDpzRwTkqSf25TjzpRrQQMQArgDV3rhu5ORhUloCTkFSz96 j97cFhOiB4b5ajnrqrlbUUsaLQpljoltvqlT8OTqG98in8fir/Zid0toRW2TW2evGSnWCPWRnkwF2 SQEjrGiVtMwtMpFGix1xZKLGbI7RuKR6Lo4j5fMsSoNApqCNI88/b0DgU3kbhEZ0wLHA1kARXXIMg Ma6kxjb531khDUzeWwuricyGFZvumHIvbNf9Dj9EvRoZusqeZGZVDRUWiRJ33wdCDZ2IPLhdrRNHR x8JGBkjA==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVTTv-00Ba5N-PF; Wed, 29 Sep 2021 06:54:38 +0000 Date: Wed, 29 Sep 2021 07:54:19 +0100 From: Christoph Hellwig To: Yang Li Cc: tim@cyberelk.net, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] pcd: capture error codes on pcd_probe() and pf_probe() Message-ID: References: <1632897629-84965-1-git-send-email-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1632897629-84965-1-git-send-email-yang.lee@linux.alibaba.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 02:40:29PM +0800, Yang Li wrote: > No error code were being captured when pcd_probe() and > pf_probe() fail, capture them by assigning them to ret. > > Clean up smatch warning: > drivers/block/paride/pcd.c:939 pcd_init_unit() warn: missing error code > 'ret' > drivers/block/paride/pf.c:963 pf_init_unit() warn: missing error code > 'ret' > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Please not. I have a major rewrite of the paride probing pending, which Jens just wanted to make conditional on potentially dropping the drivers entirely. So either we take the real series to clean this mess up or we drop the drivers, but we need to stop this sugarcoating of fundamentally bad code.