Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp245153lqn; Thu, 11 Apr 2024 23:03:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJOnIyFLporVsCIcHiLiLeLWm2EFtkrUmbSWAofhYTOcVwa7JVjmuH56vwJixAmLwB0LrQrOLZ4nv8dGBkIo/hVjKA1anhBqx6unwuhg== X-Google-Smtp-Source: AGHT+IEVDCkO5RPAezYRJMstB1ra2i2xe4WQvmXFTjoGMplcDW7T1jRFznM+iC9hSM2+63/+i86U X-Received: by 2002:a37:c201:0:b0:78a:3798:9724 with SMTP id i1-20020a37c201000000b0078a37989724mr1951997qkm.48.1712901791364; Thu, 11 Apr 2024 23:03:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712901791; cv=pass; d=google.com; s=arc-20160816; b=TBRcp8hl54zQvZIsQBBWLIE1B3xzBDPuTtglNMyupt9xr4/2D2Ze9tidchFYgZwY1M +dAs4SJ+TLwULMZbPat52kgujP1odIlEnpxd+35LgNUio6J3tOW0OZnvzq5kur6oW+b/ zN89eIZ89hRu5aZ66ikFtPr3RvFIlW82Xoa2y3mDIvodqLXpEPjo+eLT/xoGeAZx8MZ4 q7PLTtVNKl7ggEKyg3lTvxsdQeDQXiuOZYWVse0EsLYSvIUETs1tpCKtfC0lvCA2XiPG gRGlO54I5NdIRqlTvUvEwQbvjeWelkLmQ3P+u0SodT/iZ53LIvtvc15aCkyzlY8mNWLZ 4Nlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UOC8VAGw4i+hxCTWqMI13CQ+qXiRk+B8ACq5S9OFfwo=; fh=yuroae7fDdRuAZKQJBMmtfK8sVBDieWM9fzVZYAGoXo=; b=nrZa845aw6ecU0h1H24zFnTzypQjQOt8x5jnifbUY1j4Ygzi9zKnhv6EwQYXh4Fpo5 XE6wlBzR+kcp0Zp4eC7KZCdtsxfG4aRprQ9RXoiK29ZBRqUNNSOgq6DZ//irbcsJikkA hy0/na/Yi8pNC5oO922F9eXrIhl3a/D3Xh3kzdP+0dEI35iHY00v41tttABjptkzjn6S aidguxEHm077elFVTnhyWJhcvLrA6aDsWhgbskjfkkqqzv8m5ZzlGfa79wqhv7MKdV8g eWY/5BNZSU3JUuZOuRFrO2yTc6JTpqLPyUFW/11/T69qAOoJQLJqkYLccX74LP2sDquM YIzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LePrcnYH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-142011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o9-20020a05620a110900b0078d5a75cdf2si2989810qkk.196.2024.04.11.23.03.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 23:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LePrcnYH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-142011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A46911C22DB7 for ; Fri, 12 Apr 2024 06:03:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1303A20DD2; Fri, 12 Apr 2024 06:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LePrcnYH" Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC9451C29F for ; Fri, 12 Apr 2024 06:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712901779; cv=none; b=qtB7PaSlI4Xy98QyL5uNfAEsq8YN1NA6nqfw0BiqEkHbR7oztW7N1+AKffPKOush3rrQlBIbeemwcvVmOzg/w/GFWpPj01hHPZLgrzwYVoE0+s+i4WEd6c0EMQ6cFpPBOI0PrYssuRBwKpCsIxzn88oPD0W5FG569tIbX4xqr4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712901779; c=relaxed/simple; bh=ExyxUzpzP2ODisSEoZ3OwuMrbdzXJYtf7V+Wo66ckDA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eARMywtEoRsSDOrAAd3HhZtlwqGnhoxvoPzDV9uBsPA+CHud8LezswcOln7iojUGXk07BZ6xeJbHqzn5PZcfYVSuPUFOpue4+jkDPu7JVcNbUGtuH39rdlhldH1pJCXUv4vzRU9d5+cITshy9nNyQl2e79oTrv0bszdAXe/Glfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LePrcnYH; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1e4f341330fso5767825ad.0 for ; Thu, 11 Apr 2024 23:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712901776; x=1713506576; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=UOC8VAGw4i+hxCTWqMI13CQ+qXiRk+B8ACq5S9OFfwo=; b=LePrcnYHT2M2S4LPxcy8d1/aTJ+vh+P/KeVZkG0KKpp9uGRevGxZtH4PlwfUwn7reA YNRCz/EiehNXtw8QBSsVXZulHVA4WSha+c09OkggP5FEdUsG3DEKEd8yrQl3CLmFH3G3 AN3nRWSk413rUh1t93PdG4VJYWqdpKiPGmlrs8NVjwJqMsT56lsaLqHGH4EwfS6zR407 guBqGFn9G4dN41vqnLq9TTljr4X9+AEC2RIsm6sG6Ve5XDwyk+IYNOayEyhOFlrnsH03 yVFvcDOmF3Zrc6sZldFWxRUEPJ3UNMxjwedHLkiRX92GKsfEDaN+e3qcUaHSP4Wg96Hb mU+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712901776; x=1713506576; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UOC8VAGw4i+hxCTWqMI13CQ+qXiRk+B8ACq5S9OFfwo=; b=VB+5C0+3zt2siExGeJySyN13mh6ibSAzJN/FDjmY7tge3qnTBrjvvIgGNYJqQmSDHr dhFIMLbpmYtOAWNU3jJ8hvopAEZOr3oN5axXWAPVpsWJkZ+N2X7baLZ9p9DLn0H26Si8 LRAp68OUzFATDHEhB23FvgyaGrahk5mMBS5f9C9EvbJPVMby0aAf7RNoRuzhWaYqFeS2 LXiap5H3C0y77ZBGtosbQWkfTymkqfMdt/xV0rFdvDboWD7Eauz7nFh2l/B5yJs++oAT /oVir9YOzIen4UuQoqsko1BnzP/qaqAawQw5L4nUjuIUeDwm6Yfm159ZJwIi8mU2uZFo BeMA== X-Forwarded-Encrypted: i=1; AJvYcCWCzKY636AJym5LwPbUs2rEthkRJIeA+7QjRbbC7il/FtgYOFUtqGNyE95PO2p0RxK37/n4cDLbL0aydn+apc72r9cPUhLrglm/6z5g X-Gm-Message-State: AOJu0YwgCY5wXyBIABfIBpYURVRPA5oAjsAOWUu2AQpaqLefvA/TYudM osWlC2OuR9MpTuScOgb82uUoS8VfUgFQLFYnD528NLYRbMikv7+69q0z+8nQhek= X-Received: by 2002:a17:902:b48e:b0:1e3:f2d0:1a4d with SMTP id y14-20020a170902b48e00b001e3f2d01a4dmr1563677plr.45.1712901775863; Thu, 11 Apr 2024 23:02:55 -0700 (PDT) Received: from localhost ([122.172.85.136]) by smtp.gmail.com with ESMTPSA id u22-20020a1709026e1600b001e2ba8605dfsm603815plk.150.2024.04.11.23.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 23:02:55 -0700 (PDT) Date: Fri, 12 Apr 2024 11:32:53 +0530 From: Viresh Kumar To: Lizhe Cc: rafael@kernel.org, ray.huang@amd.com, marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, mmayer@broadcom.com, bcm-kernel-feedback-list@broadcom.com, srinivas.pandruvada@linux.intel.com, lenb@kernel.org, khilman@kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, aneesh.kumar@kernel.org, naveen.n.rao@linux.ibm.com, andersson@kernel.org, konrad.dybcio@linaro.org, sudeep.holla@arm.com, cristian.marussi@arm.com, thierry.reding@gmail.com, jonathanh@nvidia.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] cpufreq: Covert to exit callback returning void Message-ID: <20240412060253.5zzc72mkmmz3xr72@vireshk-i7> References: <20240410132247.3587-1-sensor1010@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240410132247.3587-1-sensor1010@163.com> On 10-04-24, 06:22, Lizhe wrote: > For the exit() callback function returning an int type value. > this leads many driver authors mistakenly believing that error > handling can be performed by returning an error code. However. > the returned value is ignore, and to improve this situation. > it is proposed to modify the return type of the exit() callback > function to void > > Signed-off-by: Lizhe > --- > drivers/cpufreq/acpi-cpufreq.c | 4 +--- > drivers/cpufreq/amd-pstate.c | 7 ++----- > drivers/cpufreq/apple-soc-cpufreq.c | 4 +--- > drivers/cpufreq/bmips-cpufreq.c | 4 +--- > drivers/cpufreq/cppc_cpufreq.c | 3 +-- > drivers/cpufreq/cpufreq-dt.c | 3 +-- > drivers/cpufreq/e_powersaver.c | 3 +-- > drivers/cpufreq/intel_pstate.c | 4 +--- > drivers/cpufreq/mediatek-cpufreq-hw.c | 4 +--- > drivers/cpufreq/mediatek-cpufreq.c | 4 +--- > drivers/cpufreq/omap-cpufreq.c | 3 +-- > drivers/cpufreq/pasemi-cpufreq.c | 6 ++---- > drivers/cpufreq/powernow-k6.c | 3 +-- > drivers/cpufreq/powernow-k7.c | 3 +-- > drivers/cpufreq/powernow-k8.c | 4 +--- > drivers/cpufreq/powernv-cpufreq.c | 4 +--- > drivers/cpufreq/ppc_cbe_cpufreq.c | 3 +-- > drivers/cpufreq/qcom-cpufreq-hw.c | 4 +--- > drivers/cpufreq/qoriq-cpufreq.c | 4 +--- > drivers/cpufreq/scmi-cpufreq.c | 4 +--- > drivers/cpufreq/scpi-cpufreq.c | 4 +--- > drivers/cpufreq/sh-cpufreq.c | 4 +--- > drivers/cpufreq/sparc-us2e-cpufreq.c | 3 +-- > drivers/cpufreq/sparc-us3-cpufreq.c | 3 +-- > drivers/cpufreq/speedstep-centrino.c | 4 +--- > drivers/cpufreq/tegra194-cpufreq.c | 4 +--- > drivers/cpufreq/vexpress-spc-cpufreq.c | 3 +-- > 27 files changed, 29 insertions(+), 74 deletions(-) I have discarded all emails with following subject line: "cpufreq: Convert to exit callback returning void". While you have sent decent patches for removing the empty exit callbacks, the way you have handled these changes is not correct. Don't send any patches for now and please wait and understand what's being asked from you. This change you are trying to make is okay and sensible, but you can not send random patches to the list just like that. You are wasting everyone's time here including yourself. Now what we expect here is a single commit (with version history), which changes all the users of the exit() function (each and every cpufreq driver) and cpufreq.h and cpufreq.c. That change should compile fine and break none of the platforms compilation. Please don't send more of these patches unless this is done. -- viresh