]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Staging: workaround build system bug
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 13 Oct 2008 21:32:52 +0000 (14:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 13 Oct 2008 21:32:52 +0000 (14:32 -0700)
This is needed as CONFIG_STAGING is set to y, yet there is no code in
drivers/staging/ to build, so the build-in.o doesn't get created
properly.  Create a "dummy" module in drivers/staging called staging.c
to work around this bug.

Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/Makefile
drivers/staging/staging.c [new file with mode: 0644]

index 93decb89b1d85b3e4169446f9b0210753491b6bb..7c466e94fd9359f04df7841258adf216878c42d6 100644 (file)
@@ -1,5 +1,8 @@
 # Makefile for staging directory
 
+# fix for build system bug...
+obj-$(CONFIG_STAGING)          += staging.o
+
 obj-$(CONFIG_ET131X)           += et131x/
 obj-$(CONFIG_SLICOSS)          += slicoss/
 obj-$(CONFIG_SXG)              += sxg/
diff --git a/drivers/staging/staging.c b/drivers/staging/staging.c
new file mode 100644 (file)
index 0000000..233e589
--- /dev/null
@@ -0,0 +1,19 @@
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/module.h>
+
+static int __init staging_init(void)
+{
+       return 0;
+}
+
+static void __exit staging_exit(void)
+{
+}
+
+module_init(staging_init);
+module_exit(staging_exit);
+
+MODULE_AUTHOR("Greg Kroah-Hartman");
+MODULE_DESCRIPTION("Staging Core");
+MODULE_LICENSE("GPL");