acpi: Remove header dependency

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
This commit is contained in:
Peter Zijlstra 2020-03-21 12:25:49 +01:00
parent 9fe114ce03
commit df23e2be3d
4 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/fs.h>
struct smo8800_device { struct smo8800_device {
u32 irq; /* acpi device irq */ u32 irq; /* acpi device irq */

View File

@ -29,6 +29,7 @@
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/uuid.h> #include <linux/uuid.h>
#include <linux/wmi.h> #include <linux/wmi.h>
#include <linux/fs.h>
#include <uapi/linux/wmi.h> #include <uapi/linux/wmi.h>
ACPI_MODULE_NAME("wmi"); ACPI_MODULE_NAME("wmi");

View File

@ -19,6 +19,7 @@
#include <linux/acpi.h> #include <linux/acpi.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/fs.h>
#include "acpi_thermal_rel.h" #include "acpi_thermal_rel.h"
static acpi_handle acpi_thermal_rel_handle; static acpi_handle acpi_thermal_rel_handle;

View File

@ -80,7 +80,7 @@ bool acpi_dev_present(const char *hid, const char *uid, s64 hrv);
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
#include <linux/proc_fs.h> struct proc_dir_entry;
#define ACPI_BUS_FILE_ROOT "acpi" #define ACPI_BUS_FILE_ROOT "acpi"
extern struct proc_dir_entry *acpi_root_dir; extern struct proc_dir_entry *acpi_root_dir;