Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1127211rwp; Thu, 13 Jul 2023 06:35:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6q7Y3UEimDSSdUs8RdaBrJm2TKgJBTs+zFSbg+0kJKpU4eOQORYbwPG3ZJvkXHSsOLCRN X-Received: by 2002:a92:d482:0:b0:345:cdbe:833a with SMTP id p2-20020a92d482000000b00345cdbe833amr1477295ilg.15.1689255328897; Thu, 13 Jul 2023 06:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689255328; cv=none; d=google.com; s=arc-20160816; b=tztF0AqecPJ6SOzLWb8TJIvzyG7hZ+l1bpauMHg0+JjQnEmVXpp3ZNHT3VldCHmlL3 7sLbHV9Bz73YfencUFpSFj3vAqoAwTuRKXw0OhSJNqIeGLHltQBj9I/tlAvK+0GZzexK uVTlUbfUFI5g92wB/MY/IwtRyxy7UQ2JrZKazrrA4owLy84R26JNsu016Gh0hoKGuvzb /yN/o+Dq04NBMjtZm5jyBVoZkwgWa/8xPZbXd1t5+RvbrbGL7qg5xyWZqJGZJ3ospLHt oMT+l5wKTw8LHhvZO4IKzUKCr/I44Q1E445idsBDJtcNUqNy6gC657NKx0nRfQoZt6mR eZTQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=eTZZrBaTp5Y7qqW6Wn8FqKBtvRs73dbpBLFtUAqx4Ew=; fh=a2uezooMs6aJsBbv9Vq0x9ubI3FgxF6YYgXEdcGiF7E=; b=gFT+Ok08/XDQGxmJhSrbL+QkK2g8fAuOELyrJXjp6at/mgajXkiB8KFee1xTMW84sQ g0IolRbR8khLbwcP9i8Iwj3mth+kI/gNtZvh5JxAELzbIcHJxGkTiYR7UDoYqwVYft5g 5uDScDUBvfxSU7mRAICOvwW04ieh+8EiaNIRezy6seqvxORKR9JsrE3+oVHAWJ2JuyAz WPUuC3v1iWBY6OiXfhYZ1Kq/g/gafdY5ZdKOvmcqbLOWxvwVII00rKfgaZS/pwdFI8PO F8Kw9S27AIY+JxRVXuxF5fQYgz42ZXGC2tJKFLeFyDck5GJnkvsvmj8944PXYSdiMPuX cFoQ== 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 q62-20020a17090a17c400b00263880de7a0si12693076pja.167.2023.07.13.06.35.16; Thu, 13 Jul 2023 06:35:28 -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 S234852AbjGMNO4 (ORCPT + 99 others); Thu, 13 Jul 2023 09:14:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234019AbjGMNO4 (ORCPT ); Thu, 13 Jul 2023 09:14:56 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BCE11B4; Thu, 13 Jul 2023 06:14:54 -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 945161570; Thu, 13 Jul 2023 06:07:21 -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 D9B503F73F; Thu, 13 Jul 2023 06:06:37 -0700 (PDT) Date: Thu, 13 Jul 2023 14:06:35 +0100 From: Sudeep Holla To: Yangtao Li Cc: Cristian Marussi , Sudeep Holla , "Rafael J. Wysocki" , Viresh Kumar , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/19] cpufreq: scpi: Convert to platform remove callback returning void Message-ID: <20230713130635.bxicz6vrj4gmzydl@bogus> References: <20230712093322.37322-1-frank.li@vivo.com> <20230712093322.37322-7-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230712093322.37322-7-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:10PM +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. Again 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