Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5705264rwr; Tue, 9 May 2023 05:25:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4F5diNKlgGtpDbPcbHl3jFpggtt1rh/izjt8w3EhNMTWAFuI9J7M7LgLg/PYYJ8xbrbdE1 X-Received: by 2002:a05:6a20:158a:b0:f4:1acb:8b20 with SMTP id h10-20020a056a20158a00b000f41acb8b20mr18594874pzj.3.1683635132455; Tue, 09 May 2023 05:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683635132; cv=none; d=google.com; s=arc-20160816; b=p+5V2uLqx97wVI46qOmPgIywYkgp67ynDCMo+ATvJae+cPqNlasD3Htc1p11t7KKVM d1fL0YPBzZCNoNHq8rEFqaT3rAjZBy901tgR6y30fH6san55jug5M6riHZA/uHeje7pM g3j6rmwA2gATXu5YP+rKzkrcDiNn0sTBymNdYkNJ4WCGxl7gvQgmJ7y6etcryW3OUqyN C4pFJ0hoOtTsvndYVtvKlYbwTDB1PjikZcRrwGQOlGNP8Ejk6SHmBho7cj2BXzukM3WG KV/Osn0qOtW+4XCEYzak2EeNPhYiawzeulEzHjCNy2lnzVVxv4Tmw6BP0TGs8ZlGzpkd VkFg== 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:dkim-signature; bh=w9ZaYfGQLnsjl5rvdlkKtxo7qUAhx23UUqPTa9OD4FA=; b=RIUnHd5CgPIab3wQoMJDmhcKsPu6060ePmWhwZqZ2Ouax1oIp7/2zwW6seHAJFwtAa XiSeMAkhWJnPwhHx62nGHzSyKX9y90YvIak5gPDjaWu2qepYY1r0PQUatNgjwDeD27bO ex2qhiueWv8GiO82Y+LPaxdUBVjPip3RxXY4OazkbjHCpYe5KzajsEso0QgHIRHqrYQU /HLRQgaMBhb8E3RWMynZnk8kTX8XQOwakforft6IijS3k2edXZ4HstsdWCSf4dMwOBLW NKufn3FNDzU79qJbjwHFJZwQeNlrkrgdRYImz0dG+LaVmnZMqCh/5l+ZPVXADiuoGzsU QUxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W1bPOiZK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v184-20020a6389c1000000b00520a074168csi1327499pgd.454.2023.05.09.05.25.20; Tue, 09 May 2023 05:25:32 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W1bPOiZK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235273AbjEILxM (ORCPT + 99 others); Tue, 9 May 2023 07:53:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235578AbjEILxJ (ORCPT ); Tue, 9 May 2023 07:53:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B4602736; Tue, 9 May 2023 04:53:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CDD7A64609; Tue, 9 May 2023 11:53:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5D8EC4339B; Tue, 9 May 2023 11:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683633181; bh=iDUKUbZirpdLT/vnKcBM+kYSe00R/wpZnwcBAxCQbnE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W1bPOiZKnSFiLiLDtQ3LlokHgGQOjwFeqjF2sJvt61xfBfEyxxAwUd9YekZxf2TGN QgrM9ySmN7DbaweowOOlrfViqNK3SKTeMw+V0NttIAXV8og+4XWQPPpMNGjVs+1pPZ TOI/DTI3R096tlA5EZ32dSL9UBuVu8uT5fx+axy6nDcLMhThlu1+kFlzkxHu9l0Tlx Cj66TLJ/YtYuVIm+3SGnqt8hxlZjaTTa2e8xwE8AuXR2sZGqcbHDBjLmyCYY7GNNv9 iW4uHJgbgTczFJ/+gIHD3YjCte+cisebQsAvK1K6PPweCbLsNmNb5RRgjtQjCqt6eC bUMJ3jAAQThkQ== Date: Tue, 9 May 2023 13:52:57 +0200 From: Simon Horman To: Baoquan He Cc: "James E.J. Bottomley" , Helge Deller , "Leizhen (ThunderTown)" , kexec@lists.infradead.org, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] parisc: kexec: include reboot.h Message-ID: References: <20230508-parisc-kexec-include-reboot-v1-1-78a155a8a0a4@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 Tue, May 09, 2023 at 05:01:42PM +0800, Baoquan He wrote: > On 05/09/23 at 09:01am, Simon Horman wrote: > > Include reboot.h in machine_kexec.c for declaration of > > machine_crash_shutdown and machine_shutdown. > > > > gcc-12 with W=1 reports: > > > > arch/parisc/kernel/kexec.c:57:6: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes] > > 57 | void machine_crash_shutdown(struct pt_regs *regs) > > | ^~~~~~~~~~~~~~~~~~~~~~ > > arch/parisc/kernel/kexec.c:61:6: warning: no previous prototype for 'machine_shutdown' [-Wmissing-prototypes] > > 61 | void machine_shutdown(void) > > | ^~~~~~~~~~~~~~~~ > > > > No functional changes intended. > > Compile tested only. > > > > Signed-off-by: Simon Horman > > Acked-by: Baoquan He > > We may need to find out the places in all architectures and fix all of > them. I did check. It seemed to be needed for riscv, m68k and parisc. I've sent out patches for all three. But I may have missed something.