diff mbox series

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

Message ID 1503468007-12911-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [CLOUD-DEV,v1,1/10] framework: modular: extern SUBSYSTEM_FOREACH_TEMPLATE | expand

Commit Message

Github ODP bot Aug. 23, 2017, 5:59 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>

---
/** 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: 3cdc8a07993b93b145dc3b4a373b5ebc33bae882
 ** Merge commit sha: a87822f157888ef3269a7b8b3f38c63ecc111669
 **/
 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 1a9e178c..59f67c8d 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;			\