From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0041.outbound.protection.outlook.com [104.47.41.41]) by dpdk.org (Postfix) with ESMTP id AFF1E803B for ; Mon, 16 Apr 2018 15:13:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Fi2yGK9xbnhsXKkg+nlkSqxkU41KxnxEgIXyGfeFg5I=; b=GN18EVmWEybRs7ReRAXA7H2tymGXb5/4UASAc0scFbxhFHgHJeOL2qcZnwO7ssVLcyUixF+YMpx0pyZflAUI36XPJiqqi0LOvizQzxafGhDhqZbE8usUgwxRdKc49cchJQbz5ZQTTZCxP4GxmvH0cBIAGfSVSKy9pICIdGIGG8o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by DM5PR07MB3467.namprd07.prod.outlook.com (2603:10b6:4:67::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Mon, 16 Apr 2018 13:13:40 +0000 From: Pavan Nikhilesh To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, arybchenko@solarflare.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Mon, 16 Apr 2018 18:43:23 +0530 Message-Id: <20180416131323.1832-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BN6PR11CA0010.namprd11.prod.outlook.com (2603:10b6:405:2::20) To DM5PR07MB3467.namprd07.prod.outlook.com (2603:10b6:4:67::22) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DM5PR07MB3467; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 3:suxSgrXmmdgNAduL+serW5YBmt78Mv2eMcsTUVAKbDhjdeDDl25K6tPdof/ggy/fN7tp/4fLkCI8x5IqG7BMS4RmtI2+SdI69rZsMBh4rZTQD7CFvHYMb+1LniTJB3+il79VsvgWfuN/naTDcOXprQHYLgzMTF5oKHqJCJMXp7P5hjU3otRSH2yjDF+cPRpkWmoq1vcnMqzvStwbKEXp6+gFFcSkSlVxycLqjc425+nQOJd3nHXpEFsKxeqSd7xW; 25:YXWD/zKWLxeXDAo58fwZ8mVNWLlgLkMWCbQmURYfMKzam+cbqJ3vb0RiA+Q7h/jdvB0qkWDET47r9L49BznqDV1G5R922gryzmShVcfHRP8OB4b1bggsdgbnNdlPXNwpHkWc4RM1MQ/kC8TP+XAxa5jdvvQ5qxutJPY1VpIftqd4hmDpCveMqdDDydnn7ldfd0dYNNZkGDkPmiZR/Sa4tcwqz2BqDYLPe7KsiIM/dlNpsiy5ed/IkkXGncmriLzExJlgI8DZ6jONz+dbdeq22Srn45GDqqvQPW0ySxNXKttIGCAeXQPLhTL777vWYac4Sifheeg5SzqJ4ZtiiwHo5g==; 31:w3DOOwLXOFaGhMi/5JOJYyRPfSfbVk22DuGt8iTS8JWWY1wHF8fZty4YOnblxQQZiTGXQk23JrJOJRfbcAQVKPlF5ObLC7NYXtabr3euE6Qv4xsJoL0E9U16bkmCHBdEae5wJ2P3rDIeYIm6D5BZVZuzMFDumbGpJ7OSuF1+TMTlAFjOHaQuYtEKImHWKKlXem/VF9PnxD3vkOImqrF3SZuUo5KZ/pSjXXd3wZ/ZzOs= X-MS-TrafficTypeDiagnostic: DM5PR07MB3467: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 20:YZHNU5JrjEzQXc1vBLaFsAh7HaCBw/oMACuQsBLPWAckypz9HWWuCx5MgpnblQm4QlVt6nQ9nKWvrO4POdGXtu7RC4Zx1dz1Wy3KhGadbJiqaky9M2LDMPutA1jfpzSppE4gKpyHAwfUOkA2KSUuPLOaoE62Epue1WG3ryogGlStZ8/SXuxq5bhwEHL1MoyKJrzeyC08Os2qdwkQPi3A/xVlzXW0+z7qxcWcQimHg8x77MbWpGwCh33itdsq5X8+KHlFNl/gYE6ZmqhuqpExS0fycu73VpJNOI438szgn1U4iD5rNRp573+wTeoFYQ2Diyx0Pzp1AXxUYzol5hB/u/0JqfOlC7S4fIRl8nqJ+Tiai+VbEXPyi4ht9klsJAfcDjGpivCxURZpMIdrl7cRRTMrZKoj1yDJ8DHjP9UJ2+zR5XprFIoX7rrYev/06tCkrOCwkuwglVw7ThxucPP7Srg8PdO78G+O9DayX2v0DX0zugeobLhJc3VCT/6VK9hDTunml943yzH+y50mIR0S5eDg5EaJfq0KW1Ll9W90wlGfWmz3Ac9TMc849ULNA/31Wnra4lyPlaOaCo6L6Ho56gLO0h8pRjLTEE8a97L3MNU=; 4:vFGssO73lyFkBW323D17xJCFmrb0ZQbm9rRRglDChHhRPi+JfsH0wO7ANjefk7BOstqwbqVujcsA5ArTCQsXQqKJ7VNYaOAuAVmAoVwyE2EddgEQK+lFP/kGI4MU2ipJn8OHoiTgFr89domhE7CJ2Rtgjl9/ruJqX8CobCd7gXVXtzu1j1KFeuN7b4vo+tKGYxFF0EkEbyPQdnjFYKeFrAfX5oWqWzYOGTcdO+DilJzpM5fjRHs4j42dojMU3PabLndMbz+vA1WGVwJcUxf4oA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231232)(944501327)(52105095)(3002001)(93006095)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011); SRVR:DM5PR07MB3467; BCL:0; PCL:0; RULEID:; SRVR:DM5PR07MB3467; X-Forefront-PRVS: 0644578634 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(396003)(346002)(376002)(39850400004)(366004)(199004)(189003)(6486002)(1857600001)(305945005)(186003)(16526019)(5660300001)(4326008)(53936002)(6512007)(107886003)(68736007)(26005)(50466002)(386003)(53416004)(6506007)(316002)(2616005)(42882007)(52116002)(106356001)(956004)(476003)(105586002)(486006)(23676004)(25786009)(69596002)(7736002)(97736004)(81156014)(2870700001)(8676002)(81166006)(72206003)(8936002)(36756003)(2906002)(50226002)(478600001)(6666003)(1076002)(3846002)(6116002)(66066001)(5009440100003)(47776003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3467; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjA3TUIzNDY3OzIzOjdDSTZKNHRTMFNvVXZ6TkR3a2owbWNDOUs4?= =?utf-8?B?YUVhbnZ5YWcxU0tEQTFveWZiUGRxc1RyS2V3SE9RZFhFZmdtVTBBNkNHWkUy?= =?utf-8?B?VmhvL2FJYllFUGRHak05Nk5xR0FCSU9OcGZ5RGo4RFZPTkU2cytNK0NEbkE5?= =?utf-8?B?a3NIZjNiYzdJMG5KaTVlOW1NdHZvKzYyQ1R0akFHQWltNFg2ckQ4U2FtaUJC?= =?utf-8?B?RWM2YnVkdG9MZmlMbWh4aU9GL3ZSNE5QSVp1cWpGekhweE0xMWI0eW1WNDVl?= =?utf-8?B?YVBHbDc4WXBoVnFBbExoSHdRalRYUmoyczRrWTdKVXdxUmk3elNqOHhyczZ6?= =?utf-8?B?aEhGckR4bUNKSWRPcEltWUttWkFtZ2gzTU9PWjFqd2tqWG02QU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im9Mqt4QbkPDH7CmE7lsEv6aBUieS1myUXj1ZDIUu/v61dRuhjanzoHcztzw8gv1J8LK40HYeXL5krjE0GWVfGJqrG4ywx7nEBbv4i7NTJXq4wZR/8BWVhYwlaSrtd45yn9AUo5+wC3oR11QEYVgU+ZBQ==; 5:/ifCQoGBO0I7W7lDtz2bHSM7dT2xv/DIJ7vme/yj2f9Ea/bePTeQHO4DSwFUHVXI5XQVtVy7GkUdEQleBY5nrYi4SniS6AlZDyvTrmkIwu9hw/B98u5Cf8sG/uCX6rz5kKpflUit3DswKXv7nRGuTxsFkFSs+boFCCQD6Ox6uMk=; 24:rr4abBLiHAVnO7n1rfJre2UYWjlGaxD2KuY6UQ6/Vtg+1y/iFtVF6/HiJth2orejBX7VN5fb9NZp6zO9YhTWlFVMBi2C+iIR64qO9IPk8po= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3467; 7:OeZcmI5DsndMQ1vXmiFb2QNqYgWsK76J5FdbJxRz1RoW1nOrIxlgcwnCHRcM76jvKZwRDc0gkgJxzh5ydr1/HsH1w6XEsvbRJOI3q+Mc+RO0t3FunjhR9yuN/6bGYtNP50Wnoaj5lO1Lj1wBqtSqMSBL822WDWF9rCu0k4v4TYm3j5e0FlWRIHFt3R+74jmdSD9Bf72fHGklC7PgeCIbpkqn/tr1TDXXBnfdPcw5WCw8GnM6IjzO09rrhLCJCRyn X-MS-Office365-Filtering-Correlation-Id: 96c4064f-6e9e-446b-c7b6-08d5a39be0b7 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2018 13:13:40.2254 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 96c4064f-6e9e-446b-c7b6-08d5a39be0b7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3467 Subject: [dpdk-dev] [PATCH] app/eventdev: fix gcc 4.8 compilation errors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2018 13:13:45 -0000 test_perf_common.c: In function ‘perf_event_timer_producer’: test_perf_common.c:99:3: error: missing initializer for field ‘priority’ of ‘struct ’ [-Werror=missing-field-initializers] .ev.sched_type = t->opt->sched_type_list[0], Fixes: d008f20bce23 ("app/eventdev: add event timer adapter as a producer") Reported-by: Andrew Rybchenko Signed-off-by: Pavan Nikhilesh --- app/test-eventdev/test_perf_common.c | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c index a74ab9a9e..f16791861 100644 --- a/app/test-eventdev/test_perf_common.c +++ b/app/test-eventdev/test_perf_common.c @@ -87,21 +87,21 @@ perf_event_timer_producer(void *arg) struct rte_mempool *pool = t->pool; struct perf_elt *m; struct rte_event_timer_adapter **adptr = t->timer_adptr; + struct rte_event_timer tim; uint64_t timeout_ticks = opt->expiry_nsec / opt->timer_tick_nsec; + memset(&tim, 0, sizeof(struct rte_event_timer)); timeout_ticks = opt->optm_timer_tick_nsec ? (timeout_ticks * opt->timer_tick_nsec) / opt->optm_timer_tick_nsec : timeout_ticks; timeout_ticks += timeout_ticks ? 0 : 1; - const struct rte_event_timer tim = { - .ev.op = RTE_EVENT_OP_NEW, - .ev.queue_id = p->queue_id, - .ev.sched_type = t->opt->sched_type_list[0], - .ev.priority = RTE_EVENT_DEV_PRIORITY_NORMAL, - .ev.event_type = RTE_EVENT_TYPE_TIMER, - .state = RTE_EVENT_TIMER_NOT_ARMED, - .timeout_ticks = timeout_ticks, - }; + tim.ev.event_type = RTE_EVENT_TYPE_TIMER; + tim.ev.op = RTE_EVENT_OP_NEW; + tim.ev.sched_type = t->opt->sched_type_list[0]; + tim.ev.queue_id = p->queue_id; + tim.ev.priority = RTE_EVENT_DEV_PRIORITY_NORMAL; + tim.state = RTE_EVENT_TIMER_NOT_ARMED; + tim.timeout_ticks = timeout_ticks; if (opt->verbose_level > 1) printf("%s(): lcore %d\n", __func__, rte_lcore_id()); @@ -149,21 +149,21 @@ perf_event_timer_producer_burst(void *arg) struct rte_mempool *pool = t->pool; struct perf_elt *m[BURST_SIZE + 1] = {NULL}; struct rte_event_timer_adapter **adptr = t->timer_adptr; + struct rte_event_timer tim; uint64_t timeout_ticks = opt->expiry_nsec / opt->timer_tick_nsec; + memset(&tim, 0, sizeof(struct rte_event_timer)); timeout_ticks = opt->optm_timer_tick_nsec ? (timeout_ticks * opt->timer_tick_nsec) / opt->optm_timer_tick_nsec : timeout_ticks; timeout_ticks += timeout_ticks ? 0 : 1; - const struct rte_event_timer tim = { - .ev.op = RTE_EVENT_OP_NEW, - .ev.queue_id = p->queue_id, - .ev.sched_type = t->opt->sched_type_list[0], - .ev.priority = RTE_EVENT_DEV_PRIORITY_NORMAL, - .ev.event_type = RTE_EVENT_TYPE_TIMER, - .state = RTE_EVENT_TIMER_NOT_ARMED, - .timeout_ticks = timeout_ticks, - }; + tim.ev.event_type = RTE_EVENT_TYPE_TIMER; + tim.ev.op = RTE_EVENT_OP_NEW; + tim.ev.sched_type = t->opt->sched_type_list[0]; + tim.ev.queue_id = p->queue_id; + tim.ev.priority = RTE_EVENT_DEV_PRIORITY_NORMAL; + tim.state = RTE_EVENT_TIMER_NOT_ARMED; + tim.timeout_ticks = timeout_ticks; if (opt->verbose_level > 1) printf("%s(): lcore %d\n", __func__, rte_lcore_id()); -- 2.17.0