Commit f4acf4dd authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] Add some missing includes to drivers/base

drivers/base relies on device.h pulling in sched.h pulling in the rest
of the world.  Add some explicit dependencies in preparation for removing
sched.h from device.h.
parent 73e01486
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/string.h>
#include "base.h" #include "base.h"
static LIST_HEAD(bus_driver_list); static LIST_HEAD(bus_driver_list);
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/string.h>
#include "base.h" #include "base.h"
static LIST_HEAD(class_list); static LIST_HEAD(class_list);
......
...@@ -8,10 +8,14 @@ ...@@ -8,10 +8,14 @@
#define DEBUG 0 #define DEBUG 0
#include <linux/device.h> #include <linux/device.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <asm/semaphore.h>
#include "base.h" #include "base.h"
LIST_HEAD(global_device_list); LIST_HEAD(global_device_list);
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/errno.h> #include <linux/errno.h>
#include <linux/string.h>
#include "base.h" #include "base.h"
#define to_dev(node) container_of(node,struct device,driver_list) #define to_dev(node) container_of(node,struct device,driver_list)
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/err.h> #include <linux/err.h>
#include <linux/stat.h> #include <linux/stat.h>
#include <linux/string.h>
static ssize_t device_read_name(struct device * dev, char * buf, size_t count, loff_t off) static ssize_t device_read_name(struct device * dev, char * buf, size_t count, loff_t off)
{ {
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/string.h>
#include "base.h" #include "base.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/device.h> #include <linux/device.h>
#include <linux/module.h> #include <linux/module.h>
#include <asm/semaphore.h>
#include "base.h" #include "base.h"
#define to_dev(node) container_of(node,struct device,g_list) #define to_dev(node) container_of(node,struct device,g_list)
......
...@@ -13,11 +13,12 @@ ...@@ -13,11 +13,12 @@
#define DEBUG 1 #define DEBUG 1
#include <linux/device.h> #include <linux/device.h>
#include <linux/err.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/err.h> #include <linux/string.h>
/* The default system device parent. */ /* The default system device parent. */
static struct device system_bus = { static struct device system_bus = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment