Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5499291rwr; Tue, 9 May 2023 02:16:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NhAAy+8aiUT9TGg6H6dSNd0+a4s4o1xIrMyQoYkwQPI27fZM7FkzrP5FWLiYYN5mAXxR5 X-Received: by 2002:a17:902:c102:b0:1ac:4735:45d7 with SMTP id 2-20020a170902c10200b001ac473545d7mr13014696pli.6.1683623809616; Tue, 09 May 2023 02:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683623809; cv=none; d=google.com; s=arc-20160816; b=EVceO0kUqX6ABX0rkMUYo6yvovpnsKK9m/wFOKQMNMjGZRZa2P42qTEoN3NwnydeeR qXMHL6Aj08NEMosJuvfcLPmKSZEAt2umE7UYYktDfHbS+KTlg7PhNN++ReP/HAhr0e0r pqo46tIb0L1pyeaB/MxqC68QK6qgqblCyqXZHM+Wbrei1Liez5YUbvK97yoyKCticc/h 1CP6STpf6VlUcw6KAFUAwZ/RmmnEJo8XJKqG6Misoq7RF7il8dFQ0mW+ZIYRJtqs1diY CFnjUrFqJbOe/KvZt7LJkYdmNicYeMQcMOYPV88JCHc6PjWoR5AEH4smmK0IFErCJdGp nxvA== 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=Cm14icj1xcLZwuyrUAh+VMkzJdTwWmftCly76BVpCHQ=; b=BmJk7yVmrB3GlOKQpVWw4nMPf9jamp++zKr+kgEYxMmTOAVGf0ZAMmh6gAQULm5yqr 0rfhDQr65j0PokarjpZIuGC+a49wNylGMv+wgaE0ZMhJtfTSXOXUfgu0F4wmv1jG/Icm arrPIZ9VwrJP+YbTVb8CwAUvnQPX0mq7mmt7avJdtE+RAH0TOoJv1bQAye43cXfVoEhG 1ufIwmSN+3AuNcbCNVr0uVZibFvdU4JcqqxYPDJkbPVG7RJt2fda8YXRcxaEiMZC3kMH BPckL440up7aOXlOXQNCyS9vdL7RB07bxA0CAPYrX3tmcMg6AgIsWm1GSFs7Eb2Hxcdg RGVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ESInbJ5C; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s24-20020a170902a51800b001a6ff6a83e2si982931plq.522.2023.05.09.02.16.35; Tue, 09 May 2023 02:16:49 -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=@redhat.com header.s=mimecast20190719 header.b=ESInbJ5C; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbjEIJCf (ORCPT + 99 others); Tue, 9 May 2023 05:02:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjEIJCd (ORCPT ); Tue, 9 May 2023 05:02:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3338A266 for ; Tue, 9 May 2023 02:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683622910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Cm14icj1xcLZwuyrUAh+VMkzJdTwWmftCly76BVpCHQ=; b=ESInbJ5Cg1U/06ZkVelj4C79FH9/FY22AqAwUcPBaXuAW9HBHu20vo8v4KBNqE/DXN14Ei +d6iBiRcH0snfikXD3xJBKrQcKN/XIZE6TP0nlqEFJRNtDTIh68lbfEy96SdIlCyPGZ2UV UPABwYG2cYm7vHw5z2zxTSH+dOAWB+s= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-515-jYw41fAHM-2pUokrhyocWA-1; Tue, 09 May 2023 05:01:46 -0400 X-MC-Unique: jYw41fAHM-2pUokrhyocWA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 525CC101A55C; Tue, 9 May 2023 09:01:46 +0000 (UTC) Received: from localhost (ovpn-12-139.pek2.redhat.com [10.72.12.139]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8ED4B40C2063; Tue, 9 May 2023 09:01:45 +0000 (UTC) Date: Tue, 9 May 2023 17:01:42 +0800 From: Baoquan He To: Simon Horman 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: <20230508-parisc-kexec-include-reboot-v1-1-78a155a8a0a4@kernel.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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. > --- > arch/parisc/kernel/kexec.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/parisc/kernel/kexec.c b/arch/parisc/kernel/kexec.c > index 5eb7f30edc1f..db57345a9daf 100644 > --- a/arch/parisc/kernel/kexec.c > +++ b/arch/parisc/kernel/kexec.c > @@ -4,6 +4,8 @@ > #include > #include > #include > +#include > + > #include > #include > >