From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 654D3CE79A8 for ; Tue, 19 Sep 2023 21:02:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233279AbjISVCn (ORCPT ); Tue, 19 Sep 2023 17:02:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233252AbjISVCm (ORCPT ); Tue, 19 Sep 2023 17:02:42 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13F99C0 for ; Tue, 19 Sep 2023 14:02:35 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50300cb4776so6232230e87.3 for ; Tue, 19 Sep 2023 14:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695157353; x=1695762153; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CkfWxT6lfF9Ia8taCV57X5Sx4DgFIC2eOwDKvIcY1ZQ=; b=hXtqbTo192Yhry2Dr6eN/5feKgEZ14C+JI1xjJcKJMj/9Z1F1ZAUBcrepV1DdaTlPg Pl1OZ/j3um1NJiqzw5K5qX8miRg8QGFmXoKE0FKORcqv/9rlho7yMMLUMJ5e/r+3J7ok XpMfCGWQXtKocKy4yyliWf//beeih1cOdX7OFoN++5daKY7XF4eqjQLjfniGbBn4awPz DGxr70Va9tJG1ovbtNDI+bByPPIQ+sXkNA4urMzsKH5choyxrdKYbn9igpPIRRmcTs75 QrLzXOvrL/7ISGKY5TBJOpMsGTtJBKNuk2xviIXkmVIIXprQ9v/BsW2ukQmwsQ6VzWjr W94A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695157353; x=1695762153; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CkfWxT6lfF9Ia8taCV57X5Sx4DgFIC2eOwDKvIcY1ZQ=; b=sHMoHKPaDMZ7OJFzOY2K32UHxfdmCVi4VQy8RVNN0MNubC9ChQetcyT82AXF3HOyFb fN4EVRngHteHr3a36YtQ9hBITlZwb9kkIGY4Izq2bAiGOxTTs7Y1UVh6LX1hAeBhCo4S iD5+tpGsh8bPAGiP2QtXP9bdKms/a1nwV3nd/n3J74rF5WdBuCrqeZFJEG9+BEPHOxWq 3xG3Dfu35YfNE7i9DwHCUaaS6ApGA04e3np2h8z8gbC2VmEF82nUapwsisbI+6WhwZL7 hhlTWN35uKLyRruvilpV3wAeWOLZGDSb5mrr9DweGBp6ccfVsV2k/6DkHsRuplK70fcE eygw== X-Gm-Message-State: AOJu0YxGKQT0Z4v9YWSsOgPQjLL9lmRYaiNiY65GqgRJde+bRHJFLlKs Z7NGzqIx+J0d3DfdyYQVCn2DCQ== X-Google-Smtp-Source: AGHT+IHVtD0cD72/j8e7Mh/umPtqdNCHvbA1K1mXqFLXJSuN1FEopRLJbCe/Q0jm3DjpkdwpSc6/yA== X-Received: by 2002:a05:6512:3c98:b0:500:d970:6541 with SMTP id h24-20020a0565123c9800b00500d9706541mr844807lfv.39.1695157353186; Tue, 19 Sep 2023 14:02:33 -0700 (PDT) Received: from [172.25.80.155] ([217.67.225.27]) by smtp.gmail.com with ESMTPSA id n13-20020aa7db4d000000b005232ea6a330sm8003650edt.2.2023.09.19.14.02.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Sep 2023 14:02:32 -0700 (PDT) Message-ID: <3b6dc2d4-3aff-85a4-9fc3-1d46b93d6e08@linaro.org> Date: Tue, 19 Sep 2023 23:02:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 34/59] dma: qcom: bam_dma: Convert to platform remove callback returning void To: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , Vinod Koul Cc: Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, kernel@pengutronix.de References: <20230919133207.1400430-1-u.kleine-koenig@pengutronix.de> <20230919133207.1400430-35-u.kleine-koenig@pengutronix.de> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20230919133207.1400430-35-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 9/19/23 15:31, 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() is 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