Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp862142rdb; Fri, 20 Oct 2023 01:14:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIcwtXy6B23/hsPC6mX/aT2XX3YaY59k12MkDrW+OffYO9cJxcRH9EI7GW0A/eUTwmlDBB X-Received: by 2002:a17:902:e1c1:b0:1c9:e774:58dc with SMTP id t1-20020a170902e1c100b001c9e77458dcmr1185457pla.7.1697789646642; Fri, 20 Oct 2023 01:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697789646; cv=none; d=google.com; s=arc-20160816; b=J+8TLyyojisPf0keNKXq/dZBKt/oh/j6knJ/6cbg4IfvThxRLnNK4+BtzzQjU1bfeU p1MWceRcCbTs7F6LYlLQUpMzmIQPUYNjorJnvt/8EBDSq2b7Lb5sY4qKbF2TJgUUHuJF delLBlTdYhmdVHoYpFYi0rhprxKDzdEDQU/tb0NY1sF87NTjGx67gw8mMHO51pnEG1pw 3OfveBuuxRLcNto8fWUlQfU5w6PJepU50Pdq7cqxKHEw8q6ankek5QV6cq+gzK5oCjBD eIcnBbRh7lpp77iPau/a3fABIjmV2Pkglh2nZtJ6Nywy0PdZSv8QAOaDx891R1mhNj+D QkFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xMpx2E4D4hRq1yOGy86vldMc2Y9gBCEFfjP+Yk+Cc5Q=; fh=Qr4aXTva/8ec5f45ev2WNrTpY5wi3Ayz5ommiN0UuQw=; b=zLgrTwq/ZaQTeYYJqIdCgoI3PUNKsvtuptnIvtVpsH5HQJqRb0KSTOH8eL4P6x8IOn hzMJsveLSaRm2Urm61inKUANPJBTwEu6P1wAnomYFgmm/A+3CjM+YLutz90ZSCayz9x3 ct8RnhM7MqrKta58CCQ27+jtilWqOppsZzBmJLO606IzwZ1DzL5CZXMDI3gZQ20lVhAU qUlvCNYj6NnITN+iMfEuXYaTYB2DHMwcwq+dPBiX2qyHkd8jMyQkC1Zmyh+jaUJOCiCW OJwZhr0UWseQyw9dOr8PZdDgDEvKIDRgX6Mj2skF32a5jjlHeTRvFr4OvPNdhORpxkIh fF+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id f10-20020a17090274ca00b001c72c893ad0si1253571plt.48.2023.10.20.01.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 01:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C1EDD8379A7F; Fri, 20 Oct 2023 01:13:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235664AbjJTINs convert rfc822-to-8bit (ORCPT + 99 others); Fri, 20 Oct 2023 04:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235654AbjJTINr (ORCPT ); Fri, 20 Oct 2023 04:13:47 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42120E8 for ; Fri, 20 Oct 2023 01:13:43 -0700 (PDT) Received: from i53875b5b.versanet.de ([83.135.91.91] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtkdU-0002Tm-Nq; Fri, 20 Oct 2023 10:13:36 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Herbert Xu , "David S. Miller" , Uwe =?ISO-8859-1?Q?Kleine=2DK=F6nig?= Cc: Corentin Labbe , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, kernel@pengutronix.de Subject: Re: [PATCH 34/42] crypto: rockchip/rk3288 - Convert to platform remove callback returning void Date: Fri, 20 Oct 2023 10:13:35 +0200 Message-ID: <9703959.ag9G3TJQzC@diego> In-Reply-To: <20231020075521.2121571-78-u.kleine-koenig@pengutronix.de> References: <20231020075521.2121571-44-u.kleine-koenig@pengutronix.de> <20231020075521.2121571-78-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-0.8 required=5.0 tests=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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 01:13:57 -0700 (PDT) Am Freitag, 20. Oktober 2023, 09:55:56 CEST schrieb Uwe Kleine-K?nig: > 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(). > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Signed-off-by: Uwe Kleine-K?nig Reviewed-by: Heiko Stuebner