mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Add some missing includes to drivers/base
@ 2002-11-17  4:17 Matthew Wilcox
  0 siblings, 0 replies; only message in thread
From: Matthew Wilcox @ 2002-11-17  4:17 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, Janitors


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.

diff -urpNX dontdiff linux-2.5.47/drivers/base/bus.c linux-2.5.47-pci/drivers/base/bus.c
--- linux-2.5.47/drivers/base/bus.c	2002-11-05 09:16:03.000000000 -0500
+++ linux-2.5.47-pci/drivers/base/bus.c	2002-11-16 22:42:08.000000000 -0500
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/init.h>
+#include <linux/string.h>
 #include "base.h"
 
 static LIST_HEAD(bus_driver_list);
diff -urpNX dontdiff linux-2.5.47/drivers/base/class.c linux-2.5.47-pci/drivers/base/class.c
--- linux-2.5.47/drivers/base/class.c	2002-11-05 09:16:03.000000000 -0500
+++ linux-2.5.47-pci/drivers/base/class.c	2002-11-16 22:42:27.000000000 -0500
@@ -5,6 +5,7 @@
 #include <linux/device.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/string.h>
 #include "base.h"
 
 static LIST_HEAD(class_list);
diff -urpNX dontdiff linux-2.5.47/drivers/base/core.c linux-2.5.47-pci/drivers/base/core.c
--- linux-2.5.47/drivers/base/core.c	2002-11-05 09:16:03.000000000 -0500
+++ linux-2.5.47-pci/drivers/base/core.c	2002-11-16 22:39:42.000000000 -0500
@@ -8,10 +8,14 @@
 #define DEBUG 0
 
 #include <linux/device.h>
-#include <linux/module.h>
-#include <linux/slab.h>
 #include <linux/err.h>
 #include <linux/init.h>
+#include <linux/module.h>
+#include <linux/slab.h>
+#include <linux/string.h>
+
+#include <asm/semaphore.h>
+
 #include "base.h"
 
 LIST_HEAD(global_device_list);
diff -urpNX dontdiff linux-2.5.47/drivers/base/driver.c linux-2.5.47-pci/drivers/base/driver.c
--- linux-2.5.47/drivers/base/driver.c	2002-11-05 09:16:03.000000000 -0500
+++ linux-2.5.47-pci/drivers/base/driver.c	2002-11-16 22:42:58.000000000 -0500
@@ -8,6 +8,7 @@
 #include <linux/device.h>
 #include <linux/module.h>
 #include <linux/errno.h>
+#include <linux/string.h>
 #include "base.h"
 
 #define to_dev(node) container_of(node,struct device,driver_list)
diff -urpNX dontdiff linux-2.5.47/drivers/base/interface.c linux-2.5.47-pci/drivers/base/interface.c
--- linux-2.5.47/drivers/base/interface.c	2002-11-05 09:16:03.000000000 -0500
+++ linux-2.5.47-pci/drivers/base/interface.c	2002-11-16 22:41:00.000000000 -0500
@@ -8,6 +8,7 @@
 #include <linux/device.h>
 #include <linux/err.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)
 {
diff -urpNX dontdiff linux-2.5.47/drivers/base/intf.c linux-2.5.47-pci/drivers/base/intf.c
--- linux-2.5.47/drivers/base/intf.c	2002-11-05 09:16:03.000000000 -0500
+++ linux-2.5.47-pci/drivers/base/intf.c	2002-11-16 22:43:24.000000000 -0500
@@ -6,6 +6,7 @@
 
 #include <linux/device.h>
 #include <linux/module.h>
+#include <linux/string.h>
 #include "base.h"
 
 
diff -urpNX dontdiff linux-2.5.47/drivers/base/power.c linux-2.5.47-pci/drivers/base/power.c
--- linux-2.5.47/drivers/base/power.c	2002-10-20 10:16:01.000000000 -0400
+++ linux-2.5.47-pci/drivers/base/power.c	2002-11-16 22:41:43.000000000 -0500
@@ -12,6 +12,7 @@
 
 #include <linux/device.h>
 #include <linux/module.h>
+#include <asm/semaphore.h>
 #include "base.h"
 
 #define to_dev(node) container_of(node,struct device,g_list)
diff -urpNX dontdiff linux-2.5.47/drivers/base/sys.c linux-2.5.47-pci/drivers/base/sys.c
--- linux-2.5.47/drivers/base/sys.c	2002-11-05 09:16:03.000000000 -0500
+++ linux-2.5.47-pci/drivers/base/sys.c	2002-11-16 22:40:26.000000000 -0500
@@ -13,11 +13,12 @@
 #define DEBUG 1
 
 #include <linux/device.h>
+#include <linux/err.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/slab.h>
-#include <linux/err.h>
+#include <linux/string.h>
 
 /* The default system device parent. */
 static struct device system_bus = {
 
-- 
Revolutions do not require corporate support.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-17  4:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-17  4:17 [PATCH] Add some missing includes to drivers/base Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®