Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp970374rda; Sun, 22 Oct 2023 19:36:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHF2/i9GhfgdA24QNcJAiK14eMyUdEwWC1L/KhYq76+AeWpxkTwSOe2ANusB68E5jZha9uN X-Received: by 2002:a17:90a:c303:b0:27e:31a:2ab2 with SMTP id g3-20020a17090ac30300b0027e031a2ab2mr4997252pjt.34.1698028612629; Sun, 22 Oct 2023 19:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698028612; cv=none; d=google.com; s=arc-20160816; b=WYXuO0n7uKPOOVEQX6RmF8TdYF5+XzbkcELvD2bgIw0yd4zLIR+EZbJkYXA/HNgI39 XqequH1cWqMIi3NWGPnsQqT52Mv4nUYwLGUGzlnh/nrbEXJNcj7be+Tg59riOt6NClf4 UnagApnwOw3VtOLWtxaKjRBUIBoUlTzwGfRvLabgX9voVs+oSX03w6K0BIOXJMiIaufU /4cS/ALS2h6LCzuXiPocuUmdkEWJ2w7AAjErD21YtYllGxSJGQIPd6xayD56GDNLl2Hf duY1xm7LkkutE/LD6nYFNAoTEwUtiAsyBujtsTai7tn4FNwqXVKBJibcmJNmRfXPDV36 dIhg== 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=q41L4T+b1yyvP/vHKMEYubz4dQYpoa63ECoXbfivOkaAAiXG81+JRKdfOFLVdBH8B8 sNUkyHfETfz7iP3Lp0/WO5wojf8styv6g1HN4jRRme0GxBJwCIsxqFFSCFAazNTCfJE+ DZ0tXNRAAVTdlS3004mj1dGI1VvZQUYW6s8dXLysNsfnaZOGZTRnzAEQIAoIOka1tcNd RMldhl2m2wdbuEFhM6fseU9UveTawBupxlbGHj3QnFiG+B5l5zBLrfWP2fvk7LhHcRo0 gs9dJokJZR3amJUs8bISAfF9rzCIc9KmwPRfOagRgAOSy0PbPHdRpcqOuOjUW3cNw/2z vlFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=eOIViXSn; 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 p20-20020a17090ad31400b0027d37d5dff9si5745051pju.56.2023.10.22.19.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 19:36:52 -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=eOIViXSn; 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 E1942808204B; Sun, 22 Oct 2023 19:36:48 -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 S233139AbjJWCgs (ORCPT + 99 others); Sun, 22 Oct 2023 22:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjJWCgs (ORCPT ); Sun, 22 Oct 2023 22:36:48 -0400 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A9D13E for ; Sun, 22 Oct 2023 19:36:45 -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 5F3EE20135; Mon, 23 Oct 2023 10:36:43 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1698028603; bh=ksZFs0+9URFXS1sX1+Yy7wy4eAGcVDR9NHIRtCYuewg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=eOIViXSnbTr6uamnyL50uBI7DkEo4JmOD93ecakhCPuKUN3CJdVCahmRVy+s12elf ywU+uLE8kPd+1cLb/RjlIzGWJWMYUQn714ZLyAqzwAkFwBGsyv17UFhmvs9nsR0PKj XCHom36eEs5J1YYZz9TdtCQH867FTdu9GAzHsjYKcVxOQF9vOGHg6HvnJH7sLPG2d3 apAybQZB0xfiMz8ZxYIbmLC7ygN0L0ooK+yB+GGo0vFqxM7rVIlo2ucfsv8y8uJkz9 HDGj6bRi7aa/zYAajXOrNEGnI5mwjKqKMdofnAU12dZEcnT2/OzZ0knfBuTAE5a50u dpwviw0bnO4Pw== Message-ID: <8980a7fbe644bf00d1840a114e4745395f13b6df.camel@codeconstruct.com.au> Subject: Re: [PATCH 07/42] crypto: aspeed-hace - 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:06:42 +1030 In-Reply-To: <20231020075521.2121571-51-u.kleine-koenig@pengutronix.de> References: <20231020075521.2121571-44-u.kleine-koenig@pengutronix.de> <20231020075521.2121571-51-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:36:49 -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