Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1441286imm; Wed, 20 Jun 2018 18:49:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIIQXeNZtNEXB+dsWc+rXgVu6FYqf/kG7jEhgFuYoVT3xYhb4cTn1DXd1/seJIJdPaf/Hu3 X-Received: by 2002:a17:902:530e:: with SMTP id b14-v6mr26674184pli.316.1529545791464; Wed, 20 Jun 2018 18:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529545791; cv=none; d=google.com; s=arc-20160816; b=PW2gTg+9aZ14Vp9YSwvGYPtilY6FyjfRRqXWNuIKuEmWVBNC2wMSKeYbhrK1+oBCml oLsOKahug5alDIw5i+UuvG1ntdMahYWgumqfD3LyCL2+C0Y6Dtc5UFv/cLP1yS0psw1t ANEwJls2ewZKwGzTQdm8tDIrZ8Y8EauOl2hcB20RNl9SkupyiUgoILpVYa4hx2l/IiO0 M39sgf6QabLf4Yi5eZ79rk3TtRRt/q0DxjWwJiLAAXG6KVtpT8Tk0+bgmlNFVkix5c0P 6va4SrkKVTqPEAGx4iXFy81xHGZ7iadGdc9zjZzCBWWJ0X/steR8ZlFy+haMlD5ojBgr ZxUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=3f0F6A10jbJe7W4q2X3GryrFc+qx99x6apcLpeIJwdI=; b=fmjbZD0K83XH1L35vKzgcjV+J7NC1mH0oAhyAl+WszY9oWgAZ/BYl1H8sUe7NmMcw7 NgmdBsEZBgoOTXXSg4kdNwztaThbeHuej/D2g0+W4zlR7rgOFIBrQEj3MM38gXNT76yK fg+CTtcH6v5ZXGbkhTJpUvtFITaRIMcaZRzq/aV/vU9C3WiCGXxomneLR44eBb31gkkM 9AdR22gUoeIO3hFL8DjKUJOJYEM+GozUL2x663Ops3YNpLtPN5ToNQJ7nXs1rJ3rNVmn 7Kkbi0w8QP8UHFDuhSKtVtmYt8rPVCVlT3gsQh+R5rx4lXnBX8wMva4HdyBUoTfy8Fub ybKA== 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 y23-v6si3683628pli.354.2018.06.20.18.49.37; Wed, 20 Jun 2018 18:49:51 -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 S1754542AbeFUBs3 (ORCPT + 99 others); Wed, 20 Jun 2018 21:48:29 -0400 Received: from exmail.andestech.com ([59.124.169.137]:56675 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754336AbeFUBsI (ORCPT ); Wed, 20 Jun 2018 21:48:08 -0400 Received: from ATCSQR.andestech.com (localhost [127.0.0.2] (may be forged)) by ATCSQR.andestech.com with ESMTP id w5L1futG038390 for ; Thu, 21 Jun 2018 09:41:56 +0800 (GMT-8) (envelope-from zong@andestech.com) Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w5L1flkD038369; Thu, 21 Jun 2018 09:41:47 +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, 21 Jun 2018 09:42:07 +0800 From: Zong Li To: , , , CC: Zong Li , Subject: [PATCH] RISC-V: Add conditional marco for boot_sec_cpu Date: Thu, 21 Jun 2018 09:41:42 +0800 Message-ID: <1529545326-29272-1-git-send-email-zong@andestech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w5L1flkD038369 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix link error when disable support SMP. It causes the undefined reference to `smp_callin'. 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 3b6293f10e3e..396ec7b349ce 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -152,6 +152,7 @@ END(_start) .section .text .global boot_sec_cpu +#ifdef CONFIG_HOTPLUG_CPU boot_sec_cpu: /* clear all pending flags */ csrw sip, zero @@ -160,6 +161,7 @@ boot_sec_cpu: fence tail smp_callin +#endif __PAGE_ALIGNED_BSS /* Empty zero page */ -- 2.16.1