Do not wrap #include <linux/module.h> in #ifdef MODULE, module.h must
be included in anything that uses module symbols *or* exports symbols.
In the latter case it can be a module or built in.
Also never include modversions yourself, module.h does it when you set
the correct flags in the Makefile. Specifically the object must be
defined as OX_OBJ or MX_OBJ (X for export symbol) in the Makefile and
everything happens magically and correctly. A quick check of maestro.c
shows no EXPORT_SYMBOL so there is no need to define it as OX or MX,
just [OM]_OBJ will do.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/