From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0049.outbound.protection.outlook.com [104.47.0.49]) by dpdk.org (Postfix) with ESMTP id CA989F90 for ; Wed, 18 Apr 2018 17:31:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+Ovm5qsFwsr3zN/XMDYJGHt/krunfc80NdqBG+O2ORM=; b=hdxz8nSyJMtcSPYrLxmmlvTIOPwsz0JIuRgAGjNxOQ2TMV/M7OFkOCe4iuVyiLc+lRjuc+uHThkTMloVCdxjdUXTVTeLxH+qYFfs/i3D9a5m0+q3aeV6An78nLtIXww3LdGgWEWuVbBiUSJmH+CEosa0bB6nxcItAOzgU5tiG9A= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=mellanox.com; Received: from mellanox.com (37.142.13.130) by AM4PR05MB3425.eurprd05.prod.outlook.com (2603:10a6:205:6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.12; Wed, 18 Apr 2018 15:31:22 +0000 From: Wisam Jaddo To: thomas@monjalon.net Cc: dev@dpdk.org, shahafs@mellanox.com, rasland@mellanox.com, wisamm@mellanox.com Date: Wed, 18 Apr 2018 18:31:03 +0300 Message-Id: <1524065463-47568-1-git-send-email-wisamm@mellanox.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0701CA0042.eurprd07.prod.outlook.com (2603:10a6:800:90::28) To AM4PR05MB3425.eurprd05.prod.outlook.com (2603:10a6:205:6::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB3425; X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3425; 3:rclWmud8qZ3h0XpKJ2ietd21HLHWZ806xZg57t217WbHaP7rsS/a/SsBxg2EgShLh25Vk/T8JQeSqXWmvuvCE3IhB0Hp3tt3rPrP2CkQQwTgCgK3AB2KXDLqBebxaTt7KVELNeZViKej/OBHbdkf2pIN+3uo+QPtuB2L9BjJLVdPvA7Ke/+GqSDhz56/uE4lxQZDUv9lfxm1FeopAA3kh5FiNzSu1fjkA+Z7f63dreVRXl0AxH1ZzWFlTT3LBV2p; 25:nmFuzV27ySoVYJVXcG+z8pSNRkaYqhaoqgLLnFW+jyFQf80Zgw/bLdMDfFBsamSKPtsH54wRAmBPyprjfpPClaqkKQzd9CELQ3fzPyFrjb273hX5gw6dtfZ4dtP7fmGjwQQm22bNJPBxQArNfmy3uTCdAuVOaylBGS1C2Gw498kFwY6ulazcS4Gw93ZmOy6l18WVTpNz7wQ2Ty1NZic/LuTK2lrt/A/fdBD1L/jIXye5ICmoCbyOApiK9Qw8X2yGEVWtRvPJx4Hd7ANzh2/bm6L8QAv/Ggl2X7YJZClDbHeFOI0HFm2k63IkDCbwp/W9vLzpVKtHyS9j0Ykqly2mrg==; 31:/iJPkm/fcwkGwc5SNjVMOIdQUZzSLwjmA0lu1ABUXuTtJkb3tM4Kr4TAHwCNNr5CiTwRZDNEedECzpQlDDXGHW2H7WX7bl5OSXXli9DoX+DJYFOpyMLTwsT0y067YrB02+WPOp9ynlMHh+78nMNU1oJgNy7Tp8PMs0FGbsBNoJN0FV7v4UAfhXfz5eC26VMANCuAUZ4PKtc9Dzn9/NJIWL1mfvuRCTHDwWnRAQFiBtg= X-MS-TrafficTypeDiagnostic: AM4PR05MB3425: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3425; 20:cFJlti0Z/KnlX9OMsRQEMJsaBnVT2AR3yQrlP1PS1z1JLrBxJYR2rVGyaVNSyQgsd/It4gs8IO8dcx2zVhSEyZF9Rx0WeSLlfCrhCGdbSd4b4nYznOeS+EBAHQS7hYfyi6mLiSFUAnusVVHJKclLYLpHUP9S/4/t2rjyeJlpnpeq9y4J1yIdJI3HW/wZ3msdWqAY6o7lyVzjipuNDqM3tEQrheI71hNLg0pgm1ZkHNfldvoNxZlCrFFwQLeuoe4aycGvBZZ3gzHC94KDRoEZw19SVHC0AgzJRMe/urdpjDo07ePknEcYDZJ3i6zjIO0/2Ihjh6pNzVaoH+GyqMfsVho9hy90CE2CETOWJwB9kZZYd7Fhtt/WjElU6cd0jyhFOjgFQr+wYEFGkx6gKMkJoF9C6txzE91gghBW+NccKQSd/TGDUqC6B3cXcdxEvv92mFW4i6r2QcxbVs9JdBi3lA19Vrmb/nmxjCGnTaakiYldkz1dTZDa0g+70vK1LryL; 4:JEUMFNoDuRyK7gGGZh7j29i7NTZuUa3acesZQVLk+WAngktHkyqfLNO7/7xNj21ilS/V9hxOrSG3ByNOahLvwfRewRmulVHO+RRPkVxCFE6UMUiwdZNWlhfKJseBS3XaNr6p53XWf3i6ylLV4kQ2Ac+f6vMGzQFD5alvbg/m32qzOernQMM44O9TJmqSfH4srcYLuPZT67b8GRhBMnpNVL5QSOn6o7zN8N76XyJdYAEsh/PV+YhdY0W1c4naRqqaXjfHaOo8o7heLnhiii8Cjg== 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)(944501368)(52105095)(93006095)(93001095)(3002001)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:AM4PR05MB3425; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB3425; X-Forefront-PRVS: 06469BCC91 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39380400002)(39860400002)(1857600001)(2616005)(8936002)(33026002)(2351001)(6916009)(16526019)(6666003)(25786009)(107886003)(50226002)(476003)(59450400001)(47776003)(386003)(66066001)(956004)(16586007)(55016002)(305945005)(86362001)(8676002)(53936002)(7736002)(4326008)(5660300001)(2361001)(6116002)(2906002)(478600001)(36756003)(7696005)(26005)(48376002)(81166006)(50466002)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3425; H:mellanox.com; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR05MB3425; 23:+v4DajHFJRsnMN/QS/n2wCvD9Lg2MAyRCtoyqcE65?= =?us-ascii?Q?Uk9fu+ylmJowr9c7IAAbJEWKsMlV44wyWhcc7YRoJkVlUG76Q/ZJtnz7deet?= =?us-ascii?Q?M2VNt13g5qag+5NOuMqo3aPOr1T2ogqtMKP2EYZFe2pcdWnZh3mctCME9RG7?= =?us-ascii?Q?Q3pdAzo6igLas4G8GdW/66KTPe6rCuyYNCG37bwOY47X2nuMTRL/3kXz4N1l?= =?us-ascii?Q?JRPbHG2dqekGc4/YfPj8yAOw4B32BXC5O2T4Idpz8uoIUny02414l7UYaexW?= =?us-ascii?Q?JEqXlgLVYx9nq04eEYK5ZD4ukhxk9pco9/a89e24m7e9T3tvlHtlvKyGwEn3?= =?us-ascii?Q?tfF591QQGunFVwXXR5iQtLOFWAP1w0X9GK1VnSGb+B+VgAvIDo5/FsBS84EF?= =?us-ascii?Q?NYmE0L9BmnXMFJUsunZ5F2MQ7zsBesAyLN4TSPq4yZAwiQs1JHalHivxQiJp?= =?us-ascii?Q?ToGtzOmUVBKoC4nB6I6BNh0O/DiasvVJ1DoUgtf1g0+i60dWcFB9RrhPsGBm?= =?us-ascii?Q?73Roow5dp8450KhDXbxUgqI4L8cNlWGEZ+aSOqBRB6iIMaaXHQcBHays9J0U?= =?us-ascii?Q?MS/n9BfwkGnBuxoW1AnFjudGmkY5f00K7ti/g/c3Qcdjd3ddSvDx3fwrAUMr?= =?us-ascii?Q?kiMa54OoU2OZlyZWbyiVlsbhWAXWe1D0BxthWpd/otlaxDTTkzmL7yTubLwz?= =?us-ascii?Q?aZ1yEUq9Vl9SJfsEvEmdnG1lnrjBiIQH/XIHDlhCuxpRDPiPUNiHiZLTjONN?= =?us-ascii?Q?sjSGWe86fKoxpVd89zOb/nN8C2KeavX+8rJlKoUDxUFdHL6Y+NCCiKZt8zNg?= =?us-ascii?Q?QOjHz2BvNxLHvuUzZzIzqHLRnYLawN1FlBAEeYBcB1caUxfpuYcP6kVwrABo?= =?us-ascii?Q?GBZinsvvnbLwW3mowUQuiQdaQxpFACtvnTbTMsgAyNUoaX3yifJg3ND/1oQU?= =?us-ascii?Q?u3WWT6bh57ZoY6Q0c0fxZ5GokEJQGlsA92h7RTayL9syuK6OgDJtUzEefmDU?= =?us-ascii?Q?fo=3D?= X-Microsoft-Antispam-Message-Info: XdebC8zLITNFe8ZLsjxNTmAi/pU1wRwfH/8b/tsZZXP8j3InC3ZqCdVkxFBl54kApp7TyhmykSr/XRKRJ88tF1uTcZO0j6/9GcZ4OgDzLpJbnH8Rv6rrttfW1PeryBCPDwDrHfLj3hfi1flexO66zG2gdKtQuex6VWMfIM7rqhUniLGxI0cmux4+MrdQeNGz X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3425; 6:8EQJFQSIjZ5Bps0aiu7MFEekZHrUiZjEr2oU0xb4UTuxz2j0FkyaQm269XGC/5QmR4XZYCrcg/OXnEX643pj6jOeRiimNlGLC6WnHCcgP39k0FPi79d4D45JdO7/mcoiyf3OrNbcpBlHKab3BE+ILIENXajYmkp6UlqcaKfmhgq38PYLNxtv8eXGCxG+Q822sDK9Ovm9jNFymF7+/TCNh2amdQCxd30flRenfBEbi90BABV58XepHIJJyV/4DmWnBY03LgG+P2B87JhCPeFmedRkzORQ9kfWBddxfnyh7PpEMtsiwu5RfQiHXBXuC7R4pKPqah9OkCqKIZL3viILprVr+YNv/rFDuZJ9LCk2CjGPL5CrDjA9g2C5u0qhnv6x41PzZ9UDxYN/kufzePPCjsUskmsNZKzs4pRnZ5z5cCjYZGgZC5fR5F12cs4IpMCukF4kDcJlLpwuGtpycNGjeA==; 5:ae3G2w6IPS05plAHApXJpGdhnR2Z4w4TLZl7QPi+DBcYmWgKM4sreN34oXiZcIcm3gCv4BneBSA/YrWMX/1mwe4r+/oObI5lRNpzQ5jBPS9aqN9Ba3FNS+7qDJa9IvgKVvxmgyqmjYxWVJN8LnIXsSwT69yeI32Yv6GRMyiLTE0=; 24:tlF5D66Za99p/DfJJsR8FlXNxTlyb8ZtJrG8kc1uJEtbs8AXwU9ImMVk4cEv1hLJ9+wSZd/pHTszB8fyAajjA/ZKJC6gFGDd3hRZsZwsQeo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR05MB3425; 7:PyL/uA4LICUNq9ciTe0Rz5Qs81aLXHAuWU/zXNxoKnsjhLF+uxhYDZ2+6m9h8+5XKSxmNzWsnByxmcnbuE+F2BQ7AIlxuw5hd54jphcwL96xptsPmbZrmjePIpbyE2wdELKK6fMzsnqD6ArguSwnMr6fSg89ii+HcAJH8gYjEv9RFoAZSvWZMlf05hjlL9RPuAzRjijJi0YwH7yClnftZae1aCYMjiOmUlEhFjzXxMFBw8W/cZt0HeivJa99UkBZ X-MS-Office365-Filtering-Correlation-Id: cf8b74b7-9474-428d-71db-08d5a5417177 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2018 15:31:22.8056 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cf8b74b7-9474-428d-71db-08d5a5417177 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3425 Subject: [dpdk-dev] [PATCH] app/testpmd: handle unused variables 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: Wed, 18 Apr 2018 15:31:25 -0000 Unused variables will appear when setting RTE_LIBRTE_I40E_PMD to be disabled. The fix was to move these variables to the I40E_PMD scope, since only I40E_PMD is using it. Fixes: a9dbe1802226 ("fix ethdev port id validation") Cc: thomas@monjalon.net Signed-off-by: Wisam Jaddo --- app/test-pmd/cmdline.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index d584f95..0b442c3 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -14958,12 +14958,12 @@ cmdline_parse_token_num_t cmd_ddp_get_list_port_id = static void cmd_ddp_get_list_parsed( - void *parsed_result, + __attribute__((unused)) void *parsed_result, __attribute__((unused)) struct cmdline *cl, __attribute__((unused)) void *data) { - struct cmd_ddp_get_list_result *res = parsed_result; #ifdef RTE_LIBRTE_I40E_PMD + struct cmd_ddp_get_list_result *res = parsed_result; struct rte_pmd_i40e_profile_list *p_list; struct rte_pmd_i40e_profile_info *p_info; uint32_t p_num; @@ -15034,12 +15034,12 @@ struct cmd_cfg_input_set_result { static void cmd_cfg_input_set_parsed( - void *parsed_result, + __attribute__((unused)) void *parsed_result, __attribute__((unused)) struct cmdline *cl, __attribute__((unused)) void *data) { - struct cmd_cfg_input_set_result *res = parsed_result; #ifdef RTE_LIBRTE_I40E_PMD + struct cmd_cfg_input_set_result *res = parsed_result; enum rte_pmd_i40e_inset_type inset_type = INSET_NONE; struct rte_pmd_i40e_inset inset; #endif @@ -15157,12 +15157,12 @@ struct cmd_clear_input_set_result { static void cmd_clear_input_set_parsed( - void *parsed_result, + __attribute__((unused)) void *parsed_result, __attribute__((unused)) struct cmdline *cl, __attribute__((unused)) void *data) { - struct cmd_clear_input_set_result *res = parsed_result; #ifdef RTE_LIBRTE_I40E_PMD + struct cmd_clear_input_set_result *res = parsed_result; enum rte_pmd_i40e_inset_type inset_type = INSET_NONE; struct rte_pmd_i40e_inset inset; #endif -- 2.7.4