From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753656AbdLHLOu (ORCPT ); Fri, 8 Dec 2017 06:14:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:52740 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753501AbdLHLOs (ORCPT ); Fri, 8 Dec 2017 06:14:48 -0500 Subject: Re: [PATCH v2 2/3] x86/acpi: take rsdp address for boot params if available To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org, boris.ostrovsky@oracle.com, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, corbet@lwn.net, rjw@rjwysocki.net, lenb@kernel.org, linux-acpi@vger.kernel.org References: <20171207122821.30158-1-jgross@suse.com> <20171207122821.30158-3-jgross@suse.com> <20171208070505.25j6dtun555v6ofo@gmail.com> From: Juergen Gross Message-ID: <48be541f-bc28-b7e1-3b5b-6ac1cbe62150@suse.com> Date: Fri, 8 Dec 2017 12:14:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171208070505.25j6dtun555v6ofo@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/12/17 08:05, Ingo Molnar wrote: > > * Juergen Gross wrote: ... > acpi_physical_address acpi_arch_get_root_pointer(void) > { > return boot_params.hdr.acpi_rsdp_addr; > } > > 4) > > Add this to arch/x86/include/asm/acpi.h: > > extern acpi_physical_address acpi_arch_get_root_pointer(void); Uuh, this leads to problems for files including directly: acpi_physical_address won't be defined, and including from arch/x86/include/asm/acpi.h will lead to: #error unknown ACPI_MACHINE_WIDTH This can only be avoided by including from which seems to be the wrong layering. So I could: a) modify the sources including to use instead b) don't use acpi_physical_address but either u64 or unsigned long. c) ? What would be your preference? Juergen