Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp132433rwb; Tue, 27 Sep 2022 23:58:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6+cVFJZ/Sr0Hr6tMFamoMZyGAgvDNthBajv9+iGkpv2EIW0aYaIuqSoZ6DMgvIb3P9GR86 X-Received: by 2002:a17:902:bd05:b0:179:bbad:acff with SMTP id p5-20020a170902bd0500b00179bbadacffmr27751184pls.170.1664348336804; Tue, 27 Sep 2022 23:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664348336; cv=none; d=google.com; s=arc-20160816; b=ksOonGAssZAKIJA4nXVm54vovM2Du4M6h4nTd0bbS82yP8+OtiABfHC/cooyp2d0Xr +kx4afX2sJtxbJLVxLci80fD3gm6MUQj0fO4fLiSLya1O2B87DEBPup/6TrYevgSsexD +kgAGCVkDtzVzeRQLtuYQ0Nn/iLZjoW/mFgsMpg9g9+XHR7cRu2rzfa63hDSSEQ6jbii ICCAVXUBB2gtTMi8t/frB6nFLEzsnSFWgQa6vmxhIEzoBd1OZXd9CPEafAFTToe4nXOA hJw+3jg4zDz99EexS/5GK5nEX01htvwRRbj9F8rxeXzamubQmEFe6PY/tSeWcYbGRX2n O1Cw== 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=IlaSZc33GONrE9IArKtEWlpurS3hEknJV/JTkyz5RZ0=; b=KUxBPwJSF01ThcEIST+XXVqM83mb7FXqYGfinFlQm3dsG60vMTnpCZqtrBRWEb9zJh OLYSHBYvjjN/GemJ8St6gfaikzuYfPp6MUQxfYQj+JaF5W23jFWIKLGLPqzt8AOwJp3q ++7YsFRcKSvZOaanOId7vFDDCnmBmjFWUUG7kEGH0QkaFEVM4l0BTVpRM49Y2HdlRRaC GrBe4wh2RN3vxCYzivzscIT9Bdx2lFIx2Vez8xVYe2JRqGZRi6KJiJiv/0eu507hugIh rF0rki7v0wl+a86B3eRfmFPfJ7YAJI2n1IkW7v3a1o1TbslZnm/JRWf7HMaGQMxWMmNI 0sew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ei/q7ZTj"; 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 p2-20020a17090a348200b001fb4d158643si1297308pjb.121.2022.09.27.23.58.45; Tue, 27 Sep 2022 23:58:56 -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="ei/q7ZTj"; 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 S232218AbiI1Gyv (ORCPT + 99 others); Wed, 28 Sep 2022 02:54:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231771AbiI1GyZ (ORCPT ); Wed, 28 Sep 2022 02:54:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2793481E9 for ; Tue, 27 Sep 2022 23:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664347973; 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=IlaSZc33GONrE9IArKtEWlpurS3hEknJV/JTkyz5RZ0=; b=ei/q7ZTjNwzS5h/Cg9Nik5CkBJ+JayhfLmiGr1/6psnrxS6UxY/E/WVW0YdqRNLORY0FAs 6hMUxo5Q9BgYaZvgbmDFYG8eR2kXoJyu+S8PiGIg2abwutcewUXZUEj1EULBlqMZ5cgLEj ky49N6QqOpc2Nux/aFAALwIq4X48I9Q= 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-292-7yyPjbgSNVaEGE3qQ-_5FA-1; Wed, 28 Sep 2022 02:52:47 -0400 X-MC-Unique: 7yyPjbgSNVaEGE3qQ-_5FA-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 4C7FD185A79C; Wed, 28 Sep 2022 06:52:47 +0000 (UTC) Received: from localhost (ovpn-13-211.pek2.redhat.com [10.72.13.211]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 772D5422A9; Wed, 28 Sep 2022 06:52:45 +0000 (UTC) Date: Wed, 28 Sep 2022 14:52:42 +0800 From: Baoquan He To: Chen Lifu Cc: linux@armlinux.org.uk, akpm@linux-foundation.org, pmladek@suse.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] ARM: kexec: Make machine_crash_nonpanic_core() static Message-ID: References: <20220816074250.3991633-1-chenlifu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220816074250.3991633-1-chenlifu@huawei.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Spam-Status: No, score=-2.2 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 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 08/16/22 at 03:42pm, Chen Lifu wrote: > 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 LGTM, Acked-by: Baoquan He > --- > 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 > > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec >