summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-08-30 03:09:27 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-30 22:50:53 +0200
commit2f048b588ac972347a7acaf65d0c91680c4e1c27 (patch)
tree056f7f59b4d8eed1a7f3268de6fc157d70099643 /linux
parentfb5d2aff2401841c5f6631e1371c33a3177bcd95 (diff)
Move Linux module macros to their original header
* linux/pcmcia-cs/glue/wireless_glue.h (EXPORT_SYMBOL) (SET_MODULE_OWNER): Move to ... * linux/src/include/linux/module.h [!MODULE]: ... here.
Diffstat (limited to 'linux')
-rw-r--r--linux/pcmcia-cs/glue/wireless_glue.h9
-rw-r--r--linux/src/include/linux/module.h3
2 files changed, 3 insertions, 9 deletions
diff --git a/linux/pcmcia-cs/glue/wireless_glue.h b/linux/pcmcia-cs/glue/wireless_glue.h
index 05eef4b..dc354dd 100644
--- a/linux/pcmcia-cs/glue/wireless_glue.h
+++ b/linux/pcmcia-cs/glue/wireless_glue.h
@@ -49,15 +49,6 @@
/*
- * We compile everything directly into the GNU Mach kernel, there are no
- * modules.
- */
-#define SET_MODULE_OWNER(a) do{ } while(0)
-#define EXPORT_SYMBOL(a)
-
-
-
-/*
* We need some `schedule_task' replacement. This is defined in
* kernel/context.c in the Linux kernel.
*/
diff --git a/linux/src/include/linux/module.h b/linux/src/include/linux/module.h
index bc364f7..acc2540 100644
--- a/linux/src/include/linux/module.h
+++ b/linux/src/include/linux/module.h
@@ -101,9 +101,12 @@ int Using_Versions; /* gcc will handle this global (used as a flag) correctly */
#else
+#define EXPORT_SYMBOL(sym)
+
#define MOD_INC_USE_COUNT do { } while (0)
#define MOD_DEC_USE_COUNT do { } while (0)
#define MOD_IN_USE 1
+#define SET_MODULE_OWNER(dev) do{ } while(0)
#endif