[PATCH] Xen/acpi: remove redundant acpi/acpi_drivers.h include

From: Liu Jinsong
Date: Mon Mar 11 2013 - 18:42:16 EST


It's redundant since linux/acpi.h has include it when CONFIG_ACPI enabled,
and when CONFIG_ACPI disabled it will trigger compiling warning

In file included from drivers/xen/xen-stub.c:28:0:
include/acpi/acpi_drivers.h:103:31:
warning: 'struct acpi_device' declared inside parameter list [enabled by de=
fault]
include/acpi/acpi_drivers.h:103:31:
warning: its scope is only this definition or declaration, which is probabl=
y not what you want [enabled by default]
include/acpi/acpi_drivers.h:107:43:
warning: 'struct acpi_pci_root' declared inside parameter list [enabled by =
default]

Reported-by: Wu Fengguang <fengguang.wu@xxxxxxxxx>
Signed-off-by: Liu Jinsong <jinsong.liu@xxxxxxxxx>
---
drivers/xen/xen-stub.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/xen/xen-stub.c b/drivers/xen/xen-stub.c
index d85e411..bbef194 100644
--- a/drivers/xen/xen-stub.c
+++ b/drivers/xen/xen-stub.c
@@ -25,7 +25,6 @@
#include <linux/export.h>
#include <linux/types.h>
#include <linux/acpi.h>
-#include <acpi/acpi_drivers.h>
#include <xen/acpi.h>
=20
#ifdef CONFIG_ACPI
--=20
1.7.1

--_002_DE8DF0795D48FD4CA783C40EC8292335422404SHSMSX101ccrcorpi_
Content-Type: application/octet-stream;
name="0001-Xen-acpi-remove-redundant-acpi-acpi_drivers.h-includ.patch"
Content-Description: 0001-Xen-acpi-remove-redundant-acpi-acpi_drivers.h-includ.patch
Content-Disposition: attachment;
filename="0001-Xen-acpi-remove-redundant-acpi-acpi_drivers.h-includ.patch";
size=1329; creation-date="Mon, 11 Mar 2013 15:07:30 GMT";
modification-date="Mon, 11 Mar 2013 22:52:04 GMT"
Content-Transfer-Encoding: base64

RnJvbSAzZTAzOWVhZjg2NWE5ODk3MWQ3MzE2ZTI4YzRlZTVmM2NiYTFkNjM0IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tO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wuY29t
PgpTaWduZWQtb2ZmLWJ5OiBMaXUgSmluc29uZyA8amluc29uZy5saXVAaW50ZWwuY29tPgotLS0K
IGRyaXZlcnMveGVuL3hlbi1zdHViLmMgfCAgICAxIC0KIDEgZmlsZXMgY2hhbmdlZCwgMCBpbnNl
cnRpb25zKCspLCAxIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2RyaXZlcnMveGVuL3hlbi1z
dHViLmMgYi9kcml2ZXJzL3hlbi94ZW4tc3R1Yi5jCmluZGV4IGQ4NWU0MTEuLmJiZWYxOTQgMTAw
NjQ0Ci0tLSBhL2RyaXZlcnMveGVuL3hlbi1zdHViLmMKKysrIGIvZHJpdmVycy94ZW4veGVuLXN0
dWIuYwpAQCAtMjUsNyArMjUsNiBAQAogI2luY2x1ZGUgPGxpbnV4L2V4cG9ydC5oPgogI2luY2x1
ZGUgPGxpbnV4L3R5cGVzLmg+CiAjaW5jbHVkZSA8bGludXgvYWNwaS5oPgotI2luY2x1ZGUgPGFj
cGkvYWNwaV9kcml2ZXJzLmg+CiAjaW5jbHVkZSA8eGVuL2FjcGkuaD4KIAogI2lmZGVmIENPTkZJ
R19BQ1BJCi0tIAoxLjcuMQoK

--_002_DE8DF0795D48FD4CA783C40EC8292335422404SHSMSX101ccrcorpi_--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/