Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3240203imu; Thu, 29 Nov 2018 18:45:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/UQOLv+wRLwhtsom1SAcq54acIwtBWQdCjvJG2d2HpBeBDU4aovouIbV6ARvcuUbsi9yAoZ X-Received: by 2002:a65:6491:: with SMTP id e17mr3338807pgv.418.1543545900641; Thu, 29 Nov 2018 18:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543545900; cv=none; d=google.com; s=arc-20160816; b=VuvRj5tiAbE/iv6BrJszlH7p51jGOEJ2g287P2EPf+p6olkLgHbXspncjrjIDgjixk yKpWN9/rBAFaIQzR1Itd125Q/t9P3XpbSt7Tp190/RZbmyJ5Y0trFQwlD7jLbRGLNISu ycGyQiU4aFCD4GLcwRE+Tp/WBArF9r4ALAE4SCk3ObK15LgYBs8HP93D0iFVnA2oqCY8 PduxgFQWu4D9uSUKAdJE02zFnF36nvov7BCCVMdcfwXsfPDD0lLdQvW0dJw6v+gSByYk 1KzY48S1qKBS1fURtC8DeLlY6/KwCE7/9hbTmZAuawf6DG/kyTOzhz2e9zA4mxfpTGoV MaBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sI3SRJB9BSPaDV7D1LXS/csSs6HRpIc/WNgsYFd5qls=; b=AudRtCIY4SQtsjDgG0OeHN6b5sphbN7IfM7IuhHuo0NowXOQHsmf28k8wTk0mZXXS2 D3hgcFEMoJ6Ypf+W0CgFgUeAkMHQZF7FuQDQvcLrT64NvNunDXJJgO8xqms+ZcaN8yCu YjRCa23OH7UwqHq+TbdhwOqn24s4d4J7HpyNeXY8ZbKmEchT1WvDW4xNY/R+cw4iOtKA GBH8xg3lqt8UUmLgx+Kds2lBQXEHJQ8LjKyODxtaDChlSzVvyyuh76AqbyfD+kqIujOq Pwfm/8yrL3Lr0oImKdqCS0ICKAjjDz8aZDNXtQSGERzuHLLU959J9gAFWbF9267m1svc 3Xwg== 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 z13si3645502pgh.31.2018.11.29.18.44.45; Thu, 29 Nov 2018 18:45:00 -0800 (PST) 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 S1726640AbeK3Nvt (ORCPT + 99 others); Fri, 30 Nov 2018 08:51:49 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:7477 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726161AbeK3Nvt (ORCPT ); Fri, 30 Nov 2018 08:51:49 -0500 X-IronPort-AV: E=Sophos;i="5.56,297,1539619200"; d="scan'208";a="48853424" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 30 Nov 2018 10:44:04 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 63B424B734A9; Fri, 30 Nov 2018 10:44:01 +0800 (CST) Received: from localhost.localdomain (10.167.225.56) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 30 Nov 2018 10:44:02 +0800 Date: Fri, 30 Nov 2018 10:43:47 +0800 From: Chao Fan To: Masayoshi Mizuma CC: , , , , , , , , , Subject: Re: [PATCH v12 1/5] x86/boot: Add get_acpi_rsdp() to parse RSDP in cmdline from KEXEC Message-ID: <20181130024346.GB30941@localhost.localdomain> References: <20181129081631.11139-1-fanc.fnst@cn.fujitsu.com> <20181129081631.11139-2-fanc.fnst@cn.fujitsu.com> <20181129211003.saxfvyboxpsn5mdr@gabell> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181129211003.saxfvyboxpsn5mdr@gabell> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [10.167.225.56] X-yoursite-MailScanner-ID: 63B424B734A9.AABE7 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: fanc.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> + >> +/* acpitb.c */ >> +#define BOOT_STRING >> +extern int kstrtoull(const char *s, unsigned int base, unsigned long long *res); >> diff --git a/lib/kstrtox.c b/lib/kstrtox.c >> index 1006bf70bf74..a0ac1b2257b8 100644 >> --- a/lib/kstrtox.c >> +++ b/lib/kstrtox.c >> @@ -126,6 +126,9 @@ int kstrtoull(const char *s, unsigned int base, unsigned long long *res) >> } >> EXPORT_SYMBOL(kstrtoull); >> >> +/* Make compressed period code be able to use kstrtoull(). */ >> +#ifndef BOOT_STRING > >I got the following build error. > >]$ make arch/x86/boot/compressed/misc.o > CALL scripts/checksyscalls.sh > DESCEND objtool > CC arch/x86/boot/compressed/misc.o >ld: -r and -pie may not be used together >make[1]: *** [scripts/Makefile.build:294: arch/x86/boot/compressed/misc.o] Error 1 >make: *** [Makefile:1715: arch/x86/boot/compressed/misc.o] Error 2 >]$ Hi Masa, So many thanks for your test. Could you give me more details about this error? More error message. Just on the first commit or the whole PATCHSET? Cause I didn't get error both on this commit and on the whole PATCHSET. Thanks, Chao Fan > >I think this error gets fixed by changing the BOOT_STRING ifndef >order before the EXPORT_SYMBOL, like this: > >#ifndef BOOT_STRING >EXPORT_SYMBOL(kstrtoull); > >I'm not sure this change is a good way... > >Thanks, >Masa > >