Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1410132rdh; Mon, 25 Sep 2023 11:52:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9gurfdnJk4v5+yN3uEZcgkZWYDuNQ5Xi0K/wzSISe8wZyvewy2RKNysX5DLOUX/nnwa4F X-Received: by 2002:a05:6358:398f:b0:143:a0bf:9a49 with SMTP id b15-20020a056358398f00b00143a0bf9a49mr8483165rwe.3.1695667939533; Mon, 25 Sep 2023 11:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695667939; cv=none; d=google.com; s=arc-20160816; b=LwlyMSWN07gcEqqlKQgJ2hVArgekyhCB8CPAAAp/NPczfeAv0jP5l/XIBQw0xIryoF OXeBzSTacFGkqXkNlZIEC8ZMODbE/b6v7HpttPamE8HoALaZA8wfdYhkZwY87fazK3Jj 4rFWRTWsZ9i9Ria9ZzVKcyXBDFeC6LZCeAxWRKoeYuJJUIyz6pZdD7UIu5eaoIEVH0As WPIt6Llsayr5c/7/XAld6zyK17kzoVUiWmnxOhwUNX7s+tIPar+Q9BnFE0E1Cj/h9zKO Z8X6s8YwtS9yAKaHT4ElL7UfZ95A3HjN5KkVzpoghHI9T/8GbPFedf6iyhNUACzU3sVW lN5g== 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=OYdjOlD1VTnveMwZiWaqVgJ+r23UlkzqDe6dKTfCN4s=; fh=wTCSNDnvUO3i6k3K+snJ4sP9N7MbwyQEURA1i4Z+YFs=; b=FKy1GmL22lTzzcZ/SCDAZpRxGRyF+fx2ZAU5fwDjfJHCTinzcj4gvnaFP7FLofxUwh pWjIAfW4tIT4ZaUcoacCQST+JRkQ6AV91xBKHpU0Ac+vyHnF2lftFGOGioaG9aFpYkTt x56oeDOKE7T8waXOqcoNCYZ6hLLJ3WIhHd0MgxI+tuOWequ1NWUIbCahGdJkaQUDqI/P 2mr0WCEHbPO0A8uNQEpvj1ZLH8uISgA3tBVU0l4m2TQAIZMJIML3NwBUftg5d1IsJEHS 8X++X/rSTh3gBFpQGDES4nqnbenqiFcXPKdcmsXdN5dBO51S3fPrstRFzjLt32ciayJw ALGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=ThC36gxb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u77-20020a627950000000b0069018a768d7si10515472pfc.385.2023.09.25.11.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 11:52:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=ThC36gxb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5E58580965B2; Mon, 25 Sep 2023 03:21:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbjIYKVL (ORCPT + 99 others); Mon, 25 Sep 2023 06:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjIYKVK (ORCPT ); Mon, 25 Sep 2023 06:21:10 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6BB48E for ; Mon, 25 Sep 2023 03:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1695637264; x=1727173264; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OYdjOlD1VTnveMwZiWaqVgJ+r23UlkzqDe6dKTfCN4s=; b=ThC36gxbVjEJqA6YgjTpnhyuU7Ro5JveG8qOZNHXyAQ8fcSoh6hjx6rc LTNxkbJtqdvLtkZZ1eRytfoHWxoObysXcHAqyHz9o8fVz66WV6dkgEDC3 c61/LackKjxbo1gvU3NpX39WsHjPsROM7OyyjVfr4oCpOr3QsSjOVvQKk 6cp7FKNdzLTWmSFaQxJw6aePrJdWxVU8coaLB3Ei1VRucUGYXOM+4TPj2 wa+RgIxim/Cy6G5vVnh/ExovWLwP14KtzhOKkN9D89zAqwm9A/D/DLoXb iSsLSjmHIj+I5/AGXF6iopV6tf67QsTYrk2YnduRktazpp3UC/fOG1DrX g==; X-CSE-ConnectionGUID: Qh4ak2qkR92n/PqzHNXvzQ== X-CSE-MsgGUID: rjHIZEEwQjGvRo9ERwmgEw== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="asc'?scan'208";a="6420900" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 25 Sep 2023 03:21:03 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 25 Sep 2023 03:20:58 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 25 Sep 2023 03:20:57 -0700 Date: Mon, 25 Sep 2023 11:20:39 +0100 From: Conor Dooley To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= CC: Daire McNamara , , , Subject: Re: [PATCH 16/40] soc/microchip: mpfs-sys-controller: Convert to platform remove callback returning void Message-ID: <20230925-confined-tibia-9982d3267806@wendy> References: <20230925095532.1984344-1-u.kleine-koenig@pengutronix.de> <20230925095532.1984344-17-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fhIKodJZR77/42JG" Content-Disposition: inline In-Reply-To: <20230925095532.1984344-17-u.kleine-koenig@pengutronix.de> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 25 Sep 2023 03:21:14 -0700 (PDT) --fhIKodJZR77/42JG Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 25, 2023 at 11:55:07AM +0200, Uwe Kleine-K=F6nig 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 ignored (apart > from emitting a warning) 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. Eventually after all drivers > are converted, .remove_new() will be renamed to .remove(). >=20 > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. >=20 > Signed-off-by: Uwe Kleine-K=F6nig Applied with some cosmetic changes to the commit message, thanks! --fhIKodJZR77/42JG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHQEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZRFe9wAKCRB4tDGHoIJi 0sRnAPd/gyGabk4lGCe4J7YKWSTYZfskMdTlLKF9+WtCvbAGAP0QkTt5FibnWb20 vR0++rV3JV25XYlsoixT5xWl+2wOAQ== =IruO -----END PGP SIGNATURE----- --fhIKodJZR77/42JG--