From patchwork Thu Sep 29 04:29:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 12993494 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 4B655C04A95 for ; Thu, 29 Sep 2022 04:31:12 +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:References:In-Reply-To: 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: List-Owner; bh=mBZRyWq87lsbtqkYLupNkLiRlFSaqfUhmJkH53aTDgw=; b=ZjDCKiaEEjCGlL gHn9Z7O7owsPCVsjxTqbiCoh3tLpHp6/dhUOxYqp1LQcEfsxL1xgMw5xy0Z8Hsjvxma42czZbj608 kmcbeYDByyeSIuR3eqkdk2nUdi/tNeKlEYsvZzSVvRhowCHUG2e9QbYEvR/5NeM9RrBh5Za1One1v 0GXvXECG+bcMnaryn6bVFCXfWN82VHi+aammo2XxKzFaH7sN1RTAA9q6UjJbao4ch5/SPLIxoX6a6 0eV6VQuZdcIUOxTcevJ0XrTqgoherZbwveWdyZc9JGlWvSZto8VQH0uAvO9b2xbVbxupEdFRHCUHW AWbOwnJDswR0I1aiO+UQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odlBi-001A6V-5b; Thu, 29 Sep 2022 04:30:18 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odlBf-001A4p-8K for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2022 04:30:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664425814; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RznIbSNju5lEWDowOue9vOjILmb6RsNdRY/73lTO8jw=; b=hSHIavhLF3dBrZekrwe5mUrFVBhUZfP8qbbN+A/u4nob5ENI409N2K5dlIak36VQdCYUEN nyMsk4O8hQ55ojWy/ptmCgT72R8MyzOBK6h3fXTxE+DJMNVQonYpsva3STvkEVNlMIc7up 8L4Q7MACrSFTt8AwSNpzq7KJLb7RTwQ= 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-623-p6iGadHTNZ23Iyl0i5pPMQ-1; Thu, 29 Sep 2022 00:30:08 -0400 X-MC-Unique: p6iGadHTNZ23Iyl0i5pPMQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8656A80D08E; Thu, 29 Sep 2022 04:30:07 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-13-179.pek2.redhat.com [10.72.13.179]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1AED47AE5; Thu, 29 Sep 2022 04:30:01 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: kexec@lists.infradead.org, ebiederm@xmission.com, Chen Lifu , Baoquan He , linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, pmladek@suse.com Subject: [PATCH RESEND 4/4] ARM: kexec: Make machine_crash_nonpanic_core() static Date: Thu, 29 Sep 2022 12:29:36 +0800 Message-Id: <20220929042936.22012-5-bhe@redhat.com> In-Reply-To: <20220929042936.22012-1-bhe@redhat.com> References: <20220929042936.22012-1-bhe@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_213015_371257_1B3C196B X-CRM114-Status: GOOD ( 13.38 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chen Lifu This symbol is not used outside of the file, so mark it static. Fixes the following warning: arch/arm/kernel/machine_kexec.c:76:6: warning: symbol 'machine_crash_nonpanic_core' was not declared. Should it be static? Signed-off-by: Chen Lifu Acked-by: Baoquan He Signed-off-by: Baoquan He Cc: linux@armlinux.org.uk Cc: linux-arm-kernel@lists.infradead.org Cc: pmladek@suse.com --- arch/arm/kernel/machine_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c index f567032a09c0..a2e9ac763a9f 100644 --- a/arch/arm/kernel/machine_kexec.c +++ b/arch/arm/kernel/machine_kexec.c @@ -73,7 +73,7 @@ void machine_kexec_cleanup(struct kimage *image) { } -void machine_crash_nonpanic_core(void *unused) +static void machine_crash_nonpanic_core(void *unused) { struct pt_regs regs;