From patchwork Fri Sep 29 06:13:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13403743 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA334E743ED for ; Fri, 29 Sep 2023 06:13:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=B4pC+WsxY3FvierZ9jDlcVyDmkCCfaR39vO7dTF+l5c=; b=U6Zp7kwVd8vmF5 QILfxeBoGTEFjxoPzF98XOqagdLZGOlCRc8VwL6K7eCIa3sTWU4PrDuGaBdJGPbopkVXIuaP3g2QN FbhTiLu+LuPrhMSJJQGZ5SGQUhy9zkHx2EgD1pmCXnh8zgMlRTh6Sd6HSw0mPHo8jMKdrCrvtuj3N 7ZTnj9DASvWksiAgukfpQ6D9KqErMjpENIn5KmDFsGBMHP6laKD6+tGLZzLaWdW5LzX0aqsE9z1cn JUAs9DwA2LhJ/B6xOqa5iawVK5vJtX7FxFCZzGEY+nyMWxrSm54n+aqYX5Fs8IoeuK01lWzFfyJux nRwts/0F0bbiPkVn69MA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qm6ke-007Eqg-0P; Fri, 29 Sep 2023 06:13:24 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qm6ka-007Eq8-26 for linux-amlogic@lists.infradead.org; Fri, 29 Sep 2023 06:13:22 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qm6kR-0006t6-Jz; Fri, 29 Sep 2023 08:13:11 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qm6kQ-009kcb-DQ; Fri, 29 Sep 2023 08:13:10 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qm6kQ-005q0n-30; Fri, 29 Sep 2023 08:13:10 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: "Rafael J . Wysocki" Cc: kernel@pengutronix.de, Daniel Lezcano , Guillaume La Roque , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, kernel test robot Subject: [PATCH] thermal: amlogic: Fix build failure after conversion to .remove_new() Date: Fri, 29 Sep 2023 08:13:05 +0200 Message-Id: <20230929061305.2351953-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1639; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=13Z1to5MG3FIfiSVPPchPg9gsuDRWRE9cMd7HsLPULM=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBlFmrwVgajUhEsC20E8NOZ4T/fEWNbhyqEvmByM c3ujLPIxseJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZRZq8AAKCRCPgPtYfRL+ To8wB/9Htf20WNbgD4mF3exvAEiOkhGYvEjGNMT2/kzqJ6ICxintj2SIJtavL1m2DMAp9d5WtL0 i2Lm6DSwcnI1YQhSWysYDvxSVNNJx61kPQ5dQKSwE6uMOn3+d8Z6XaDOgqXhaxPuSUWglNuOIha 5zAXRLvU562DVevp8iLlqn94udoPQOQGXiIf2t4QVdlXYDGgXvZbJBMwusKLBBH+SKM/yaUmpXJ uxvDVlGWNNzpjQS9lo2mslUkKRwSJ+P4Db/WRMgfmE6oVGrbS76dr1TMVHbS1A/9KxTiqrUR2QR RXRpYo9LBvGAliW23ei2+tx/+kTL7QbRN64PR7vrrZbMrvJA X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-amlogic@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230928_231320_688701_8D344E73 X-CRM114-Status: GOOD ( 13.38 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Commit 88af8b66ffed ("thermal: amlogic: Convert to platform remove callback returning void") converted amlogic_thermal_disable() to return no value but missed that amlogic_thermal_suspend() makes use of the int returned by this function. As amlogic_thermal_disable() returned zero unconditionally before, add a return 0 to get the same behaviour as before the offending commit. Fixes: 88af8b66ffed ("thermal: amlogic: Convert to platform remove callback returning void") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202309291214.Hjn3gJ94-lkp@intel.com/ Signed-off-by: Uwe Kleine-König Acked-by: Neil Armstrong --- Hello, sorry for not catching that before sending. I don't understand yet what was wrong with my testing; I would have bet the series was tested with an ARCH=arm64 allmodconfig build. :-\ If you prefer it, feel free to squash this patch into the offending commit. Best regards, sorry and thanks, Uwe drivers/thermal/amlogic_thermal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c index 1426f1eb4ac6..562f63b7bf27 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -300,7 +300,9 @@ static int __maybe_unused amlogic_thermal_suspend(struct device *dev) { struct amlogic_thermal *data = dev_get_drvdata(dev); - return amlogic_thermal_disable(data); + amlogic_thermal_disable(data); + + return 0; } static int __maybe_unused amlogic_thermal_resume(struct device *dev)