Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp479298imm; Wed, 25 Jul 2018 00:11:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcZkPeL47QcB5y4mkD0lk1OTPBdiQxEJFpBbOa1sfQRVPR6Dgj34/2rDHIBBq8BrX7T7bPO X-Received: by 2002:a65:6688:: with SMTP id b8-v6mr19614875pgw.24.1532502680768; Wed, 25 Jul 2018 00:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532502680; cv=none; d=google.com; s=arc-20160816; b=GXD2iHWi0XFoDBXXcWmVNuk20SaCfiYLOfT+URhLzYh7/6lpn+KyezwuHQxCr9cyHT tMDBa4+tFayMMqOEfWVztIw3KiugQPZIgsFoXujacP/jYBAt4v4sc2rPu3c7zHIbg+KB pGvMBD24RysyMrTM7b3XVm1vmIdksdcITNkrW/4SjWgv5lbnw2azzuyVWncfOP/S6OcX CtB2b7R975IFEQzaBNXSi4g3rT2guTV+PtQLGTG0JzbvnOHk8BPrBK1UJtdizswqgoqW 5aGd1mc65vbiSpiOXS/kZrvRFW0wwGtHPKTxPTDjitIEHK4/eYey4IHYqefJcHK3iBl+ R44A== 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:arc-authentication-results; bh=Awk6Ca0U69SJipW1ghUQxtD+Kg0nIS74oZUYycHKVw4=; b=VZ+GP4JPWDIkWZcE8FiQ9KMheQ9E4Su5+RaJCN8+Q1qhCkRTVi5XfR+SsJI53Ilv59 pgLZPntH+YrrcfTTkXnHaQcA3Ue5g+lbVUnh7tJwoi7IFEI4Rb8lpeTOARomGvAu+sCd EaM2WzpP3ZWYrSaujp7tjwWlRQp0XQHUfvo/m7N9G5h/mS4jYF9yDimdCoXkVTv0zsq2 kzoIa6wGuD5IfJpnHeZaLw/PEBunx013hEguUaPX4CT1ZWV8d7vaUKqP07+81p3N9ouV 2aQpvhPrcX99KsSyBapRSWya9x4YWLMWMpHkdknTfNfR9KPa2V3eTks00wnjO6gd2gai /3aA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f40-v6si12436456plb.504.2018.07.25.00.11.05; Wed, 25 Jul 2018 00:11:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728597AbeGYIUa (ORCPT + 99 others); Wed, 25 Jul 2018 04:20:30 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:42608 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727460AbeGYIUa (ORCPT ); Wed, 25 Jul 2018 04:20:30 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A36F64075764; Wed, 25 Jul 2018 07:10:10 +0000 (UTC) Received: from localhost (ovpn-8-27.pek2.redhat.com [10.72.8.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CB528111DCE6; Wed, 25 Jul 2018 07:10:09 +0000 (UTC) Date: Wed, 25 Jul 2018 15:10:06 +0800 From: Baoquan He To: Chao Fan Cc: linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, keescook@chromium.org, yasu.isimatu@gmail.com, indou.takao@jp.fujitsu.com, caoj.fnst@cn.fujitsu.com, douly.fnst@cn.fujitsu.com Subject: Re: [PATCH v4 1/4] x86/boot: Add acpitb.h to help parse acpi tables Message-ID: <20180725071006.GJ6480@MiWiFi-R3L-srv> References: <20180723092908.32656-1-fanc.fnst@cn.fujitsu.com> <20180723092908.32656-2-fanc.fnst@cn.fujitsu.com> <20180724060257.GE6480@MiWiFi-R3L-srv> <20180724083657.GB818@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180724083657.GB818@localhost.localdomain> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 25 Jul 2018 07:10:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 25 Jul 2018 07:10:10 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'bhe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/24/18 at 04:36pm, Chao Fan wrote: > On Tue, Jul 24, 2018 at 02:02:57PM +0800, Baoquan He wrote: > >Hi chao, > > > >On 07/23/18 at 05:29pm, Chao Fan wrote: > >> In order to parse ACPI tables, reuse the head file linux/acpi.h, > >> so that the files in 'compressed' directory can read ACPI table > >> by including this head file. > >> > >> Signed-off-by: Chao Fan > >> --- > >> arch/x86/boot/compressed/acpitb.h | 7 +++++++ > >> 1 file changed, 7 insertions(+) > >> create mode 100644 arch/x86/boot/compressed/acpitb.h > >> > >> diff --git a/arch/x86/boot/compressed/acpitb.h b/arch/x86/boot/compressed/acpitb.h > >> new file mode 100644 > >> index 000000000000..f8ab6e5b3e06 > >> --- /dev/null > >> +++ b/arch/x86/boot/compressed/acpitb.h > >> @@ -0,0 +1,7 @@ > >> +/* SPDX-License-Identifier: GPL-2.0 */ > >> +#include > >> + > >> +#define ACPI_MAX_TABLES 128 > >> + > >> +/* Function to get ACPI SRAT table pointer. */ > >> +struct acpi_table_header *get_acpi_srat_table(void); > > > >Since acpitb.h includes so few lines of code, not sure if we can move > >them into .c files directly. > > > >By the way, you might need to rebase this patchset on top of > >tip/x86/boot. > > Sorry Baoquan, > > I tried to add this patcheset to the tip/x86/boot branch using both 'patch' > command and 'git am'. I found no problem and no offset. > So is there some problems when you use them? That's great, just to remind.