From patchwork Thu Sep 14 03: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: 112495 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp265236qgf; Wed, 13 Sep 2017 20:02:24 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCHT+J2clwjAkqPjQB+yefjwrgMjftvh/3b6Bll3owkQXO8pFZN3dWR7heTWStLy88Nmwn9 X-Received: by 10.237.62.129 with SMTP id n1mr30032968qtf.39.1505358144471; Wed, 13 Sep 2017 20:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505358144; cv=none; d=google.com; s=arc-20160816; b=mZrgvI7Lc1fo96DUMnEvJfRDeISbq6BLSc8Br0jgWG5vJgDWjIIMuXCOQRQeDTAY/U P2ZnVuaMfafto3anOyVPSs+vqHngAVOPk8OS0RhDUBjoMIshiad8u03DNwU5NMJ+2d2I zQRjk3hi00v2hS2II5DHR7r4BmVoFfGKHQK7GVdQwnmmqiDwC4JIQdEp3+jiY+XEmI+G LfrIZKksjYKN6czmNYAb7r78wVxmFsNYHOXRV5TgfV0bRrDz1FQ1TPb+TbqqC0mIiy4B G2msglSXbYUcM4J4dPnku47d1cxmibDLXjFSt2dPY/ycT3HqOJhPkvvUsnjGFX4Ueie8 UeDg== 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=Wj6HZnVUnGWHcqrMWllUEEN/UYNjCKkNHbIv19vCsO4=; b=u7Oe40ECD6tPJbxzxbSnup1PULhC/CoOwVQhknhLrHcF1ZqU6xk9txTm2iMLOIweWZ ElthoNkqFxJOs6TMezgS2vm+YcfuJHI90o9IMu/PTnTr3yMvHN0O8smgJcxDMZ9opxHE eTobDoB9AwyMMeOla+U/pa93sKTtC9OHbVWh2/i/t4VQmphYh4rLnCm4C60JGQG/uTtx n+8/ndT6czI8fyHv2Poirbprl9k3NlrxGJr/E5vUQlH0rFiVjsExPNPBEfwXFSBrcpHd DYcQRKbfujvVUen071g1tTfb4LV88v0xLBHV9KuLIlEBzz8biHVxx71fkXIbQYG93nqN akog== 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 d21si17326638qkh.197.2017.09.13.20.02.24; Wed, 13 Sep 2017 20:02:24 -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 19B7A63CB2; Thu, 14 Sep 2017 03:02:24 +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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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 8ED83609C9; Thu, 14 Sep 2017 03:00:42 +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 B105260C0F; Thu, 14 Sep 2017 03:00:34 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id C9312609DB for ; Thu, 14 Sep 2017 03:00:30 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 81E315D83562 for ; Thu, 14 Sep 2017 06:00:25 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id z5mGbmSYyd-0Pfi28xN; Thu, 14 Sep 2017 06:00:25 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id zmNnunofyZ-0OOOFp6C; Thu, 14 Sep 2017 06:00:24 +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: Thu, 14 Sep 2017 06:00:05 +0300 Message-Id: <1505358015-27878-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505358015-27878-1-git-send-email-odpbot@yandex.ru> References: <1505358015-27878-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 139 Subject: [lng-odp] [PATCH CLOUD-DEV v3 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: a25c44f448c9f01c48cfb51f6350d317baab8700 **/ 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; \