Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1739787rwb; Wed, 26 Jul 2023 18:20:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjGDFBOHUZZVgS5xbzHP//tk4Eop28t3eYKiYs30NY07eFF8hItVyULzrzpuTVH6qAeiQu X-Received: by 2002:a05:6a21:2787:b0:12c:518:b8de with SMTP id rn7-20020a056a21278700b0012c0518b8demr2841511pzb.17.1690420809767; Wed, 26 Jul 2023 18:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690420809; cv=none; d=google.com; s=arc-20160816; b=c5L3bAgaLf6nwS8TM6sycfKFsf0S9Et1hBENQsBPvI0o+GaVVOeZLL64f5euYmOtu6 G4dyBUulEA4AeGYJk3rUwfgWbxlZaXS0EB9nKgHaJrLDV77unNt2H0Ttq2pa7JsBHQ/6 3sBsST7zRmODwhSF9DTd0ctMmWP/cyHw8tYqy2DsIWm1N75kd//80MiJp3rpy/MxZVE9 MsA9KBbqkzwaucjSAKvffhiUC2FnyMTwAlktSaT7htSkBP0FNxJaPMcuu03XhNpGJlhl Zc0+tp4i0+23+jKELZbrnshDzj+CH5ATI3nXxBLAxdaej7yxivkLCMRcAzDOZ/tvxyxv tjKA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IhkiaS8J98vNXrX5cOHprImo8W9YNMFhXCHzAJYjw04=; fh=vbhZaXYuoHHGGct3rsylEicgnHx+sfhmIVEGFgtmAgw=; b=WdnRxhKj1OjjHyM+fi6rfagoJpmmSCq2tY3m+KKS9iN6jMbJVTSULp72exn3rBdXgJ 3SuA1gC3Vs5gFDz0l0u8hRUxgUsthXwIpgZs+CZUYTU2fxSO7yme0yr6afb+Aq3+cWjv r+MQQYsuiEfLECSMO3pCf5sFlkcScGXKx0qMoFinno7b8MOCLwnJmbgoghn3QqW+9KW+ GWHwjvA/FIPeyxkY3CpJlwWHp6w+qeNgKldeu0bH8VYLMnADsVL8D5+7xmrhu56wVeaY +oTac2MohVSE/o7liNY2GDqWTD3ptS0gg5EHWCYx4wa5iqTVYd8qMw/gBN8VSKha1QAV vD6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ATiThoRi; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a056a00168800b0068632b6bc90si373944pfc.114.2023.07.26.18.19.57; Wed, 26 Jul 2023 18:20:09 -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=@kernel.org header.s=k20201202 header.b=ATiThoRi; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230373AbjG0Avi (ORCPT + 99 others); Wed, 26 Jul 2023 20:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjG0Avh (ORCPT ); Wed, 26 Jul 2023 20:51:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83EA2128; Wed, 26 Jul 2023 17:51:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1B01461CE7; Thu, 27 Jul 2023 00:51:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04086C433C7; Thu, 27 Jul 2023 00:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690419095; bh=ZhjqtpIRGSMoW8Oc7K1hWttjjyBxCt0r6PcQ25NEtp0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ATiThoRis+jRgtpQW5n1P4JjCWAKCrhdgEvSKVsu6I7i/kFxajtP8ksM21Aq2oeUD 7gkKAKWFMtw5V3cNS0uull4Ew6ZGd3YqMY67F4XV4uDeJCiNQvsUhXUpd9P9WUyq4y 2BPhE7aA28kotCTZVsO/pyXAyC7B/9vdQJsKTCMiqKyBOBgeRUMdJk/FtUm1v7YoDm 7mLBY2uxPhRmWSFdvyRKCdLpnafH/79SKQmvQo1fS++ewWJEKAvWR1OFuvg+yMWDcn sngLg9pGvEkxA8zff54nnbQbLvKOgG8j9Pu/UxwmPONAlMqTU9ZyQKTSlJtlIGslFP u9uxOtqcj0XLg== Date: Thu, 27 Jul 2023 02:51:32 +0200 From: Andi Shyti To: Yangtao Li Cc: Adrian Hunter , Ben Dooks , Jaehoon Chung , Ulf Hansson , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 21/61] mmc: sdhci-s3c: Convert to platform remove callback returning void Message-ID: <20230727005132.sxphs3cdourj3m2f@intel.intel> References: <20230726040041.26267-1-frank.li@vivo.com> <20230726040041.26267-21-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230726040041.26267-21-frank.li@vivo.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Hi Yangtao, On Wed, Jul 26, 2023 at 12:00:01PM +0800, Yangtao Li wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is (mostly) ignored > and this typically results in resource leaks. To improve here there is a > quest to make the remove callback return void. In the first step of this > quest all drivers are converted to .remove_new() which already returns > void. > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Cc: Uwe Kleine-K?nig > Signed-off-by: Yangtao Li Reviewed-by: Andi Shyti Andi