Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp354987rda; Sat, 21 Oct 2023 10:23:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH34XCR+KHb+0isVmSDua9QhiNMWfUDAnKZIKWag06e9sEovXWlvkBX/cumZX7xWptMdeqr X-Received: by 2002:a17:90b:b15:b0:27d:5616:9907 with SMTP id bf21-20020a17090b0b1500b0027d56169907mr4269405pjb.46.1697909027578; Sat, 21 Oct 2023 10:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697909027; cv=none; d=google.com; s=arc-20160816; b=I3lvXkPk7t3MTjSqsRpWqzaLjxCBUcHHqiRfITmgjswy0KDiqhZ9vKy5JD3zuKwZSS wrP9x4jyPu7KLIli7Wa5nCL+nCI35bGUMVumKOBi1FR2gT7X51GV1QPzB2t0iInrIqXw h+ZqlxxUJvgQ7JeHd60akP132oqgGtJEXJXIJhQQl7hezG251eYR7QXCwrK3Y7od2hl5 5vT8UJTuCtIlZ+hS5Ur50z8b6/G/QjYHlF5/jtT8uHr2S/IuhKbV8U+kdeier2DSfZzH h9Efi1gFcw6dD7iaSFpHErFfzww9AesjYQPTa2xJK8tgk0VkDoovdDOxg3d8+OSIYcuS B3Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Q/B060x0z3e8JVT+CDyvjumdRFqrHNlOMqjo2TVRNGo=; fh=6uNvlt2DbJNzX63MysDJt0H4uIrJwQVMvTg90s6r8JU=; b=TjuB2uar80OOp40TZVM/73YbkFsR2FqmOTCRwV5EIBsQ2MVwJ8GUhFwzNmWzLv5462 wUrVHv00GbO2rEVuE8CLr/VTOGDyiRKGoOjY1m2c8h0Jr25Wii8ugRtkiREdZwIv6HJb 5FHEcv24eUiL0z1zpzG72cf0jN+tooVxAHZ8GPdkbFCgYV8MbM9IDD2ugUN5nFXmjUnJ GkKXnogpiqnVmKEJVEGpXp1zOsxD6qxA6khPaTQbFmmYFMrDVHlJ4nP9erPHUTCvtmpH SSopj00ya9a3f1vO6MyYFfCHYqSuDnNruQe9crUTA/N6cNn4++m//6hR+pKXz6eTKpK0 +uXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C4AnOo9d; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id a2-20020a17090a854200b0026d0f7c6b17si6530834pjw.30.2023.10.21.10.23.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 10:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C4AnOo9d; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0234B808BD2D; Sat, 21 Oct 2023 10:23:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231783AbjJURXe (ORCPT + 99 others); Sat, 21 Oct 2023 13:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231356AbjJURXd (ORCPT ); Sat, 21 Oct 2023 13:23:33 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA9D188 for ; Sat, 21 Oct 2023 10:23:27 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-32da4ffd7e5so1085786f8f.0 for ; Sat, 21 Oct 2023 10:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697909005; x=1698513805; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Q/B060x0z3e8JVT+CDyvjumdRFqrHNlOMqjo2TVRNGo=; b=C4AnOo9dBLXGH8m6qzr6sV9fdZHuETmEJmepPoBTKT3Q2BlZJNuc3LplsWt9uV4juR jG5O+Ivk+HKTgFYqUAL6olizl2L6JDw4VadJImOMedd+vxdJMrYc1dxTatjgbolHBYZR 7b5gJ88RbaK2NDM7hmw0OFhb9ujui4GIAie6VrD1ivh0fx1lvMjOjXa8S5WH2UJOGbsH s47hx7JXEW45t3aR1GZl+Tw+X1/Z9gt8AKNxPh9EfmE2ccn0izyZoS+BCY32p69qlOWW zU86E9ded30blykNvPfiI365K2nWghO/EU3n89SZAGmgd9Ho4MpHE3AIrM90Lx//cJU/ 9QNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697909005; x=1698513805; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q/B060x0z3e8JVT+CDyvjumdRFqrHNlOMqjo2TVRNGo=; b=d4yM+7BtV+Oxuq32p6cP3/DarjH3xFeVYiKb7cUAu2pHgIVNxKQL9nGyz1+gsSF4qi 7xaE6f26gDxdcHk6QZz+leHga3wAwr89tlPHfF4Ur3wmq212rC07TsK8Gb47ljdJo/Vi wqnJ3Egfl6KHpscZUT3/VskfevDGgbMWaUTrZKyX5AD9uFKkqih3esjZkupndSwpOmWb 1kYnkWzza5m3BGhT/2m4WBY9/iKhe35pX/JGg7e1cUq9IGoy8p6BncScpKqo9cfhBfzk WpzlbwjW89RCZXeo22DZNbuuG7oXtdm3MTO1u12SEGKQ9+DW1A2srF6MwptGP+YMNNsP QcwA== X-Gm-Message-State: AOJu0YxWCZccQXRwZAw1GxPZ9J9HnOkQamgkJZ3slLrCGODp0JP18Dz/ wR4l9/5bAEZWcJd+kLWuvvcQCQ== X-Received: by 2002:a5d:594b:0:b0:32d:9d03:29e6 with SMTP id e11-20020a5d594b000000b0032d9d0329e6mr4526132wri.27.1697909005415; Sat, 21 Oct 2023 10:23:25 -0700 (PDT) Received: from [10.66.66.3] (9.ip-51-91-159.eu. [51.91.159.9]) by smtp.gmail.com with ESMTPSA id n18-20020a5d4852000000b0032db4e660d9sm4026394wrs.56.2023.10.21.10.23.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Oct 2023 10:23:25 -0700 (PDT) Message-ID: Date: Sat, 21 Oct 2023 19:23:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 33/42] crypto: qcom-rng - Convert to platform remove callback returning void Content-Language: en-US To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Herbert Xu , "David S. Miller" Cc: Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, kernel@pengutronix.de References: <20231020075521.2121571-44-u.kleine-koenig@pengutronix.de> <20231020075521.2121571-77-u.kleine-koenig@pengutronix.de> From: Konrad Dybcio In-Reply-To: <20231020075521.2121571-77-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 fry.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 (fry.vger.email [0.0.0.0]); Sat, 21 Oct 2023 10:23:45 -0700 (PDT) On 10/20/23 09:55, Uwe Kleine-König 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(). > > 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: Konrad Dybcio Konrad