diff options
author | Yi He <yi.he@linaro.org> | 2017-08-11 14:29:28 +0800 |
---|---|---|
committer | Yi He <yi.he@linaro.org> | 2017-09-20 14:35:31 +0800 |
commit | ddf6e4d9c8fd9bc24c86770470c808766a30077b (patch) | |
tree | 53a3a26f3a3453c5082fc37644ad1f5fdb196100 | |
parent | c6a520126eff39b7ebce8e790fb960259ce8f812 (diff) |
framework: modular: extern SUBSYSTEM_FOREACH_TEMPLATE
Static SUBSYSTEM_FOREACH_TEMPLATE constraints the
functions to be instantiated in the source files
which invoke them, this causes code scatter shoots.
Signed-off-by: Yi He <yi.he@linaro.org>
Reviewed-by: Brian Brooks <brian.brooks@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Kevin Wang <kevin.wang@arm.com>
Reviewed-by: Bogdan Pricope <bogdan.pricope@linaro.org>
Reviewed-by: Josep Puigdemont <josep.puigdemont@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
-rw-r--r-- | frameworks/modular/odp_module.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frameworks/modular/odp_module.h b/frameworks/modular/odp_module.h index 1a9e178c3..59f67c8d4 100644 --- a/frameworks/modular/odp_module.h +++ b/frameworks/modular/odp_module.h @@ -206,7 +206,7 @@ struct odp_module_base { * subsystem and invoke init_global method for each. */ #define ODP_SUBSYSTEM_FOREACH_TEMPLATE(subs, method, print) \ -static int odp_ ## subs ##_## method(bool continue_on_errors) \ +int odp_ ## subs ##_## method(bool continue_on_errors) \ { \ int result = 0; \ ODP_MODULE_CLASS(subs) * mod = NULL; \ |