acpi: Remove header dependency
authorPeter Zijlstra <peterz@infradead.org>
Sat, 21 Mar 2020 11:25:49 +0000 (12:25 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 21 Mar 2020 15:00:21 +0000 (16:00 +0100)
In order to avoid future header hell, remove the inclusion of
proc_fs.h from acpi_bus.h. All it needs is a forward declaration of a
struct.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lkml.kernel.org/r/20200321113241.246190285@linutronix.de
drivers/platform/x86/dell-smo8800.c
drivers/platform/x86/wmi.c
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
include/acpi/acpi_bus.h

index bfcc1d1b9b96fbee90af4471a37db8f8977d3a5c..b531fe8ab7e0c934e7cd474df42c1afa6ea7fc6d 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/interrupt.h>
 #include <linux/miscdevice.h>
 #include <linux/uaccess.h>
+#include <linux/fs.h>
 
 struct smo8800_device {
        u32 irq;                     /* acpi device irq */
index dc2e966a5c25425b4c4fb11e1cc7ce49bcfce6e3..941739db7199f1ed975f8a9ff9be50db104a9a33 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/uaccess.h>
 #include <linux/uuid.h>
 #include <linux/wmi.h>
+#include <linux/fs.h>
 #include <uapi/linux/wmi.h>
 
 ACPI_MODULE_NAME("wmi");
index 7130e90773ed6e4c4f91caec9421136b34e4bc1c..a478cff8162aad2c2e27285ba7b9216046e1e9fe 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/acpi.h>
 #include <linux/uaccess.h>
 #include <linux/miscdevice.h>
+#include <linux/fs.h>
 #include "acpi_thermal_rel.h"
 
 static acpi_handle acpi_thermal_rel_handle;
index 0c23fd0548d1a0edc5151a341ddd6d0732789b68..a92bea7184a8202eee17b3927499d69a4e4de922 100644 (file)
@@ -80,7 +80,7 @@ bool acpi_dev_present(const char *hid, const char *uid, s64 hrv);
 
 #ifdef CONFIG_ACPI
 
-#include <linux/proc_fs.h>
+struct proc_dir_entry;
 
 #define ACPI_BUS_FILE_ROOT     "acpi"
 extern struct proc_dir_entry *acpi_root_dir;