From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753874Ab3LRJOs (ORCPT ); Wed, 18 Dec 2013 04:14:48 -0500 Received: from mga01.intel.com ([192.55.52.88]:5996 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750961Ab3LRJHQ (ORCPT ); Wed, 18 Dec 2013 04:07:16 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,506,1384329600"; d="scan'208";a="451879936" From: Lv Zheng To: "Rafael J. Wysocki" , Len Brown Cc: Lv Zheng , Lv Zheng , , linux-acpi@vger.kernel.org Subject: [RFC PATCH 13/15] ACPICA: Linux: Remove inclusion from ACPICA headers. Date: Wed, 18 Dec 2013 17:07:08 +0800 Message-Id: X-Mailer: git-send-email 1.7.10 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes inclusion from as it no longer contains useful prototypes for ACPICA. This patch also introduces a top level header to be included by other kernel source code. Note that this patch changes the logic so that ACPICA header files inclusions are no longer dependent on CONFIG_ACPI=y environment. Signed-off-by: Lv Zheng --- include/acpi/platform/aclinux.h | 1 - include/linux/acpi.h | 13 ++++--------- include/linux/acpica.h | 22 ++++++++++++++++++++++ 3 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 include/linux/acpica.h diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index b754bfa..8bdb773 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -83,7 +83,6 @@ #ifdef CONFIG_ARCH_SUPPORTS_ACPICA #include #endif -#include #ifdef CONFIG_ACPI diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 72c88f4..a197f64 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -28,22 +28,17 @@ #include #include /* for struct resource */ #include - -#ifdef CONFIG_ACPI - -#ifndef _LINUX -#define _LINUX -#endif - #include #include +#include + +#ifdef CONFIG_ACPI -#include +#include /* Definitions in it can be used by headers */ #include #include #include #include -#include static inline acpi_handle acpi_device_handle(struct acpi_device *adev) { diff --git a/include/linux/acpica.h b/include/linux/acpica.h new file mode 100644 index 0000000..a67d3cf --- /dev/null +++ b/include/linux/acpica.h @@ -0,0 +1,22 @@ +#ifndef _LINUX_ACPICA_H +#define _LINUX_ACPICA_H + +/* + * Top level ACPICA header for Linux kernel + * + * Copyright (C) 2013, Intel Corporation + * Author: Lv Zheng + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/* Support inclusions for broken compilers */ +#ifndef _LINUX +#define _LINUX +#endif + +#include + +#endif /* _LINUX_ACPICA_H */ -- 1.7.10.4