From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0045.outbound.protection.outlook.com [104.47.38.45]) by dpdk.org (Postfix) with ESMTP id 52A0D7D18 for ; Fri, 2 Jun 2017 13:21:19 +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=VjsCNkdQqTOdR7BUGS1BlyjqK3XWrxqLLrinWne2uKg=; b=QW8PQ8mhr5KumG7VvgB6SS5zmWBGtyH1jBtAq8x2hY6VfvG4d0I5bBHieQFSWDPDn7PoWGyVBlPJWG1hdzbqfhbwTGAs8FQCNcI3H3S6fhwaPwwp6XP/Gz0sk7gPROgNQHANol3B6Mk/ZKcrmek8QUsSvQasSog7b7aOPur7VY8= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.caveonetworks.com (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 2 Jun 2017 11:21:14 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: bruce.richardson@intel.com, thomas@monjalon.net, cristian.dumitrescu@intel.com, yuanhan.liu@linux.intel.com, maxime.coquelin@redhat.com, Jerin Jacob Date: Fri, 2 Jun 2017 16:50:30 +0530 Message-Id: <20170602112031.9112-3-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170602112031.9112-1-jerin.jacob@caviumnetworks.com> References: <20170602112031.9112-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0087.INDPRD01.PROD.OUTLOOK.COM (10.174.56.27) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1714: X-MS-Office365-Filtering-Correlation-Id: c8808ff3-fa09-4ce9-500b-08d4a9a97ce8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:yIQKgwjvpE/zuh/IsOsjro1z6S+26OS6dsakazhft1qOaHLDPeVGb1thr+8xP7bYjJhoddmrJsnAIXs41o4woTlYFKpkwylQ3vW+LW8VTvQ/ceNsb77trzN35tB1skRb/M9cHCXp3Jm7Jn24SpwObvwCcVIj4iYOtHw4KfiAQIJFiEeIPr3IlVY1JBRzKv3VIyDfmR0pqw/0+Q5fyYi93u1ytBeAiKYKwCSFKdFLwAcqQg4vAOOJAElj7EMhT2jD+OSNgbT4GiiAvMj4TAy+PPijoBMw8/CK2fGzK2VAIgzTPiu9RhuPEIAUG1T6Xb27YrmYPkN9c07hULRahkY+kg==; 25:Wi4YThkdYvb2DjCqP1+Q1fLTUKRSWAoiSA2D/tmH0My2UJLzffw5pD1Xd2lYFBVR/jMajXWOXkgmQPQC2ktp7bU8U823szR2c7jsQPjxTqnRDGyi3c03N+FtmEy55OrpFK7iAGYLMTvhREmcYKq3gu/ZyzIDRvhIb/rrv1jK76B+n/2gFGhRjWN669OAltpvnokw/qexDYPaiWj5ZNKCUAfDQl/XyqK14lDF/1zYMPIOu8qJW0nnvFTtsUNdeJRn2AOYA3PVRL/UAnB87O3/BzS+ePhjvobg21ZELHBWcJW2DN6nwM+bVeMAfdy6E1WehvLsDs6X74lgW2+kuam4g3djMFl7P2BPDCzHkXbELKisXhHrZi1Au8Eg24VllGpNraM9hanxhTi6jfrr3ywSmJx9RwsSbKB7cAY37kSzifccYpaVx8j+jVt+zORbANwUtFLPXRAZsSz8RW1MwqXV6nYc6BBOPVRd4pzHDhaaMvM= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:wLPfWBzzX60rmgw5WXc2g/N9e+KnQ5T8mdeNYpQe7QeXaxf4rcN1GGyeHDxGvGdOXsknIM+8vxqa3cmyYNkRiglu4p69rwcE7CsPcziA3WU+3ltvJAt7Fenz28tPHy09f6URw+m/mIPN5nrNaFK31vaPE16Sb7LmRaseFLUj3ngGheNWM58oUE43xtnAx45VnjZ4SN00DZbnAD9ekgnzu7eFw+rfKdkBtcLH0Zj0HBA=; 20:K4RQ5MMq/A1NWwu4gaW1hlqweNYdy+0+pfbBDJsDe1xDNTuZsNfiX0d5nVkzCJ2Cad5q0mrkC1eXroD9HmpRtKLGIlhC1FLFtOmoz4M05uNN+pdaiz7jgnw99paL/Pv6+kVCtQh7iitrh/+5TCh8X76X6GaJBIPu6HuiXDhmreUZFXU1WltPOUxCYTSyiGcj+4JMvz5Ki86VzqQ+QtfnXe5cP8ZdZ7GMVy6Rq1PK2xsEjECfwf6qyH0ZmfNFAHqydkKPQ4VPE9nAvO/j5TZZjGmgRKvccPNx4r65y/kS68Vyg/ncSLPAZUYNnwOFvF3Zpq2n4NaxyYSw5+XSkdnrm5Qr1bqOIggzWRtDLhdMJ7xHPEXEbWARnfNkpjRqB/glvZUyJdWjLfesSVxOn9M5PvkYxDwkiaVb7XyrIPti5QHslNvUgqWsiDdukGOeWrXcuA1YGUPzbka0Y0c3itOk09kksQ+pob2w0RWkfBZ2VlxSqUSdXG75Beq7I2NoR16+FnZblogXuvy+uhdB0aqysmYoWvkd+BeNL2j1rJsA2DxkpcDl8EpmzwBse8dADU2vyBxORGGKAiFX7ylChXclGVOo9w1N3kfz4x7Filv3cgg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjA3MDFNQjE3MTQ7NDovVjVocDJBemFQWG00TXpRai9HK2tkN3Jv?= =?utf-8?B?eTFsNEg2cTg3TjFCMnl2ckI1bCtEcjJoUGJwenNNaEdSUTlSekxFbStObWs4?= =?utf-8?B?aEJweTFPMld2MVVUM3hKcUc4TjJKek4yL1ptYW8venFGSVpaSDA5Q0sxYk5M?= =?utf-8?B?SHFDMTBoMUxGaUxuZXlMN1VoNGxZN3BjcElzUnMrOFpLM2pYQVRqaFQrM1Yy?= =?utf-8?B?cHYzM0xUN1gxQVpWaFVpYnl2U3lkM0h5QUFPbUd2R295MFZ2eEl5dlpRSENl?= =?utf-8?B?QTdNblFpNmhqeFhDNnhDWkdkenV3WVNEamRoZkd3VHBiaTVrOTFVQitIVzRN?= =?utf-8?B?NEdPM25xZlZNM1REdzhHcUtPUUFVM053S0VnRzhMY1dBRC9XMHlLcDdreGsv?= =?utf-8?B?Yzdua3JZRjVUSmlpZnJyN2tHWkd3MnZxM1MxVE9VQStUQlFESTNaeXg4Zkpj?= =?utf-8?B?QTZMMERyNzdCZEZtaC9DN1VmcEMyNXpYb3MzcnMxTzVQVVFDQXp1VVp2N0xP?= =?utf-8?B?QjJBNTYzSzRESG1rOVRKYXdBeC9SclFuYUQ2N3V3OVhPSzlSWHhoMHQySFdJ?= =?utf-8?B?K3JBYjRSc0RDZEpLVFJjYn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VjJ517KKMCR/dVCGAM=3D?= X-Forefront-PRVS: 03264AEA72 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(3846002)(1076002)(6512007)(6116002)(6486002)(53936002)(23676002)(53416004)(2351001)(305945005)(50986999)(4326008)(7736002)(2361001)(5660300001)(33646002)(107886003)(38730400002)(189998001)(6506006)(110136004)(76176999)(42186005)(2870700001)(81166006)(72206003)(8676002)(47776003)(575784001)(2950100002)(36756003)(66066001)(6916009)(6666003)(42882006)(478600001)(25786009)(50466002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjA3MDFNQjE3MTQ7MjM6NXVCckFudnhZUHBZQnJuNGpIY0kyRW9u?= =?utf-8?B?WGJLY0JkL1crMzJpZHpsS2N1MExEbVVYL0NlbURMWjhNbjNITUU5Q3RKMVRy?= =?utf-8?B?T3BvWWl2ZmNWTGZJWUt1WExMSzVTODdWZFJlNkt4TDNTamhXd05BNCtvM1c4?= =?utf-8?B?NHBCQVBsTmNCRVU1WU9JZDlqUkVUNVREWnhoV3V3bWZtUGJxZTJUYjk4dEk4?= =?utf-8?B?Yko4eURZTmxIVDBjRHo5UXkyZzB0V3k2aTNMVG10QmlUMEE5bzhIWTU1cFFO?= =?utf-8?B?RXJVTnVIVk9tbHpKcXdYMFdkK3kxbW40emZRazF3NXRubkhHZEdySEJCeG5x?= =?utf-8?B?M0FtQzVEaC9BbllQbTFjUTVOcjNFMSt2YzhhcWJtQS9MYmRZYUJqUWFPUnNi?= =?utf-8?B?RnpXTHRQTTFCQWhlQjBGVkVBRnlaamtKY1IwaVpNcCsyNkRNS2Nqd0JCWkpy?= =?utf-8?B?aTI5QitYVFBpa2s4cG5HMUZJWGVCTWhnOSs4eHZJaHlmL2pzM3l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gswvld11E3eT3c/OAryhS7tgzl1E/rUr4JXzj8E2grdrCeP+mXqMOK6J4tkQRzdBoW2314zL02jw6jR5/pNMA31zwIXEWjCH6D5yoIKV/Q4kJ93OF2j2JHAqeYxNNJJcx8Pki3J52npQadT5M6BYSaSgZJik2CiNu8CWqElgNQBckNz2nLXkVmEQXMPsk7ujqOodVjfwi9RRk3bC0wUkxgz78NZElNLedlV2OIFkx8sJedDKcEFC7is4; 24:daPr54s3y2lJqKzI7a2OOP//DMoFCQ4Qh2Sfxs9MdWZwM6sDMlkA5jCQS/3Osln/IPnfvoQwEcZvKhSzcQ6GO2r0xh4oBtPR0TNjhU0Kxg0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:R+WHye6rLvtW3V1nZjJBy3NFfu2YeClUForXdFcdv4eG66vWYkv8URn82vGzEBomU5DYFDxRwdXr/U0KWIIPtU61rU3DwXiFJnYGe/cmb3Tbsp/nibAZkKwyTkj8mHLzeNy6feElmArRfZlZF6zvzQx9HjBUIS8Rpheb1XwAcrMIo28xt2dzWkbLqFQJkgNYj6Agn+8Exw92XpIYPeZqgj/SHwN6aAQJ4FdPMbjImmot4/EG/N982w511TnK3zxBdfiafS4qAFvP6RENCc7yjq+6Io6vxkP6QOhQvbh4CWwdeOUsoBjKBCZm8vwp7yB9xgSV20cDq8W8uec3oJdhoA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 11:21:14.8904 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH 3/4] examples/qos_sched: suppress GCC 7.1.1 warnings 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: Fri, 02 Jun 2017 11:21:19 -0000 This one is more of a compiler issue as application checks the app_parse_opt_vals() return value. Since this code is in slow path, adding a memset to fix following "maybe-uninitialized" warning. qos_sched/args.c: In function ‘app_parse_args’: examples/qos_sched/args.c:254:32: error: ‘vals[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized] pconf->rx_port = (uint8_t)vals[0]; ~~~~^~~ Signed-off-by: Jerin Jacob --- examples/qos_sched/args.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c index 476a0ee1c..2350d64f4 100644 --- a/examples/qos_sched/args.c +++ b/examples/qos_sched/args.c @@ -245,6 +245,7 @@ app_parse_flow_conf(const char *conf_str) struct flow_conf *pconf; uint64_t mask; + memset(vals, 0, sizeof(vals)); ret = app_parse_opt_vals(conf_str, ',', 6, vals); if (ret < 4 || ret > 5) return ret; -- 2.13.0