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:
parent
23b2907d08
commit
d2fae1abed
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user