Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6615196imm; Mon, 23 Jul 2018 23:17:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd5/XtTQIHy9eBJRkUbEFBJ+yWg4JgMiiLG9qhwg+JLAwyWscNy69ehZI60OEFhlEN4y5qK X-Received: by 2002:a17:902:7e43:: with SMTP id a3-v6mr15653411pln.151.1532413077216; Mon, 23 Jul 2018 23:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532413077; cv=none; d=google.com; s=arc-20160816; b=bVTgKk2EByFHL9yngV/aAVKR4aBGyqdY58xLRO3i7/2nm0oIfbzGkyV92MxJlYigEO ycaVAfZrGMZwnxLTJIfwobsN3ZcYcT01yAxafBhsB8TVvsSLIxROBBqfKYTnsdbU/wlx KKPNPdafq0D5c9GGqMrS7TQkEa6pBk8F9ABECNRqBiCMyNH0MzvVkicPeRd2NOOG5rEW ZsI+Wk3XGTLLq3k4QAnvT7DOk5ztkv+pMiojXBmLK/7O+ORQELIE6m0fLWBm8ECKjNGo K2PraTAfg+V5jztCs7LTg2FDZCB1Gj2cprebcLnBu+FQrctDJA64PFI18i9V7q6bhT3K sP1Q== 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=YkHb0nOGNiSzLjwg9ohP5NocZ1i4B4RwYWLRV9uFhWQ=; b=jDi7nzDKjMQ1IvxaezC7//50SQUbBwTZNS20xupFskQ+Eeeq4eby6O/hNb6ueSGvFe Dkk4C+afrS+hLUPvZKn/8vtdQgv4Y4VyePuhM82t2bqmTj/5BgyNKGYTLvhCtpyT0ww2 b51UK9dXuxOJpDOwEOYm3UbyZSStzYpJRLj/+PvymzAupJQLNymUzZudssOac9FQzJKR nHscMEbMqseh5UpZ+hPbWLOkkU+pUtgrYIpLzbWdYkvWj4JKbU3LQuf4IIwUvuCwXIKb 6cYol5fcex91akqGZK7u7XChyHf/SJG5k0Aoyd6Y2LV79d/vfO8dxj3YiCKYoSbP+zil qyFw== 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 l30-v6si4372347plg.12.2018.07.23.23.17.42; Mon, 23 Jul 2018 23:17:57 -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 S2388346AbeGXHUP (ORCPT + 99 others); Tue, 24 Jul 2018 03:20:15 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:29035 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388161AbeGXHUP (ORCPT ); Tue, 24 Jul 2018 03:20:15 -0400 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="42583779" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 24 Jul 2018 14:15:18 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id A38A04B66A30; Tue, 24 Jul 2018 14:15:18 +0800 (CST) Received: from localhost.localdomain (10.167.225.56) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.399.0; Tue, 24 Jul 2018 14:15:16 +0800 Date: Tue, 24 Jul 2018 14:13:18 +0800 From: Chao Fan To: Baoquan He CC: , , , , , , , , , Subject: Re: [PATCH v4 1/4] x86/boot: Add acpitb.h to help parse acpi tables Message-ID: <20180724061317.GA818@localhost.localdomain> References: <20180723092908.32656-1-fanc.fnst@cn.fujitsu.com> <20180723092908.32656-2-fanc.fnst@cn.fujitsu.com> <20180724060257.GE6480@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180724060257.GE6480@MiWiFi-R3L-srv> User-Agent: Mutt/1.10.0 (2018-05-17) X-Originating-IP: [10.167.225.56] X-yoursite-MailScanner-ID: A38A04B66A30.AB1D9 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 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. Both acpitb.c and kaslr.c in my PATCH will use this head file. And also eboot.h is also simple, so I put this code alone. > >By the way, you might need to rebase this patchset on top of >tip/x86/boot. OK, now it is based on master of tip. Will do it in next version. Thanks, Chao Fan > >Thanks >Baoquan > >