Re: [PATCH] Driver Core patches for 2.6.9

From: Greg KH
Date: Fri Oct 22 2004 - 02:43:53 EST


ChangeSet 1.1991, 2004/09/29 13:12:09-07:00, akpm@xxxxxxxx

[PATCH] module.h build fix

From: Ingo Molnar <mingo@xxxxxxx>

Forward-declare the structures before using them, rather than relying on
previous inclusions.

akpm: The breakage was introduced by bk-driver-core.patch

Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


include/linux/module.h | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)


diff -Nru a/include/linux/module.h b/include/linux/module.h
--- a/include/linux/module.h 2004-10-19 09:20:46 -07:00
+++ b/include/linux/module.h 2004-10-19 09:20:46 -07:00
@@ -540,11 +540,14 @@
{
}

-static inline void module_add_driver(struct module *, struct device_driver *)
+struct device_driver;
+struct module;
+
+static inline void module_add_driver(struct module *module, struct device_driver *driver)
{
}

-static inline void module_remove_driver(struct device_driver *)
+static inline void module_remove_driver(struct device_driver *driver)
{
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/