From patchwork Wed Sep 20 09:00:05 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: 113090 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp438703edb; Wed, 20 Sep 2017 02:01:40 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAovhZEFTVnR157BmN5p69j59hPUVlXpYoSiiRWhmGOKR/eNgWeu/nvgk8H0oT2TQtLWO2m X-Received: by 10.55.132.5 with SMTP id g5mr2118537qkd.228.1505898100791; Wed, 20 Sep 2017 02:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505898100; cv=none; d=google.com; s=arc-20160816; b=w5uNgWYBJ8P2lpGs3BMqFaNMYJtnOXxSkp4EJrLKAhzLAFIK8tc3AcrQThY/XbbH8Z JUuFhZoQ4K93fEcEjEFF066gy/x7J0bKHYDttYkHNcl13c96gG8z5ZtZtlrvKLiLcoiC 2Ho/pRvRO6EtMlq3L0MXWL9O+XUx1WzAlP29xdJ/u0D8wzLzqoQwtRTuEifcUybVqw/X 0KWZIjAlA6abeSBaNeyUqiDPry4DvDEuEJwXWCAJc+IOi8L2egv6fLgQQI9+T2p5QVcX Q+5GRUZ+6O2768zVFrpa/Q3T8PzKsEvn8wkNxItmq2NeimafQs5XuFb1TRGqWI4M6DTS EMVw== 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=GKot5x0coAORiqqOO8upAr7ROKnrXE7EyeFNeNH3CFU=; b=qRZgh+XgHT+Sezb3Hp7zDRmepOoc/9jxqK9FUxetDMSywNVQrwzwcUZLDBmir6l7CA 2QftGAJzGvoe5zQ2Atqcrb7dAXLVJzD7R/WFAb4Gsyuf5yLIZqaR1gSrOLSkq/BYCItS nyX517d0AR5T6QJUcqmbFXs4ARTStMe4J9gEC3oO86ZUQV8qiCQzstaSqSY+x2T5Q74o ChHTrNJqXj/vlgD8Fz+2A2MB+sjh2n6qhoNthoro5gfL2fHcAZg0GzTJ0cfUNTvLSfqF zcnHw0qzj0WxYXZAQeuWL6ABI72nb035v5oyVtSxmSFegJsPpOjvUGP9I6n0bJdeZ+qL M6OA== 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 g9si1474600qtf.204.2017.09.20.02.01.40; Wed, 20 Sep 2017 02:01:40 -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 722DA60BDB; Wed, 20 Sep 2017 09:01:40 +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.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_SPAM, 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 738A760C76; Wed, 20 Sep 2017 09:00:40 +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 A9E4B60C76; Wed, 20 Sep 2017 09:00:32 +0000 (UTC) Received: from forward102o.mail.yandex.net (forward102o.mail.yandex.net [37.140.190.182]) by lists.linaro.org (Postfix) with ESMTPS id 8124C60C0A for ; Wed, 20 Sep 2017 09:00:25 +0000 (UTC) Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward102o.mail.yandex.net (Yandex) with ESMTP id CD7FE5A03D5D for ; Wed, 20 Sep 2017 12:00:23 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 6OCBD4xjQC-0NVGxhDE; Wed, 20 Sep 2017 12:00:23 +0300 Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Dmm7iA3uiT-0MNqLD4d; Wed, 20 Sep 2017 12:00:22 +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, 20 Sep 2017 12:00:05 +0300 Message-Id: <1505898014-18011-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505898014-18011-1-git-send-email-odpbot@yandex.ru> References: <1505898014-18011-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v5 1/10] 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: Bogdan Pricope Reviewed-by: Josep Puigdemont 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: c6a520126eff39b7ebce8e790fb960259ce8f812 ** Merge commit sha: 8d7f8c3de9639acb3a2b8eb8c3830c044eb6a437 **/ 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; \