From nobody Thu May 7 16:55:05 2026 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 AF519C433F5 for ; Mon, 23 May 2022 18:31:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240119AbiEWSbs (ORCPT ); Mon, 23 May 2022 14:31:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240205AbiEWSam (ORCPT ); Mon, 23 May 2022 14:30:42 -0400 X-Greylist: delayed 470 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 23 May 2022 11:05:04 PDT Received: from cantor.telenet-ops.be (cantor.telenet-ops.be [IPv6:2a02:1800:120:4::f00:10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C601E64F4 for ; Mon, 23 May 2022 11:05:03 -0700 (PDT) Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by cantor.telenet-ops.be (Postfix) with ESMTPS id 4L6Q4V0G5fz4x0WL for ; Mon, 23 May 2022 19:56:26 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:4593:272c:6293:e2cc]) by andre.telenet-ops.be with bizsmtp id aHvN2700U2jQL2A01HvNXx; Mon, 23 May 2022 19:55:25 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ntCH4-001MLx-1F; Mon, 23 May 2022 19:55:22 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ntCH3-003z4C-A1; Mon, 23 May 2022 19:55:21 +0200 From: Geert Uytterhoeven To: Dmitry Osipenko , "Rafael J . Wysocki" Cc: Laurent Vivier , Stephen Rothwell , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , noreply@ellerman.id.au Subject: [PATCH next] m68k: virt: Switch to new sys-off handler API Date: Mon, 23 May 2022 19:55:20 +0200 Message-Id: <20220523175520.949681-1-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On m68k with CONFIG_VIRT=3Dy (e.g. virt_defconfig or allmodconfig): arch/m68k/virt/config.c: In function =E2=80=98config_virt=E2=80=99: arch/m68k/virt/config.c:129:2: error: =E2=80=98mach_power_off=E2=80=99 = undeclared (first use in this function); did you mean =E2=80=98pm_power_off= =E2=80=99? 129 | mach_power_off =3D virt_halt; | ^~~~~~~~~~~~~~ | pm_power_off Commit 05d51e42df06f021 ("m68k: Introduce a virtual m68k machine") introduced a new user of mach_power_off. Convert it to the new sys-off handler API, too. Reported-by: noreply@ellerman.id.au Fixes: f0f7e5265b3b37b0 ("m68k: Switch to new sys-off handler API") Signed-off-by: Geert Uytterhoeven Reviewed-by: Dmitry Osipenko Reviewed-by: Laurent Vivier --- arch/m68k/virt/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/m68k/virt/config.c b/arch/m68k/virt/config.c index 68d29c8b87e18840..632ba200ad425245 100644 --- a/arch/m68k/virt/config.c +++ b/arch/m68k/virt/config.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 =20 +#include #include #include =20 @@ -126,5 +127,6 @@ void __init config_virt(void) mach_get_model =3D virt_get_model; mach_reset =3D virt_reset; mach_halt =3D virt_halt; - mach_power_off =3D virt_halt; + + register_platform_power_off(virt_halt); } --=20 2.25.1