From patchwork Wed Apr 27 14:28:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 66795 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2222591qge; Wed, 27 Apr 2016 07:28:36 -0700 (PDT) X-Received: by 10.50.29.39 with SMTP id g7mr10824792igh.50.1461767316449; Wed, 27 Apr 2016 07:28:36 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id hx1si10147822igb.20.2016.04.27.07.28.35; Wed, 27 Apr 2016 07:28:36 -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=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 95ED761101; Wed, 27 Apr 2016 14:28:35 +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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, 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 50F1F610BC; Wed, 27 Apr 2016 14:28:27 +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 2535B610D4; Wed, 27 Apr 2016 14:28:25 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id 59AAC610AA for ; Wed, 27 Apr 2016 14:28:18 +0000 (UTC) Received: by mail-lf0-f42.google.com with SMTP id j11so58721788lfb.1 for ; Wed, 27 Apr 2016 07:28:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cuOmhzEKbFn/BOxz34pr7XR3dejEuEDTL5QxCtUjJ+M=; b=GS1y7HoRpy0A85iURhc9BdpgmAMb8g56nnDbCuWY0jhbwIqS9D2N46+mAyUeJL7gY6 Eox92/tuBuFzhMVfl0fxuopmzlj4pqlbfi4PpHuuhDgQk7N9yPtt2QGsd/fQU2vG+I+2 QuKejGLOfxKJMxqZpJuHKpRN+kF4J2RJjhbkdg2NQnY1H7LA3voAxMEEUwH67rYv1oLm 28QZ8VSPO1pN7CBKtSHcYkbhxco4KtyOSviMcSJR9uqrH1QoC/rtCxpcNFI7JWZjM3TB q8CxSf3RBXIcFR7k1/fSYRE8afBjx/O6NS+F7A+5YXMuJpAJg+jKk/U4b/rX0pSeMAPE 6CTQ== X-Gm-Message-State: AOPr4FVBStgpef8x29LiFQgjy807JYHrAhMsZfFYCnlQycW9Yp1kaQzQnGExsdt/32y8+XYAzOg= X-Received: by 10.25.208.80 with SMTP id h77mr3836339lfg.11.1461767297004; Wed, 27 Apr 2016 07:28:17 -0700 (PDT) Received: from localhost.localdomain (ppp91-77-173-31.pppoe.mtu-net.ru. [91.77.173.31]) by smtp.gmail.com with ESMTPSA id xg1sm809405lbb.10.2016.04.27.07.28.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Apr 2016 07:28:16 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 27 Apr 2016 17:28:09 +0300 Message-Id: <1461767289-18436-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 MIME-Version: 1.0 X-Topics: patch Subject: [lng-odp] [PATCH API-NEXT] example: tm: do not init platform params 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" api does not specify platform specific init parameters for odp_init_global as well as their structure. Signed-off-by: Maxim Uvarov Reviewed-by: Bill Fischofer --- fixes: odp_traffic_mgmt.c:62:1: error: missing initializer for field ‘ipc_ns’ of ‘odp_platform_init_t’ [-Werror=missing-field-initializers] Strange that I did not see this warning on previous runs. Looks like I updated something in system. Maxim. example/traffic_mgmt/odp_traffic_mgmt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/example/traffic_mgmt/odp_traffic_mgmt.c b/example/traffic_mgmt/odp_traffic_mgmt.c index e940954..1a1c652 100644 --- a/example/traffic_mgmt/odp_traffic_mgmt.c +++ b/example/traffic_mgmt/odp_traffic_mgmt.c @@ -58,9 +58,6 @@ static const odp_init_t ODP_INIT_PARAMS = { .abort_fn = odp_override_abort }; -static const odp_platform_init_t PLATFORM_PARAMS = { -}; - static profile_params_set_t COMPANY_PROFILE_PARAMS = { .shaper_params = { .commit_bps = 50 * MBPS, .commit_burst = 1000000, @@ -768,7 +765,7 @@ int main(int argc, char *argv[]) rlimit.rlim_cur = rlimit.rlim_max; setrlimit(RLIMIT_CORE, &rlimit); - odp_init_global(&instance, &ODP_INIT_PARAMS, &PLATFORM_PARAMS); + odp_init_global(&instance, &ODP_INIT_PARAMS, NULL); odp_init_local(instance, ODP_THREAD_CONTROL); if (process_cmd_line_options(argc, argv) < 0)