Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1110321rwp; Thu, 13 Jul 2023 06:21:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJAeuRoA4hMy7B+gs4NDp7OPWgwpmXec56Ni6CMyYyPb0FJln7AwQVbE7cWCPfRaTX/B6P X-Received: by 2002:ac2:4461:0:b0:4fb:911b:4e19 with SMTP id y1-20020ac24461000000b004fb911b4e19mr1132877lfl.35.1689254500209; Thu, 13 Jul 2023 06:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689254500; cv=none; d=google.com; s=arc-20160816; b=L1hTBjWqTFus5bHat3huWx7DpaAoyFn3YUQB4dVz/D2pLJoWrJjXquJXP+BZXXb/IM 92X5VYTryhFGiyzQPXI5Q1CRDLOkb+jQIQnHKGsVAPwwYC/c83cV67hVjxmrzSJRiT4M OSDSwRZKNkWUgMi3bJpfL9s1HDsWPhQkbQIoPjZt5AJoKy0Q05WZofUJCqVKeNvXmw/H tzn1r5L4VmV6VgYj+fEAB88O+fdbuEo9cxc0NWv9Mj69fFWNlnk1zHOD2+uuUc7OWn8/ QJ3EooPhIwrqBY/MMuqIEqWkF6pNFj4YHU40E70f243DfgXUpoywOypkPPzBGh42qzzV 8wfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=01o44hYwqIQb8LdgnNojmc3yMFgMfciOBsy9WyB96Hs=; fh=/+VP+ezLLg2JApd8KaJJACvFslnUzh5cqbZrRXh8Ick=; b=ba13ehi9lb067qPznL71n+8y9osMtlQQJzkHtb+lO5kIYXl2lhzFAWVjI9yyh8AF2Y jenj2jhQuvXrx2YdxVoTM2NMJoFcMloPHt+YYKZ3pWpIPV0bLq+7HzZ4NDMJPKX14Yp3 4IJLb679QZKZHptc7tnr5+beHH49CxlKiimAHrq7rbjGphtg8KNRW/uCA9DlSxnqPIsn FP6lsDRYGDF55xpzksRycQ8wgJFSIgNFRBp1EKdjGYKzFmCRhaWerGJZAPwE1m6DfMUz KCN3RhRKWcc0fpvMXGLo7rOft59yRNqU38KQuRL0iVQ1ZG1qwcFvlpBwRFv1QLFk0dbt 5C+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a056402134600b0051e19396481si7030088edw.11.2023.07.13.06.21.16; Thu, 13 Jul 2023 06:21:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235114AbjGMNGv (ORCPT + 99 others); Thu, 13 Jul 2023 09:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234659AbjGMNGO (ORCPT ); Thu, 13 Jul 2023 09:06:14 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC7311BC9; Thu, 13 Jul 2023 06:05:19 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D50961570; Thu, 13 Jul 2023 06:05:17 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B3B33F73F; Thu, 13 Jul 2023 06:04:33 -0700 (PDT) Date: Thu, 13 Jul 2023 14:04:31 +0100 From: Sudeep Holla To: Yangtao Li Cc: Viresh Kumar , Sudeep Holla , "Rafael J. Wysocki" , Liviu Dudau , Lorenzo Pieralisi , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 04/19] cpufreq: vexpress: Convert to platform remove callback returning void Message-ID: <20230713130431.bj2p7v2hy7tt736j@bogus> References: <20230712093322.37322-1-frank.li@vivo.com> <20230712093322.37322-4-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230712093322.37322-4-frank.li@vivo.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 12, 2023 at 05:33:07PM +0800, Yangtao Li 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 (mostly) ignored > 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. > > Trivially convert this driver from always returning zero in the remove > callback to the void returning variant. > > Cc: Uwe Kleine-K?nig I assume either Viresh will pick this or you are planning to group all similar changes and get it merged together. Either way, Reviewed-by: Sudeep Holla -- Regards, Sudeep