diff mbox series

[CLOUD-DEV,v5,1/10] framework: modular: extern SUBSYSTEM_FOREACH_TEMPLATE

Message ID 1505898014-18011-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [CLOUD-DEV,v5,1/10] framework: modular: extern SUBSYSTEM_FOREACH_TEMPLATE | expand

Commit Message

Github ODP bot Sept. 20, 2017, 9 a.m. UTC
From: Yi He <yi.he@linaro.org>


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>

---
/** Email created from pull request 139 (heyi-linaro:modular-pktio-ops)
 ** https://github.com/Linaro/odp/pull/139
 ** Patch: https://github.com/Linaro/odp/pull/139.patch
 ** Base sha: c6a520126eff39b7ebce8e790fb960259ce8f812
 ** Merge commit sha: 8d7f8c3de9639acb3a2b8eb8c3830c044eb6a437
 **/
 frameworks/modular/odp_module.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;			\