Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3413377rwb; Tue, 16 Aug 2022 02:31:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR6S+Y86Iq8XfmL4VvWLMwcgNKH/maQIcLi5NBJGXEAmqRRD1M+DTJ/pb1lg0Aj5Mb9YTkFI X-Received: by 2002:a17:903:200c:b0:16d:bc14:67e6 with SMTP id s12-20020a170903200c00b0016dbc1467e6mr21304242pla.128.1660642305022; Tue, 16 Aug 2022 02:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660642305; cv=none; d=google.com; s=arc-20160816; b=dJDZIBRqoeR+gnGKI78MCTiFDzJ/E+sHM5E0/jik7LBfv5f91cHnTDXCcdh0KHSPSZ s+vmf2LF1zh6xS11T9N6zsH8eEHdiyR8Rjf5Pr3ImY79mcyeh/HA/cA5cMnxDs+Rptz9 MmeqWR8JxlGPwrOa4D2UR0m1SdnRkLSwg1XJmYCw3dZBO2HbnUAqRoXGZ4JsxhadmCBe GFKtMZG2zskWKEMuwByrLoO750RZtSGuj5vgGu7vOJ37fbpgFCa8qZQtP/gZ32fDk0cl tbPCqiIpdNTuOYAYYxMnhdRNeZ/t8LyTIXGsZEuWjkvfMyJYn+8gUQm00ekhHfsg5xXf X0cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HKwunorZV+JQF2663LRNVpn/p+q18JZwcLsJ888kFVM=; b=u2tS6qhI4CBZ89okVIXoFIpqbnVz8vB7p13FmcuGf3CJsgeSXc+T2hN6cnxCzUJ9II cD48XZheHuMImyixD9+80DuRH89IWBY83nIW79PD12cO2ACWmcYSzdM8J8B6/ycy2dDp 4T8DKlbjizXLxYSJgGDKbfEAMut6ldakOnBG8ZfcMIgYXX0cV8TfafgkVhtIuBslLGD/ OMbVRh6K0Hs2CoAs7l/UDy3ihnWZi1R5gWBn13aH4VvJsvtGUvaJX9iWP0onAq/QLJve tkBor5EMmg8QrJSdb7jzRE+gzpBenj77rk2mibKAVGXlAmF0lomRCcR8SSqQjYtDUmyT 6wrw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170903124900b0016ec63b2033si14548561plh.121.2022.08.16.02.31.31; Tue, 16 Aug 2022 02:31:45 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231375AbiHPJ2q (ORCPT + 99 others); Tue, 16 Aug 2022 05:28:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232344AbiHPJ2K (ORCPT ); Tue, 16 Aug 2022 05:28:10 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 162BF63E3 for ; Tue, 16 Aug 2022 00:46:14 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4M6NRf3jXNzlVhj; Tue, 16 Aug 2022 15:43:10 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 16 Aug 2022 15:46:12 +0800 Received: from huawei.com (10.67.174.169) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 16 Aug 2022 15:46:12 +0800 From: Chen Lifu To: , , , , , CC: , Subject: [PATCH -next] ARM: kexec: Make machine_crash_nonpanic_core() static Date: Tue, 16 Aug 2022 15:42:50 +0800 Message-ID: <20220816074250.3991633-1-chenlifu@huawei.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.169] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 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 --- 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 @@ -71,11 +71,11 @@ int machine_kexec_prepare(struct kimage *image) 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; crash_setup_regs(®s, get_irq_regs()); printk(KERN_DEBUG "CPU %u will stop doing anything useful since another CPU has crashed\n", -- 2.37.1