Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp970233rda; Sun, 22 Oct 2023 19:36:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUDONALXjtyJPJj3dCRwzACZk7LLj5b1R4BZRFb5uWf18UHnvPKS6ClR2G1lYUyule3023 X-Received: by 2002:a05:6358:4194:b0:147:9b6d:f7f6 with SMTP id w20-20020a056358419400b001479b6df7f6mr4107318rwc.27.1698028581377; Sun, 22 Oct 2023 19:36:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698028581; cv=none; d=google.com; s=arc-20160816; b=kYKdWR2avt2J8nHjjmGbBgNCOAtBaCdcrx/JOfYSuLuTSesUT0YMs2/V8VBJLg5Mu5 27qLH+fJ/F8x7AePDQrx/dfkte+8XTw1ZGB8tIGrDUg26RZ23vkEtCXEz2j6hh1H/lsj LH0tFZi8KOoAfTH3WSaL9KdfaWfxZsOYhALIyYx7Lb7+b6pKeuzm/P0Rvyp3e8I59YpR mTYDO7PI0lqfXdxDFIxie/TlwVlIf6N6ZQTN3p2i4Nwc9jE9jaCmuvp4J7jTS5O//bhp OySaOy5bNGka6yIyMN7s4U04VBSpOJuGDFXjUUr8YaWwmcYRYuKmbRZjuFuUJTTRDrZv d2ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=ksZFs0+9URFXS1sX1+Yy7wy4eAGcVDR9NHIRtCYuewg=; fh=xtLckphOB/DKs+gJRsAbSsnoBitVH64nMVBmNrR5++M=; b=JUsKBGnW9bsk2Yik94m5gNm8IRPrh74BRwzwin2ytKErxCMpjHpcUorEgbQ4bqH4Tv 6F4Sm2Z5V+Pvzb6V6xKQ8JkBHR4Ixk6DOuoHXP9c6cBFgq6r+mMTA2p6XX6aBuGND85A w2KGLOMey/3PMqpg3OU5euNXdAnB+gNrxIajKrRdE7/ejc3dY0ehSBkHzOa9FWX9IWzf dD88WxIZTSXKCaITDj6Cm56PNhtYS4vztIOas3O8gXWZxy4Qtuw68PluHFOYoj+eb8Uf hrGfpAyTVG667hySliVmMZWE0kCCdoA1OT3baZ2juRAcZXqlW7aGXLfV/oRVuJnQrppm L+Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=ZfT0hYZY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id o16-20020a656a50000000b005b7d9ab1cc5si5943078pgu.646.2023.10.22.19.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 19:36:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=ZfT0hYZY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 33F27806B052; Sun, 22 Oct 2023 19:35:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233178AbjJWCfs (ORCPT + 99 others); Sun, 22 Oct 2023 22:35:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233161AbjJWCfr (ORCPT ); Sun, 22 Oct 2023 22:35:47 -0400 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E92B19E for ; Sun, 22 Oct 2023 19:35:44 -0700 (PDT) Received: from [192.168.68.112] (ppp118-210-136-142.adl-adc-lon-bras33.tpg.internode.on.net [118.210.136.142]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 6060C20135; Mon, 23 Oct 2023 10:35:32 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1698028538; bh=ksZFs0+9URFXS1sX1+Yy7wy4eAGcVDR9NHIRtCYuewg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ZfT0hYZYms8spw6jXbPStQQlg52hfTGVHOUFxhjEkX8uRAjguFgFbTePOydMJjQH3 xZegnqm5re/nlXNV3nydYmNyOuJJ98OwhDwZpeUd05tVttUvLdM1wH9puv+M5ZTzU4 h0jCXfBSPdQEuMtlQp8YFVDkEtrLhbI+01N076TRLAUdiCP6p45Srbuj59aU3zM22J v9XghnLtItK9P9uyrvZdXLhR3KRpeAvGidMtkW31nycd95dsoaFN6kgdk1mnyk+JFk AruB1hA95UfWJmbtpmk5an6ZGJkL+10Mv88di0HdNcKexlNe7erTkVVIfBUrFine7Y D0N0SwzetRsCg== Message-ID: <5201a2fc9fc9bdbdc3f76e504b3a2a2d6d4d21d4.camel@codeconstruct.com.au> Subject: Re: [PATCH 06/42] crypto: aspeed-acry - Convert to platform remove callback returning void From: Andrew Jeffery To: Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Herbert Xu , "David S. Miller" Cc: Neal Liu , Joel Stanley , linux-aspeed@lists.ozlabs.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de Date: Mon, 23 Oct 2023 13:05:30 +1030 In-Reply-To: <20231020075521.2121571-50-u.kleine-koenig@pengutronix.de> References: <20231020075521.2121571-44-u.kleine-koenig@pengutronix.de> <20231020075521.2121571-50-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 22 Oct 2023 19:35:59 -0700 (PDT) On Fri, 2023-10-20 at 09:55 +0200, Uwe Kleine-K=C3=B6nig 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. >=20 > 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=C3=B6nig Reviewed-by: Andrew Jeffery