mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@debian.org>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org,
	Janitors <kernel-janitor-discuss@lists.sourceforge.net>
Subject: [PATCH] Add some missing includes to drivers/base
Date: Sun, 17 Nov 2002 04:17:31 +0000	[thread overview]
Message-ID: <20021117041731.G20070@parcelfarce.linux.theplanet.co.uk> (raw)


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.

                 reply	other threads:[~2002-11-17  4:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021117041731.G20070@parcelfarce.linux.theplanet.co.uk \
    --to=willy@debian.org \
    --cc=kernel-janitor-discuss@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®