From patchwork Wed Aug 23 05:59:58 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: 110712 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp3670237qge; Tue, 22 Aug 2017 23:00:45 -0700 (PDT) X-Received: by 10.200.35.124 with SMTP id b57mr2167575qtb.253.1503468045318; Tue, 22 Aug 2017 23:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503468045; cv=none; d=google.com; s=arc-20160816; b=qJaxLWjaeBWa6r1FgrZC5+JJyzqadsPMQ9P+C7ttfpm0ShUADjr0AAvWD1p98nx9H8 5Z+p0dFjdID83TaIErzGqbfKdnTp8PSjvwrNxTt0K8aBTfzt7yJr+emFEeScmtqd74ra idLRULQ90ZNKFr7h2OSYvxrnNcxdXVk1CPbzrWfNRgZo1CBcw6cdIICAxQdAyRbn+S3h UlWkM9SkmB1BlwzkGsM1tq/UpuhuF08ubWzhpgJuMhIwEJonkynDVKobHPTiX1cpfzNx 0xSqYA1lSYdOMPJL8yKyIxYGQRtYcx7jq45ceAVtaYXvYRx4FhahTgcaPZVkezeFTwsl W7FA== 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=1DbcmQa7dm5zVebuypMc+NEGRlwxqK5v8gpACIKRxb8=; b=fsMEu58W5WaBeSXciNc/w47DLwLgldM48k+LhnHbxDA4099hW74CvEFGjBNBRVznkM wfrPO/TFSZlC3xyJYONsKbLiMZR8pWHGVWhd7XXjv3pbQZDcm+np1AYhvrgT2BRoKu/Z gxfRx6igSpeTn8QN3BZIb5IljEOB+SZs01Sh19aPecZpdKpZRE6d5mD5iXdQngGknHdq PgHIE1DM4qtsO94QJpThp0PVznzfkt8BvByy6Tzp8eML3GINE1sqmWIJ8zaH8xaNDeEy DKL9DHm/diFHCDCqenpEl4/BqFP/Sq+r48GYQFPW9zS9qugmaud0EXjA3HfgW/TmkUs4 B2rw== 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 c32si778094qtd.218.2017.08.22.23.00.44; Tue, 22 Aug 2017 23:00:45 -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 5194E644C3; Wed, 23 Aug 2017 06:00:44 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, 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 DEFA26449C; Wed, 23 Aug 2017 06:00:26 +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 4DD3264494; Wed, 23 Aug 2017 06:00:23 +0000 (UTC) Received: from forward106o.mail.yandex.net (forward106o.mail.yandex.net [37.140.190.187]) by lists.linaro.org (Postfix) with ESMTPS id 6B07F6446B for ; Wed, 23 Aug 2017 06:00:19 +0000 (UTC) Received: from mxback4o.mail.yandex.net (mxback4o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1e]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 99906782C54 for ; Wed, 23 Aug 2017 09:00:17 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id lVIXQLqwox-0HAWZkrE; Wed, 23 Aug 2017 09:00:17 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id QeRkbDFm9Y-0HLmZQ1S; Wed, 23 Aug 2017 09:00:17 +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, 23 Aug 2017 08:59:58 +0300 Message-Id: <1503468007-12911-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503468007-12911-1-git-send-email-odpbot@yandex.ru> References: <1503468007-12911-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v1 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 --- /** 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 --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; \