From patchwork Wed Sep 13 10:00:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 112421 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp766106edi; Wed, 13 Sep 2017 03:05:20 -0700 (PDT) X-Google-Smtp-Source: AOwi7QDHt+fOIPzC7g6cEjcwF5IgBLtRHwqcxmKvWEv58KSDGCrm73uUj6DZT5VqgxWZDq+uEqD7 X-Received: by 10.55.71.19 with SMTP id u19mr22291939qka.160.1505297120131; Wed, 13 Sep 2017 03:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505297120; cv=none; d=google.com; s=arc-20160816; b=YeJGGI5QdOV+d4/A3HOM++hTIEz2vXlIghbC4lgSnD6NWOfUgqWel/7BUncFmaZIH1 X/+iCNjjcG32uysLtx3ftzVm5xmcTlk0GLXbhIXwl4PWkW9fFgFwo+4zMSu62mfXEmZw VCknmUlHNiBoCBF1W+CNrUXih7GxFeWa/pb67vXGvEWntXqHQPS7afpsFbK/+1IHKGRJ /T96og+/DoAsk1FSDy6cLnwUy0szQWJqQuLEf0FFsiC7wQKzNhNgQeC6CJGq0gZ0Yxwb y4HPOlU7SbBSXKNsBbnlDDqlCpVJRMLJuOZh2RvsZyB9u+Ubd9qmrKRBwPm+T2yamP3X bNgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=zomaVHN7t6UMnOe7FgyBGirDKGT2GIPXWFYktTI8UNs=; b=IYN1x9gVYmABF6PZIJN1YqPG/rIe1p3xhIZHN284+jwzFg1m4SMlMTO1ZswI68SXF8 Ajxkqx8w5eZAh138IpTdAwXGQXfw3X3HoxWHkOCFTQlhvQPCAnYv7uIcioJNRNuRJsV6 urpKCRbCfJMRrAXi2DOUcqr36StQpTB4GUKQY90bn6gEuVpSfdXBUA0JCbqqVQxOGVl1 +cyCm2WYLjkX00LHu2K/PKJehSJWBdkB0jhSFOZLWqiGrAZgbTQPZ40oTR8bJGkNsy+m QXsS0MrRf2pCU6UzOJZII0GBWxyVHPLKdM/1q1u0xhm5H2tcm3fbgAgrz9TirCS5Dtt4 8nwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x51si14076561qtx.491.2017.09.13.03.05.19; Wed, 13 Sep 2017 03:05:20 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id B6DB662CF0; Wed, 13 Sep 2017 10:05:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B57D762C59; Wed, 13 Sep 2017 10:02:10 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 22CFE60810; Wed, 13 Sep 2017 10:02:06 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id F0F9360C6A for ; Wed, 13 Sep 2017 10:00:32 +0000 (UTC) Received: from mxback1o.mail.yandex.net (mxback1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1b]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 8A14E5A020F0 for ; Wed, 13 Sep 2017 13:00:31 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Mgb5yFsaSS-0VW8X157; Wed, 13 Sep 2017 13:00:31 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rI47ysBqG0-0Vuu6mr0; Wed, 13 Sep 2017 13:00:31 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 13 Sep 2017 13:00:16 +0300 Message-Id: <1505296826-16698-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505296826-16698-1-git-send-email-odpbot@yandex.ru> References: <1505296826-16698-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v2 1/11] framework: modular: extern SUBSYSTEM_FOREACH_TEMPLATE X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Yi He 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 Reviewed-by: Brian Brooks Reviewed-by: Honnappa Nagarahalli Reviewed-by: Kevin Wang Reviewed-by: Bill Fischofer --- /** 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: a1f50ad720e11a54b13c4786cad4687cb5c4ec2a ** Merge commit sha: ca3c52d51e6e80ba4bde91670d8b48a8a7ae1500 **/ frameworks/modular/odp_module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \