1 From: Greg Kroah-Hartman <gregkh@suse.de>
2 Subject: Staging: workaround build system bug
5 This is needed as CONFIG_STAGING is set to y, yet there is no code in
6 drivers/staging/ to build, so the build-in.o doesn't get created
7 properly. Create a "dummy" module in drivers/staging called staging.c
8 to work around this bug.
10 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 drivers/staging/Makefile | 3 +++
14 drivers/staging/staging.c | 19 +++++++++++++++++++
15 2 files changed, 22 insertions(+)
17 --- a/drivers/staging/Makefile
18 +++ b/drivers/staging/Makefile
20 # Makefile for staging directory
22 +# fix for build system bug...
23 +obj-$(CONFIG_STAGING) += staging.o
25 obj-$(CONFIG_ET131X) += et131x/
26 obj-$(CONFIG_SLICOSS) += slicoss/
27 obj-$(CONFIG_SXG) += sxg/
29 +++ b/drivers/staging/staging.c
31 +#include <linux/kernel.h>
32 +#include <linux/init.h>
33 +#include <linux/module.h>
35 +static int __init staging_init(void)
40 +static void __exit staging_exit(void)
44 +module_init(staging_init);
45 +module_exit(staging_exit);
47 +MODULE_AUTHOR("Greg Kroah-Hartman");
48 +MODULE_DESCRIPTION("Staging Core");
49 +MODULE_LICENSE("GPL");