lkml.org 
[lkml]   [2002]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Missing include in drivers/base/bus.c and drivers/pci/pci-driver.c
drivers/base/bus.c and drivers/pci/pci-driver.c both have functions
which are marked with __init, but didn't include <linux/init.h> directly.
The following fixes that (and allows 2.5.19 to compile on PPC32).

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

===== drivers/base/bus.c 1.4 vs edited =====
--- 1.4/drivers/base/bus.c Tue May 28 11:35:01 2002
+++ edited/drivers/base/bus.c Wed May 29 13:30:05 2002
@@ -13,6 +13,7 @@
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/stat.h>
+#include <linux/init.h>
#include "base.h"

static LIST_HEAD(bus_driver_list);
===== drivers/pci/pci-driver.c 1.5 vs edited =====
--- 1.5/drivers/pci/pci-driver.c Tue May 28 18:02:33 2002
+++ edited/drivers/pci/pci-driver.c Wed May 29 13:32:06 2002
@@ -5,6 +5,7 @@

#include <linux/pci.h>
#include <linux/module.h>
+#include <linux/init.h>

/*
* Registration of PCI drivers and handling of hot-pluggable devices.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:26    [from the cache]
©2003-2011 Jasper Spaans