From patchwork Tue Sep 19 03:00:15 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: 112963 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4396579qgf; Mon, 18 Sep 2017 20:00:52 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCGCGT0yCWr5LURikCIIjGKwXhBVckQ1qXT8/jHn7Ms0mC8c5OKiTSzj22LC7MjC8IrK2k6 X-Received: by 10.200.16.6 with SMTP id z6mr14462005qti.267.1505790052201; Mon, 18 Sep 2017 20:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505790052; cv=none; d=google.com; s=arc-20160816; b=EPUTKn70A7HdLBuws4rl8y4Nqs4OUsIAdDHa+8b8fWKIg92WDxzQduQfuq5W20Akj6 f/GQZbiTOD1Lez28hQhImXtqd19QnQoKN5v9BfaCbmAE1G2vmS8DfN5zetebxNYzHaan SDHakIqWG0ntUyFANFQxM5Vl5HLF2zFGRpHw6HIFtcuJ2+GOIUi7hAEQIaPqg/NNhUXd /0/UpNLq7UfIkmE+2KAeZ1njlSXXb2iknf+g7wRZpFTOGvD+1+qoOdhRjgwbDA7Ior9X 8aWYNSDj1EGjVdM0uh9TBo0NjDOXsJ1GM/bgj3nKt4Ee0mHS/n5H85xuMv7wPLIQK2rJ PiEg== 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=OKsuMOlJ/kUvf5nxKbln+8nL3z4z/OP6ZfAXPS3zWIo=; b=0vwbD3+hO/PkqQprJVK9gOhyIC7GJaEqmEeXc7R7g6lpxK81hdkkoFZoMl+KNyw5UR AizEzCGElFl0/XT30rlcBejs+Wm5qF7taLoRFmUOOUfZIujr0SlSbK4OZ1RjCpXZazWM JLp4Das4NCW7HI/fs9iILC1iSj2WH6XZSPnCPO4mDeuLbmZddJc9nTXy+bUuX4oAT8XN bfBTI4n10ha/i2H9mAtXyK1lTVM/h5M8i1XRDA4pl5ovZeSxfwKsv2HDTRqEgIe4CJ+G ZPYv9pskenUaoED87xriHPL0YgKxbQwZy+XrwTPUfT3hkEwEIoItX3EsEYgQlEaz7lRJ kWGQ== 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 3si912864qtp.421.2017.09.18.20.00.51; Mon, 18 Sep 2017 20:00:52 -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 1C40B62876; Tue, 19 Sep 2017 03:00:51 +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 4B95861D9B; Tue, 19 Sep 2017 03: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 BC2B561D9B; Tue, 19 Sep 2017 03:00:36 +0000 (UTC) Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by lists.linaro.org (Postfix) with ESMTPS id 1FEED61D00 for ; Tue, 19 Sep 2017 03:00:34 +0000 (UTC) Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward103o.mail.yandex.net (Yandex) with ESMTP id 8F211588448B for ; Tue, 19 Sep 2017 06:00:32 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id vF8FBUXF6H-0W3WaX3D; Tue, 19 Sep 2017 06:00:32 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id X7vK4VOjbe-0VRKrsWb; Tue, 19 Sep 2017 06:00:32 +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: Tue, 19 Sep 2017 06:00:15 +0300 Message-Id: <1505790024-16070-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505790024-16070-1-git-send-email-odpbot@yandex.ru> References: <1505790024-16070-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v4 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: 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: 407fcfe1baad9b95b5374f13221abdf50b8d6089 **/ 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; \