Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2243965imm; Thu, 2 Aug 2018 08:25:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc0Ov7Q/4IKUiclZGu46IZsTmn7KYJMVctd08dIpQY4tvJqXn8lvBHPlF3i5xzrD/YBq/NY X-Received: by 2002:a62:c98e:: with SMTP id l14-v6mr3518104pfk.10.1533223533710; Thu, 02 Aug 2018 08:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533223533; cv=none; d=google.com; s=arc-20160816; b=vK8ofW3aoURKhSNmw/P7NEMo2OB9dCKbenGeOjfdGCK/OR/qf5ToOJpXW/03XxKrjv N240bL6UPF8IaP/g6dczISm+DKUPYKAhwqwgjXVoaiS7/s8ck7Ze59sYF4kAQVdyBGya t5AZ9k0tl4R+pf5Fqjf9MIjf1SdmwK6eSev28+9BwmUkxCGGXjyztmC17H7F0cFoDTxZ 2n7IlvyUZy8ICiMh/thOnBCNjNVN8+DgM5xYa4VQkSkw6A/IJECSxL+mFlZGpxzZzZbF pYBeXw6Xc+gsmeSHD0jcoZrGebbfEuLfPzm1hXe8xigRImuKY0a1VGnwvpuJRkm2oCZ0 rdcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=Jt28NOB0acYwPiTCFrLD6+XyAxHd+kFcGqFtoPQzkHE=; b=stJaPyU58fDuQtNChnq84ZP2Gst6CVYLltVjghHfofZdvoArCiVxS2BiKqKUVsbVOk 04Xwc0xuW50n0f1upzaiMks/Ue9eggsbQsc45XEiAIJc6lRH/EJLW6v3MlJpZiM3Old2 VLD8cvKvORHBat8ZcBKDcLYnxZ9HFWy+PyL2uNhqlVscn/KjrSOlcu0kCSNCbjwVUhxd c2EzvILMNyuFN553/HdqJ4WquHlh9krxh06JWZ/Qo3d3oNFVOmfVgdenLntBv74xNSYQ xZe6tfzk/X8103Qjy/zuMmhp/8jcP2SDP6NF9XPj0Wk/9cUK1PRNf0leKNQ3qp4z9MPO a3NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8-v6si2503992pgh.675.2018.08.02.08.25.18; Thu, 02 Aug 2018 08:25:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732636AbeHBRPS (ORCPT + 99 others); Thu, 2 Aug 2018 13:15:18 -0400 Received: from exmail.andestech.com ([59.124.169.137]:10638 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732488AbeHBRPS (ORCPT ); Thu, 2 Aug 2018 13:15:18 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w72FMdPG088910; Thu, 2 Aug 2018 23:22:39 +0800 (GMT-8) (envelope-from zong@andestech.com) Received: from atcsqa06.andestech.com (10.0.1.85) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Thu, 2 Aug 2018 23:23:03 +0800 From: Zong Li To: , , , , , CC: Zong Li Subject: [PATCH] RISC-V: Add preprocessor directives for boot_sec_cpu Date: Thu, 2 Aug 2018 23:22:56 +0800 Message-ID: <1533223376-10130-1-git-send-email-zong@andestech.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w72FMdPG088910 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The boot_sec_cpu is for hutplug CPU on SMP system. It should be conditional compiling. Otherwise, it causes undefined reference to `smp_callin' when compiling uniprocessor kernel. Signed-off-by: Zong Li --- arch/riscv/kernel/head.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S index 11066d5..9b6f601 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -154,6 +154,7 @@ END(_start) .section .text .global boot_sec_cpu +#ifdef CONFIG_HOTPLUG_CPU boot_sec_cpu: /* clear all pending flags */ csrw sip, zero @@ -162,6 +163,7 @@ boot_sec_cpu: fence tail smp_callin +#endif __PAGE_ALIGNED_BSS /* Empty zero page */ -- 2.7.4