1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-976: fixing function name in the macro although don't have any effect since the linker directives are local.

This commit is contained in:
Mathieu Rondonneau 2013-06-05 19:15:47 -07:00
parent 23b2907d08
commit d2fae1abed

View File

@ -86,7 +86,7 @@ extern void StartModules();
__attribute__((__section__(".initcall" level ".init"))) = fn
#define __define_module_initcall(level, ifn, sfn) \
static initmodule_t __initcall_##fn __attribute__((__used__)) \
static initmodule_t __initcall_##ifn __attribute__((__used__)) \
__attribute__((__section__(".initcall" level ".init"))) = { .fn_minit = ifn, .fn_tinit = sfn };
#define MODULE_INITCALL(ifn, sfn); __define_module_initcall("module", ifn, sfn)