From patchwork Sun Nov 29 19:45:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 7719321 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C7D2E9F30B for ; Sun, 29 Nov 2015 19:46:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E15ED20558 for ; Sun, 29 Nov 2015 19:46:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 065BA20557 for ; Sun, 29 Nov 2015 19:45:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752012AbbK2Tp4 (ORCPT ); Sun, 29 Nov 2015 14:45:56 -0500 Received: from mail-bl2on0087.outbound.protection.outlook.com ([65.55.169.87]:33792 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751743AbbK2Tpx (ORCPT ); Sun, 29 Nov 2015 14:45:53 -0500 Received: from BY1PR0201CA0001.namprd02.prod.outlook.com (10.160.191.139) by DM2PR02MB302.namprd02.prod.outlook.com (10.141.83.143) with Microsoft SMTP Server (TLS) id 15.1.331.20; Sun, 29 Nov 2015 19:45:46 +0000 Received: from BN1AFFO11FD008.protection.gbl (2a01:111:f400:7c10::183) by BY1PR0201CA0001.outlook.office365.com (2a01:111:e400:4814::11) with Microsoft SMTP Server (TLS) id 15.1.331.20 via Frontend Transport; Sun, 29 Nov 2015 19:45:45 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.173) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.173 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.173; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.173) by BN1AFFO11FD008.mail.protection.outlook.com (10.58.52.68) with Microsoft SMTP Server id 15.1.331.11 via Frontend Transport; Sun, 29 Nov 2015 19:45:44 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep12.sandisk.com (Symantec Messaging Gateway) with SMTP id 14.4A.32178.7E55B565; Sun, 29 Nov 2015 11:45:43 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.248.2; Sun, 29 Nov 2015 11:45:44 -0800 X-AuditID: ac160a69-f79f76d000007db2-46-565b55e72207 Received: from [10.50.231.67] ( [10.177.8.100]) by milsmgip12.sandisk.com (Symantec Messaging Gateway) with SMTP id F2.78.17166.6E55B565; Sun, 29 Nov 2015 11:45:43 -0800 (PST) Subject: [PATCH 4/4] Fix compiler warnings about set-but-not-used variables To: Adrian Chiris References: <565B553C.6020005@sandisk.com> CC: linux-rdma From: Bart Van Assche Message-ID: <565B55E6.4070307@sandisk.com> Date: Sun, 29 Nov 2015 11:45:42 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <565B553C.6020005@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOLMWRmVeSWpSXmKPExsWyRoxnke7z0Ogwgyu9NhbzJ+xlt3h2qJfF gcnj2fTDTB6fN8kFMEVx2aSk5mSWpRbp2yVwZexqOcdSsHcRR8Wcr82sDYx9/9m6GDk5JARM JP5cWckIYYtJXLi3HijOxSEkcIJR4s+SbawQzg5GibM/3zDCdGyctgCqajOjxNcH05hBEsIC 3hKf1v0HKxIR0JC4fu4JO4gtJKAlcfzjThYQm1lAW2LX+TdgNpuAkcS39zPBbF6gmqb+42D1 LAKqEps/b2YFsUUFIiQmTmhghagRlDg58wlYPSfQnJ7eJqAjOIBmakqs36UPMV5eYvvbOcwg t0kITGOV6HjUwAxxg7rEySXzmSYwisxCMmoWQvssJO0LGJlXMYrlZuYU56anFhga6RUn5qVk FmfrJefnbmIEBz9X5g7GFZPMDzEKcDAq8fBKmEWHCbEmlhVX5h5ilOBgVhLhnRUMFOJNSays Si3Kjy8qzUktPsQozcGiJM5r3aIWJiSQnliSmp2aWpBaBJNl4uCUamAU/b68Y3/OgjPvYuOe NDf6+5ueWnF7Lndz1GS2i2fXvHi2zt6y5MX5DwnuDyoFvwYWXlCQLWB/8GbXhFOvHV5+3cJi /0pAISl70n7lkzyRvXmrpH9PusGx8cIqc8duLQfOlBX/1mzh7Tsc+G/jufY0nhk3OiYenrsk dXW8QJx+Rfu207sPM/4PU2Ipzkg01GIuKk4EAFLEoox6AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHJMWRmVeSWpSXmKPExsXCtZEjRfd5aHSYwbVp6hbzJ+xlt3h2qJfF gcnj2fTDTB6fN8kFMEVx2aSk5mSWpRbp2yVwZexqOcdSsHcRR8Wcr82sDYx9/9m6GDk5JARM JDZOWwBli0lcuLceyObiEBLYyCgxYdsNVpCEsIC3xKd1/xlBbBEBDYnr556wg9hCAloSxz/u ZAGxmQW0JZbsngsWZxMwkvj2fiZYnBeopqn/OFicRUBVYvPnzWAzRQUiJCZOaGCFqBGUODnz CVg9J9Ccnt4mNoiZ6hJ/5l1ihrDlJba/ncM8gZF/FpKWWUjKZiEpW8DIvIpRLDczpzg3PbPA 0EivODEvJbM4Wy85P3cTIzgEOaN2MF6faH6IkYmDU6qB0XV/zePIytM9u8z59q3q/63hu2t7 /wK5v5PW9j3kmHTizDe7mf7dN1VepVxts7i4/ealTQzH9rxjXc2pkcUuPW272yvfuG1fJEwT Z7JfmhIj/55r1s0FrI95j+9ROXIuiauq4NaUFcoCBv8dH57um/RJm+3X17Iw1hLGvwmJpsz2 YoKHWN/v1VNiKc5INNRiLipOBACcM6Wj8QEAAA== X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD008; 1:DbziM6UuX17lWCymqPJOLki9CEGcuyjtIGlcrzkZD0AjrpwKDP5jpL/xD2nxUP7EGgYaRQzM6IkjfHRUpdRMbArPutB6Psw5Z6L2UmQnwyXUhMHwKedJNsMDrnTN2Gvocpvq9EExIS9+E/eDT0jODQmdbCXx7z8+4b+lI5aAs05vRh2adVIMctYWbRbcs+xeDVNvOJklIxnLeDIBXs1DWWXFC/4nsceMAPU2jWt7X4bLFyEkJwR9FHAXbeY0eEmURKN5VE2nJRZJa1AFK9BWr6vA8hGxlQNZpsQ20A7qw61PL3njmVv/knKcGn/r6UkEGbj465Yl/GFZjNe01Hwgv20uz+bTn2BoW0QgnYN3KoWgm+H8z41GOSXeeuiJvyeE X-Forefront-Antispam-Report: CIP:63.163.107.173; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(575784001)(65956001)(19580405001)(64126003)(5001960100002)(92566002)(65806001)(83506001)(69596002)(229853001)(80316001)(230783001)(47776003)(1096002)(19580395003)(86362001)(33656002)(87936001)(106466001)(59896002)(50986999)(76176999)(54356999)(81156007)(189998001)(5008740100001)(586003)(23676002)(110136002)(87266999)(97736004)(36756003)(50466002)(4001350100001)(2950100001)(1220700001)(230700001)(77096005)(65816999)(579004)(569005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB302; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB302; 2:48wbgE9T6clksZnjv+9SqTE0FDgc6JZlreNUYLUPeGNZ9Kz44sO+w/Ma9YLruLVCBgEzq3ktXdtTYwBQEwF9Mi5tZzbA+8L1car4sulOwn99AN8adDisMsWUdlVNur6FmgRdWOtvJXSCpk+AktVxpA==; 3:M+kSdVvfHrFqR9NAdXmhmbGyEHPUB9Sa7pbP59RJ7JFX0rzlDcWHKLYzjo1bFP3Y7tjIjWu/z7CrkT2p42J0ALmV0X3vdTUC4IphByDBLKBH6Tbu4VwJKwrRP9cE6agYyrrppcORyDqxkXq7PKLZLV2CrOYwSFIIeyz1AmY+eGx5dicEqrNMlFGIG8lMjT+JVEvgRopy7nHbmAbHjyS/EIxGI6m1MPur+nak1QLSWFWIt3678VCV0o52CO3JVJNnGlhkp4T2cS9VS7+RPmdboA==; 25:FahagYMiV9Yt1xB/zkOgHh8YB+Xoldvr44d/j69m45bnNcocowshHqWMh3vOJw24ORwrtRYRKos1PeEj82vOiny75IettumzwegYQZNvIEgJBknet66vgLJRpCx7dIjszRORTrv/QTsCvOy+fMT8FxOQIt5ExiE0klf90eQhiVp78+5ZreM+wNnfCxhtpYgDpm5edHroTdn97BLzHmWPhtqGMM9mzqIbKy/QcUUGLcsWKk9LvCnHWEt/Un0wTy3E3wglXalOClGBLJavLcl5eA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:DM2PR02MB302; X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB302; 20:SSYCmyq9hH7lhJYzDJDc4QPO//3AEkD2vTFJf5G8fTOor2MmHkZ74DTnL+6KoWh+pGdBHob94o5KiY7nAtHMSSlh3tayuU/EFY52Dyu/jDr6zMkjcrSNfNCGpYtonhHp3XmzwpmsoI18ggD/lohYsOGe848dFRZgH0PxdCTb3sAxGfV+5p+8LS9rEbRJtplxgNFhb5xB8bn8CFiUs7lQb0BzZuFSUe70raZiRXDuQ9CUPO6he0xqb7F9mJznq2FJ6HfsO4uDiB1ynknBqc1siADWDWoq9o4Kvd+WytAIodh8IgwxUmvDcxGA14DiMTaTTyxmefgKGX3C4RMD7xT214TJIJFGfC4Q7k5P8FViMWKnZ3v3Gu4gx8gbYWm3VkZmGOeK0HQ69iUpnNSD8xhaabw4LjaG93cluX5w/jznm4TrvEumxiR8NvqiSTwbZ4/xs5QxFMCFBV4TI2jGjZq5Yxw5K8Csr45ohYIg+/X3bJ4OGI9asRkv0519jAOz0Kcw; 4:uJIK8zsFvV6TgO6gZXvzf2/oq9psrOMFjwgQg+FDvDNNvgR1D7f03RGbTZS6JNDmUqDxEzdF4/wJaIN+ZcIQRgmxDTE7lf6pkhstPbhwPkgRXhT0MomlEreopSalf/CvZuGa+VbJN7EeV0Ryr99XnU/O8TXO2/Q8cxEbJhGwYu66X7cCKPxsuSCgR0Wk9Av74M0V3HOSdK2WEoEZ/38TGn0H5gpITS8gL/9BAUyQRZc7t5twbngH9LOtJsmBe/6xt0tOi9BTbaj2OAXUFyso3lxFVKep5vBEFyq7R4Duv3Qj06PYlu9BlxYqjmDK0GqZUBZXup5OYtDX7S6eXD0IU0MNWy7Mtbs3UZDoGmwOSwc7osCmyibmpLlwWOhseXEsCZ+s67R4xaCSmxUP91baYeW78vRFk34CK6wcuJ6 8x5SJQETL5WPNyFZLKFttTw6H X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501046)(3002001); SRVR:DM2PR02MB302; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB302; X-Forefront-PRVS: 0775716B9D X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjAyTUIzMDI7MjM6eHhxNEN1UGxpRnVXSFlkem5aMnBxeWROd1Fm?= =?utf-8?B?amFUUUE0RHAwZVVIUkFzZUtrN3lObDViVGdMeldJZ1NEOEZQaldYckRUK2NY?= =?utf-8?B?QmNmTi9WM1VVa2NGcUxlLzhtamZIc010dDg5TnJsVTdlZEJJRjNaanJpUldS?= =?utf-8?B?ZnBRRWFvQ0dzSU1aYi9HMWtrUmlJR1g2YmFUYjJmLzFJdG84MGVNOUJtMjJ3?= =?utf-8?B?Q2NnUzN0VjQxaWpZVnZ5LzkxMjhLTzdHSlNHMXZ4dXp1dTZhNkJOWEV2OVk5?= =?utf-8?B?Smk4VkU2dTdmbkhQSEpNVzh6eWVMRlI0bEo3QkRzTGZveHJIaDBkVGtQc1Zq?= =?utf-8?B?aVFjdmhjam5TYmVkRzZxaFFwdXppc1NlQm9laEpBU09nY3k5RnhRVVduaTE3?= =?utf-8?B?cGo3MFZWQkZqMGZzMXdubTlTM2NRRHc5Z0F4R1o2ZUNibmZxK1lQclFkMUw1?= =?utf-8?B?VDhrRkUybTR5Z01NSXNQU3Ryb1BYaktsUlpxS09OZ3RQVkJwVmN1dlVqMjZk?= =?utf-8?B?dTl3bmVlNWFCY3VEbzZhSG1FNkhmZzlrZDVHZ2EyWHBPWE5NdXBJZ056c1Fa?= =?utf-8?B?V1dTOVk3eG1hRHVEaEhQb3dOc2l4T2JPL29SSWVnOGVsaXJRNGtBaXQrdjFR?= =?utf-8?B?N01TSVBQSmlNYThRY3hBcHZ0d3k2WVNzRWxCanh6SHcvQk1UbFU1alVJNVFy?= =?utf-8?B?NDlsME4yWWMyT2NFdlljak95QUU2M3FCSEQrdklkU1ZmZmk1eWxnWEE5ZEVj?= =?utf-8?B?N0VneUh6M3M5QWpWQjVGcnk5dytqVDRBdVRjUHQwSUI1OExVMjQ5S0VKTXNO?= =?utf-8?B?ckpNNTkvdlowSVM0aHo4SHNXNHA2WlJ1RHpla3U0bGFrTXFoUjRkSVd4bEli?= =?utf-8?B?SmlHczdpWE1kcU5DaFd2OFpLUUF4dWhVNlF2YWVlOXhHYmlqUTlTeC9RcEJN?= =?utf-8?B?eXNKMVJUUHdQZTRseGJiVEVKclU3elk4L1VQSG9ZWUZER2lxUGUzNlUralBG?= =?utf-8?B?NlM2cnRxV2FydVlBSVVSNGtzNnRiM3M3U2hvQ1VHYSsrOEhTTHFOQUQyWEJC?= =?utf-8?B?dlFZZHVlUWhlOGtEWXZqTFpUS0ZzdFR4TEIycTNpSXFBVjZMaUUwMWsyZFlu?= =?utf-8?B?QkhPcFpLc0hvN2ZYV1pIY0tIT2ljM0grclY4alQvTzZWQVNoRFh1MUtwNVZr?= =?utf-8?B?ZkRmS2NGblg0RWhkZURkNm56Y3VpMXpsREp5K3VDejArWW56TmZrYlN1MDBY?= =?utf-8?B?SU1HMVNpcU9laTQxdXdiczE4Z0dzMHJMUmRiSXlyWTByOGY0MTVMRkxLdnpX?= =?utf-8?B?YW9aR0xtb3J3Yk9MVVNnOGtPUGpmcFpla3dxS0RCbXBwQVhyN0Q4QWE1WmtN?= =?utf-8?B?Zi9EakxQMmpNWUdMMytxdlNMMEpiV2Q5NENMeTJCckxQTjhrdnUvdFFxRVph?= =?utf-8?B?RnVzSmJuaWpIQjdZSU9mdXZkZVpERFhzVVdoM1hpTTZkYm9FUUkyRENBbUI5?= =?utf-8?B?RHlpVnUyYVJCQlJtMzM5ZTZvcHVQT2Jrd2VSTmlwS3BoVC85eUIrMTFiU0Qr?= =?utf-8?Q?QwwpIh0sYch/pmKMX1X1az5cKAX1H4QAeTZtzghzgxw=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR02MB302; 5:LWmlyZ/Vp7oFCPK5qHF0Tbz431MELRJizDtH3pcVZnJKMMKJPGM/pjlQkhn9AYcWhxn+6E8pvas8X+w8BhPrBDJ38D//ppOLF6ZuOVRIzQtewcq3K16il2+zUic9bGry/D5vogjYFweq8lu28cv/Gg==; 24:yhW4vYCz1c9b6TxMajvgkhnU/8lmSDh/TNefHvGu+RwqfuL68LOI3FmdfT2hu0vxGgyMK0F6CLC7InoGaY7+53vd7vBvQsBSPae5b9eS4Xs=; 20:YzdOvn+PFmBT9tiYah1x9zQajFl7Lonafw6IkZ07MK7440VW2tbmWdqd3vZma7eqM3ARiZCl80TDV90ASP7cn40zxpCaIZER/7d5SzKoVQ8XqkbUsf1YGC+KeuGGRsgm/8kxGbQDbakkG9V/ZoHtq9YdMTXxQ+3yVMWTMoX08oxFyZRkfbTRejL3AX7l8dViRqqUfUCcSLJ+qqf2Xksicjp4yDcbV6MRj/xnIiEYhrQ7VFl9VVZi4LAPyZIOENQ9 SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2015 19:45:44.7727 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.173]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR02MB302 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Recent gcc versions emit a warning if a variable is set but not used. Suppress these warnings by removing dummy assignments to unused arguments. Additionally, enable the compiler command-line option -Wno-unused-parameter and remove the '(void)arg' statements that thereby became superfluous. Signed-off-by: Bart Van Assche --- cmdif/tools_cif.c | 1 - cmdparser/my_getopt.c | 3 - common/compatibility.h | 7 + flint/Makefile.am | 2 +- flint/subcommands.cpp | 5 - mflash/Makefile.am | 2 +- mflash/mflash.c | 15 +- mlxconfig/Makefile.am | 2 +- mlxconfig/mlxcfg_param_lib.cpp | 19 - mlxconfig/mlxcfg_param_lib.h | 10 +- mlxconfig/mlxcfg_ui.cpp | 1 - mlxfwops/lib/Makefile.am | 2 +- mlxfwops/lib/flint_io.cpp | 5 +- mlxfwops/lib/fs2_ops.cpp | 31 -- mlxfwops/lib/fs3_ops.cpp | 17 +- mlxfwops/lib/fw_ops.cpp | 4 - mtcr_ul/Makefile.am | 2 +- mtcr_ul/mtcr_ib_ofed.c | 1 - mtcr_ul/mtcr_ul.c | 22 +- mtcr_ul/mtcr_ul_icmd_cif.c | 1 - small_utils/mcra.c | 1 - tools_layouts/cibfw_layouts.c | 249 ---------- tools_layouts/cx4fw_layouts.c | 95 ---- tools_layouts/register_access_open_layouts.c | 49 -- tools_layouts/register_access_sib_layouts.c | 97 ---- tools_layouts/tools_open_layouts.c | 685 --------------------------- 26 files changed, 25 insertions(+), 1303 deletions(-) diff --git a/cmdif/tools_cif.c b/cmdif/tools_cif.c index c6afc68..d767ada 100644 --- a/cmdif/tools_cif.c +++ b/cmdif/tools_cif.c @@ -132,7 +132,6 @@ const char* tcif_err2str(MError rc) { MError tcif_cr_mbox_supported(mfile* dev) { #if defined(__FreeBSD__) || defined(UEFI_BUILD) - (void)dev; return ME_NOT_IMPLEMENTED; #else return tools_cmdif_is_cr_mbox_supported(dev); diff --git a/cmdparser/my_getopt.c b/cmdparser/my_getopt.c index be6281d..6e64b35 100755 --- a/cmdparser/my_getopt.c +++ b/cmdparser/my_getopt.c @@ -394,9 +394,6 @@ /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ - // avoid compiler warnings - (void) argc; - (void) argv; first_nonopt = last_nonopt = tools_optind; nextchar = NULL; diff --git a/common/compatibility.h b/common/compatibility.h index 8dc85e3..8f3b4d5 100644 --- a/common/compatibility.h +++ b/common/compatibility.h @@ -215,6 +215,13 @@ #endif /* + * Windows (Microsoft C Compiler) + */ +#ifdef _MSC_VER +#pragma warning (disable: 4100) // 'identifier' : unreferenced formal parameter +#endif + +/* * Windows (CYGWIN) */ #if defined(__CYGWIN32__) diff --git a/flint/Makefile.am b/flint/Makefile.am index 96bb6ad..5ae5ee5 100755 --- a/flint/Makefile.am +++ b/flint/Makefile.am @@ -41,7 +41,7 @@ CMDIF_DIR = $(top_srcdir)/cmdif AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir) -I$(MTCR_DIR) -I$(MFLASH_DIR) -I$(COMMON_DIR) \ -I$(LAYOUTS_DIR) -I$(MFT_UTILS_DIR) -mstflint_CXXFLAGS = -Wall -W -g -MP -MD -pipe -DEXTERNAL +mstflint_CXXFLAGS = -Wall -Wextra -Wno-unused-parameter -g -MP -MD -pipe -DEXTERNAL bin_PROGRAMS = mstflint mstflint_SOURCES = flint.cpp flint.h subcommands.cpp subcommands.h\ diff --git a/flint/subcommands.cpp b/flint/subcommands.cpp index 91400a5..5b60334 100644 --- a/flint/subcommands.cpp +++ b/flint/subcommands.cpp @@ -981,10 +981,6 @@ bool SubCommand::unzipDataFile (std::vector data, std::vector& data, con bool SubCommand::checkGuidsFlags (chip_type_t ct, u_int16_t devType, u_int8_t fwType, bool guidsSpecified, bool macsSpecified, bool uidsSpecified, bool ibDev, bool ethDev) { - (void)ibDev; if (guidsSpecified || macsSpecified || uidsSpecified) { if (ct == CT_BRIDGEX) { if (macsSpecified || guidsSpecified) { diff --git a/mflash/Makefile.am b/mflash/Makefile.am index c45351a..12da860 100644 --- a/mflash/Makefile.am +++ b/mflash/Makefile.am @@ -34,7 +34,7 @@ AM_CPPFLAGS= -I. -I$(top_srcdir)/include/mtcr_ul -I$(top_srcdir)/common -I$(top_srcdir)/tools_layouts -I$(top_srcdir)/reg_access \ -I$(top_srcdir)/cmdif -I$(top_srcdir)/tools_res_mgmt -AM_CFLAGS = -MD -pipe -Wall -W -DMST_UL -g ${MFLASH_INBAND_FLAG} +AM_CFLAGS = -MD -pipe -Wall -Wextra -Wno-unused-parameter -DMST_UL -g ${MFLASH_INBAND_FLAG} noinst_LIBRARIES = libmflash.a diff --git a/mflash/mflash.c b/mflash/mflash.c index c039127..4174f39 100644 --- a/mflash/mflash.c +++ b/mflash/mflash.c @@ -100,9 +100,7 @@ #include #define TIMER_INIT()\ SYSTEMTIME _start, _end;\ - int _diff_in_sec, _diff_in_ms;\ - (void)_diff_in_sec;\ - (void)_diff_in_ms + int _diff_in_sec, _diff_in_ms; #define TIMER_START()\ GetSystemTime(&_start) #define TIMER_STOP()\ @@ -1027,7 +1025,6 @@ enum CrConstans { int gw_wait_ready(mflash* mfl, const char* msg) { u_int32_t gw_cmd; u_int32_t cnt = 0; - (void)msg; // NOT USED FOR NOW do { // Timeout checks if (++cnt > FLASH_CMD_CNT) { @@ -1044,7 +1041,6 @@ int gw_wait_ready(mflash* mfl, const char* msg) { int empty_reset (mflash* mfl) { - (void)mfl; /* avoid compiler warning */ return MFE_OK; } @@ -1098,8 +1094,6 @@ enum CntxCrConstants{ int empty_set_bank(mflash* mfl, u_int32_t bank) { // NULL function - No actual work here - in ConnectX the curr_bank is written in the command word. - (void)mfl; // Avoid Compiler warning - (void)bank; // Avoid Compiler warning return MFE_OK; } @@ -1425,7 +1419,6 @@ int spi_update_num_of_banks(mflash* mfl, int prev_num_of_flashes) int cntx_st_spi_reset (mflash* mfl) { - (void)mfl; return MFE_OK; } @@ -1836,7 +1829,6 @@ int cntx_flash_init_direct_access(mflash* mfl, flash_params_t* flash_params) { // InfiniScale 4 (IS4) functions: int is4_init_gpios(mflash* mfl) { - (void)mfl; return MFE_NOT_IMPLEMENTED; } @@ -2112,11 +2104,6 @@ int sx_erase_sect(mflash* mfl, u_int32_t addr) int empty_get_status(mflash* mfl, u_int8_t op_type, u_int8_t* status) { - // Avoid warnings - (void)mfl; - (void)op_type; - (void)status; - return MFE_NOT_SUPPORTED_OPERATION; } diff --git a/mlxconfig/Makefile.am b/mlxconfig/Makefile.am index c9189aa..11865a4 100755 --- a/mlxconfig/Makefile.am +++ b/mlxconfig/Makefile.am @@ -45,7 +45,7 @@ CMDIF_DIR = $(USER_DIR)/cmdif AM_CPPFLAGS = -I. -I$(USER_DIR) -I$(top_srcdir)/include/mtcr_ul -I$(MTCR_DIR) -I$(COMMON_DIR) $(WIN64_INC)\ -I $(LAYOUTS_DIR) -I $(UTILS_DIR) -I$(DEV_MGT_DIR) -I$(CMDIF_DIR) -AM_CXXFLAGS = -Wall -W -g -MP -MD -pipe +AM_CXXFLAGS = -Wall -Wextra -Wno-unused-parameter -g -MP -MD -pipe bin_PROGRAMS = mstconfig mstconfig_LDADD = $(CMDIF_DIR)/libcmdif.a ../reg_access/libreg_access.a $(LAYOUTS_LIB) $(MTCR_DIR)/libmtcr_ul.a $(MLNXOS_PPC_LIBS) $(LIBSTD_CPP) $(UTILS_LIB) $(DEV_MGT_DIR)/libdev_mgt.a -ldl diff --git a/mlxconfig/mlxcfg_param_lib.cpp b/mlxconfig/mlxcfg_param_lib.cpp index d5481ee..ead193c 100644 --- a/mlxconfig/mlxcfg_param_lib.cpp +++ b/mlxconfig/mlxcfg_param_lib.cpp @@ -399,7 +399,6 @@ bool CfgParams::checkCfg(mfile* mf) bool CfgParams::softLimitCheck(mfile* mf) { // by default not implemented - (void)mf; return true; } @@ -455,8 +454,6 @@ bool SriovParams::hardLimitCheck() bool SriovParams4thGen::cfgSupported(mfile* mf, mlxCfgParam param) { - (void)mf; - (void)param; return _devCapVec & SRIOV_MASK; } @@ -624,8 +621,6 @@ u_int32_t WolParams4thGen::getParam(mlxCfgParam paramType) bool WolParams4thGen::cfgSupported(mfile* mf, mlxCfgParam param) { - (void)mf; - (void)param; return ((_devCapVec & WOL_P1_MASK) && _port == 1) || ((_devCapVec & WOL_P2_MASK) && _port == 2 ); } @@ -722,7 +717,6 @@ u_int32_t WolParams5thGen::getParam(mlxCfgParam paramType) bool WolParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) { MError rc; - (void)param; bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getTlvTypeBe(), suppRead, suppWrite); if (rc) { @@ -810,8 +804,6 @@ bool BarSzParams::hardLimitCheck() bool BarSzParams4thGen::cfgSupported(mfile* mf, mlxCfgParam param) { - (void)mf; - (void)param; return _devCapVec & BAR_SZ_MASK ; } @@ -1028,8 +1020,6 @@ u_int32_t VpiParams4thGen::getParam(mlxCfgParam paramType) bool VpiParams4thGen::cfgSupported(mfile* mf, mlxCfgParam param) { - (void)mf; - (void)param; return ((_devCapVec & VPI_P1_MASK) && _port == 1) || ((_devCapVec & VPI_P2_MASK) && _port == 2); } @@ -1118,7 +1108,6 @@ bool VpiParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) // get mtcr functions for this device (physical) // compare with port // send nvqc and check - (void)param; MError rc; bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getTlvTypeBe(), suppRead, suppWrite); @@ -1400,7 +1389,6 @@ bool PciParams5thGen::hardLimitCheck() bool TptParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) { MError rc; - (void)param; bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getTptCapabilitiesTlvTypeBe(), suppRead, suppWrite); if (rc) { @@ -1560,7 +1548,6 @@ bool TptParams5thGen::hardLimitCheck() bool InfinibandBootSettingsParams4thGen::cfgSupported(mfile* mf, mlxCfgParam param) { - (void)param; struct tools_open_query_def_params_per_port portParams; int rc; rc = getDefaultParams4thGen(mf, _port, &portParams); @@ -1667,7 +1654,6 @@ bool InfinibandBootSettingsParams4thGen::hardLimitCheck() bool IBDCParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) { MError rc; - (void)param; bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getDcCapabilitiesTlvTypeBe(), suppRead, suppWrite); if (rc) { @@ -1802,7 +1788,6 @@ void IBDCParams5thGen::updateClassAttrFromTlv(void* tlv) bool PortBootStateParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) { MError rc; - (void)param; bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getTlvTypeBe(), suppRead, suppWrite); if (rc) { @@ -1889,7 +1874,6 @@ void PortBootStateParams5thGen::updateClassAttrFromTlv(void* tlv) bool RoCENextProtocolParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) { MError rc; - (void)param; bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getTlvTypeBe(), suppRead, suppWrite); if (rc) { @@ -1975,7 +1959,6 @@ void RoCENextProtocolParams5thGen::updateClassAttrFromTlv(void* tlv) bool RoCECCParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) { MError rc; - (void)param; bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getTlvTypeBe(), suppRead, suppWrite); if (rc) { @@ -2072,7 +2055,6 @@ void RoCECCParams5thGen::updateClassAttrFromTlv(void* tlv) bool RoCECCEcnParams5thGen::cfgSupported(mfile* mf, mlxCfgParam param) { MError rc; - (void)param; bool suppRead, suppWrite; rc = nvqcCom5thGen(mf, getTlvTypeBe(), suppRead, suppWrite); if (rc) { @@ -2494,7 +2476,6 @@ void RoCECCEcnParams5thGen::updateClassAttrFromTlv(void* tlv) bool PrebootBootSettingsParams4thGen::cfgSupported(mfile* mf, mlxCfgParam param) { - (void)param; struct tools_open_query_def_params_per_port portParams; int rc; rc = getDefaultParams4thGen(mf, _port, &portParams); diff --git a/mlxconfig/mlxcfg_param_lib.h b/mlxconfig/mlxcfg_param_lib.h index 3c1257b..7cf2819 100644 --- a/mlxconfig/mlxcfg_param_lib.h +++ b/mlxconfig/mlxcfg_param_lib.h @@ -252,8 +252,14 @@ protected: int getDefaultParams4thGen(mfile* mf, struct tools_open_query_def_params_global* global_params); int getDefaultParams4thGen(mfile* mf, int port, struct tools_open_query_def_params_per_port* port_params); - virtual void updateTlvFromClassAttr(void* tlv) {(void)tlv; throw std::logic_error("Function Not Implemented");} - virtual void updateClassAttrFromTlv(void* tlv) {(void)tlv; throw std::logic_error("Function Not Implemented");} + virtual void updateTlvFromClassAttr(void* tlv) + { + throw std::logic_error("Function Not Implemented"); + } + virtual void updateClassAttrFromTlv(void* tlv) + { + throw std::logic_error("Function Not Implemented"); + } u_int64_t _devCapVec; // relevant for 4th gen devices bool _updated; // set true on get and false on set diff --git a/mlxconfig/mlxcfg_ui.cpp b/mlxconfig/mlxcfg_ui.cpp index f78132a..2393992 100644 --- a/mlxconfig/mlxcfg_ui.cpp +++ b/mlxconfig/mlxcfg_ui.cpp @@ -302,7 +302,6 @@ mlxCfgStatus MlxCfg::queryDevCfg(const char* dev,const char* pci, int devIndex, bool rc; bool failedToGetCfg = false; bool nothingSupported = true; - (void) pci; // print opening printf("\nDevice #%d:\n", devIndex); printf("----------\n\n"); diff --git a/mlxfwops/lib/Makefile.am b/mlxfwops/lib/Makefile.am index c04d333..31c81d0 100755 --- a/mlxfwops/lib/Makefile.am +++ b/mlxfwops/lib/Makefile.am @@ -45,7 +45,7 @@ AM_CPPFLAGS = -I$(srcdir) -I$(MTCR_INC_DIR) -I$(MFLASH_DIR) -I$(top_srcdir)/ext_ MLXFWOPS_VERSION = 1 -AM_CXXFLAGS = -Wall -W -g -MP -MD -pipe -DNO_MFA_SUPPORT +AM_CXXFLAGS = -Wall -Wextra -Wno-unused-parameter -g -MP -MD -pipe -DNO_MFA_SUPPORT noinst_LIBRARIES = libmlxfwops.a diff --git a/mlxfwops/lib/flint_io.cpp b/mlxfwops/lib/flint_io.cpp index 5cb77c5..1dfd115 100755 --- a/mlxfwops/lib/flint_io.cpp +++ b/mlxfwops/lib/flint_io.cpp @@ -67,7 +67,6 @@ bool FImage::open(const char *fname, bool read_only, bool advErr) int r_cnt; FILE *fh; - (void)read_only; // FImage can be opened only for read so we ignore compiler warnings _advErrors = advErr; fh = fopen(fname, "rb"); @@ -276,9 +275,9 @@ bool Flash::open(const char *device, bool force_lock, bool read_only, int num_of { // Open device int rc; + _advErrors = advErr; _ignore_cache_replacement = ignore_cashe_replacement ? true : false; - (void)read_only; // not used , avoid compiler warnings TODO: remove this var from function def rc = mf_open_adv(&_mfl, device, num_of_banks, flash_params, ignore_cashe_replacement, cx3_fw_access); //printf("device: %s , forceLock: %s , read only: %s, num of banks: %d, flash params is null: %s, ocr: %d, rc: %d\n", // device, force_lock? "true":"false", read_only?"true":"false", num_of_banks, flash_params? "no":"yes", ignore_cashe_replacement, rc); @@ -421,8 +420,6 @@ bool Flash::write_phy(u_int32_t phy_addr, u_int32_t data) bool Flash::write_phy(u_int32_t phy_addr, void* data, int cnt, bool noerase) { - // Avoid warning - (void)noerase; NATIVE_PHY_ADDR_FUNC(write_with_erase, (phy_addr, data, cnt)); } diff --git a/mlxfwops/lib/fs2_ops.cpp b/mlxfwops/lib/fs2_ops.cpp index c3151ad..79851fa 100644 --- a/mlxfwops/lib/fs2_ops.cpp +++ b/mlxfwops/lib/fs2_ops.cpp @@ -572,9 +572,6 @@ bool Fs2Operations::Fs2Verify(VerifyCallBack verifyCallBackFunc, bool is_striped } bool Fs2Operations::FwVerify(VerifyCallBack verifyCallBackFunc, bool isStripedImage, bool showItoc) { - // avoid compiler warrning (showItoc is not used in fs2) - (void)showItoc; - initSectToRead(FULL_VERIFY); if (!Fs2Verify(verifyCallBackFunc, isStripedImage)) { // empty the initSectToRead @@ -852,10 +849,6 @@ bool Fs2Operations::Fs2FailSafeBurn(Fs2Operations &imageOps, bool allow_nofs, const char* pre_message, ProgressCallBack progressFunc) { - //we do not use pre_message, avoid warrning - //TODO: remove pre_message from function definition - (void)pre_message; - Flash *f = (Flash*)(this->_ioAccess); FImage *fim = (FImage*)(imageOps._ioAccess); @@ -1498,17 +1491,11 @@ bool Fs2Operations::FwReadRom(std::vector& romSect) bool Fs2Operations::FwSetMFG(fs3_uid_t baseGuid, PrintCallBack callBackFunc) { - // avoid compiler warrnings - (void)baseGuid; - (void)callBackFunc; return errmsg("This command is not supported for FS2 FW image."); } bool Fs2Operations::FwSetMFG(guid_t baseGuid, PrintCallBack callBackFunc) { - // avoid compiler warrnings - (void)baseGuid; - (void)callBackFunc; return errmsg("This command is not supported for FS2 FW image."); } @@ -1534,7 +1521,6 @@ bool Fs2Operations::FwGetSection (u_int32_t sectType, std::vector& sec bool Fs2Operations::ModifyVSDSection(const char *vsd, ProgressCallBack callBackFunc) { - (void)callBackFunc; /* avoid compiler warning*/ u_int32_t length = _fwImgInfo.lastImageAddr; vector data(length); @@ -1732,9 +1718,6 @@ bool Fs2Operations::Fs2SetGuidsForBlank(sg_params_t& sgParam) bool Fs2Operations::Fs2SetGuids(sg_params_t& sgParam, PrintCallBack callBackFunc, ProgressCallBack progressFunc) { - // avoid compiler warrnings - (void)callBackFunc; - // bool ib_dev, eth_dev, bx_dev; // Get the FW types bx_dev = _fwImgInfo.ext_info.chip_type == CT_BRIDGEX; @@ -1762,10 +1745,6 @@ bool Fs2Operations::Fs2SetGuids(sg_params_t& sgParam, PrintCallBack callBackFunc bool Fs2Operations::FwSetGuids(sg_params_t& sgParam, PrintCallBack callBackFunc, ProgressCallBack progressFunc) { - /* avoid annoying mingw warnings*/ - (void)callBackFunc; - (void)progressFunc; - if (!Fs2IntQuery(true, sgParam.stripedImage)) { return false; } @@ -1924,9 +1903,6 @@ bool Fs2Operations::FwDeleteRom(bool ignoreProdIdCheck, ProgressCallBack progres bool Fs2Operations::FwSetVSD(char* vsdStr, ProgressCallBack progressFunc, PrintCallBack printFunc) { - // avoid compiler warrnings - (void)printFunc; - // if (!Fs2IntQuery()) { return false; } @@ -1951,16 +1927,11 @@ bool Fs2Operations::FwSetVSD(char* vsdStr, ProgressCallBack progressFunc, PrintC bool Fs2Operations::FwSetVPD(char* vpdFileStr, PrintCallBack callBackFunc) { - // avoid compiler warrnings - (void)vpdFileStr; - (void)callBackFunc; return errmsg("Setting VPD is not supported in FS2 image format."); } bool Fs2Operations::FwSetAccessKey(hw_key_t userKey, ProgressCallBack progressFunc) { - /*avoid compiler warning*/ - (void)progressFunc; if (!Fs2IntQuery()) { return false; } @@ -2040,8 +2011,6 @@ bool Fs2Operations::FwResetNvData() bool Fs2Operations::FwShiftDevData(PrintCallBack progressFunc) { - // avoid compiler warrnings - (void)progressFunc; return errmsg("Shifting device data sections is not supported in FS2 image format."); } diff --git a/mlxfwops/lib/fs3_ops.cpp b/mlxfwops/lib/fs3_ops.cpp index f60cdb6..f71c5bc 100644 --- a/mlxfwops/lib/fs3_ops.cpp +++ b/mlxfwops/lib/fs3_ops.cpp @@ -217,7 +217,6 @@ bool Fs3Operations::GetImageInfo(u_int8_t *buff) // TODO: adrianc: use the version fields once they are available in tools layouts GET_IMAGE_INFO_VERSION(buff, IIMajor, IIMinor); - (void)IIMinor; if (!CHECK_IMAGE_INFO_VERSION(IIMajor)) { return errmsg(MLXFW_UNKNOWN_SECT_VER_ERR, "Unknown IMAGE_INFO format version (%d.%d).", IIMajor, IIMinor); } @@ -467,9 +466,6 @@ bool Fs3Operations::VerifyTOC(u_int32_t dtoc_addr, bool& bad_signature, VerifyCa bool Fs3Operations::FwVerify(VerifyCallBack verifyCallBackFunc, bool isStripedImage, bool showItoc) { - //dummy assignment to avoid compiler warrning (isStripedImage is not used in fs3) - (void)isStripedImage; - struct QueryOptions queryOptions; queryOptions.readRom = true; queryOptions.quickQuery = false; @@ -628,8 +624,6 @@ bool Fs3Operations::Fs3IntQuery(bool readRom, bool quickQuery) bool Fs3Operations::FwQuery(fw_info_t *fwInfo, bool readRom, bool isStripedImage) { //isStripedImage flag is not needed in FS3 image format - // Avoid warning - no striped image in FS3 - (void)isStripedImage; if (!Fs3IntQuery(readRom)) { return false; } @@ -1152,9 +1146,6 @@ bool Fs3Operations::FwBurnAdvanced(FwOperations *imageOps, ExtBurnParams& burnPa bool Fs3Operations::FwBurnBlock(FwOperations *imageOps, ProgressCallBack progressFunc) { - // Avoid Warning! - (void)imageOps; - (void)progressFunc; return errmsg("FwBurnBlock is not supported anymore in FS3 image."); } @@ -1200,7 +1191,6 @@ bool Fs3Operations::FwReadRom(std::vector& romSect) bool Fs3Operations::FwGetSection (u_int32_t sectType, std::vector& sectInfo, bool stripedImage) { - (void) stripedImage; // unused for FS3 //FwGetSection only supports retrieving FS3_DBG_FW_INI section atm. if (sectType != FS3_DBG_FW_INI) { return errmsg("Unsupported section type."); @@ -1256,9 +1246,8 @@ bool Fs3Operations::FwSetMFG(guid_t baseGuid, PrintCallBack callBackFunc) bool Fs3Operations::FwSetGuids(sg_params_t& sgParam, PrintCallBack callBackFunc, ProgressCallBack progressFunc) { fs3_uid_t usrGuid; + memset(&usrGuid, 0, sizeof(usrGuid)); - // Avoid Warning because there is no need for progressFunc - (void)progressFunc; if (sgParam.userGuids.empty()) { return errmsg("Base GUID not found."); } @@ -1914,8 +1903,6 @@ bool Fs3Operations::Fs3UpdateSection(void *new_info, fs3_section_t sect_type, b bool Fs3Operations::FwSetVSD(char* vsdStr, ProgressCallBack progressFunc, PrintCallBack printFunc) { - // Avoid warning - (void)progressFunc; if (!vsdStr) { return errmsg("Please specify a valid VSD string."); } @@ -1936,8 +1923,6 @@ bool Fs3Operations::FwSetVSD(char* vsdStr, ProgressCallBack progressFunc, PrintC bool Fs3Operations::FwSetAccessKey(hw_key_t userKey, ProgressCallBack progressFunc) { - (void)userKey; - (void)progressFunc; return errmsg("Set access key not supported."); } diff --git a/mlxfwops/lib/fw_ops.cpp b/mlxfwops/lib/fw_ops.cpp index 6ebcea3..0546fce 100644 --- a/mlxfwops/lib/fw_ops.cpp +++ b/mlxfwops/lib/fw_ops.cpp @@ -1043,10 +1043,6 @@ void FwOperations::WriteToErrBuff(char* errBuff, const char* errStr, int size) bool FwOperations::UpdateImgCache(u_int8_t *buff, u_int32_t addr, u_int32_t size) { - //avoid compiler warrnings - (void)buff; - (void)addr; - (void)size; //in FS2 we dont have ImgCache, just in FS3 so we define a defult behaviour. return true; } diff --git a/mtcr_ul/Makefile.am b/mtcr_ul/Makefile.am index 63c7d72..b2fc41e 100644 --- a/mtcr_ul/Makefile.am +++ b/mtcr_ul/Makefile.am @@ -40,7 +40,7 @@ libmtcr_ul_a_SOURCES = mtcr_ul.c mtcr_ib.h mtcr_int_defs.h\ mtcr_ul_icmd_cif.c mtcr_icmd_cif.h\ packets_common.c packets_common.h\ packets_layout.c packets_layout.h -libmtcr_ul_a_CFLAGS = -W -Wall -g -MP -MD -fPIC -DMTCR_API="" -DMST_UL +libmtcr_ul_a_CFLAGS = -Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing -g -MP -MD -fPIC -DMTCR_API="" -DMST_UL if ENABLE_INBAND libmtcr_ul_a_SOURCES += mtcr_ib_ofed.c diff --git a/mtcr_ul/mtcr_ib_ofed.c b/mtcr_ul/mtcr_ib_ofed.c index 31f0a1e..f6d0096 100644 --- a/mtcr_ul/mtcr_ib_ofed.c +++ b/mtcr_ul/mtcr_ib_ofed.c @@ -432,7 +432,6 @@ int process_dynamic_linking(ibvs_mad *ivm, int mad_init) char* libs[] = {"libibmad.so.5"}; u_int32_t i; - (void)mad_init; for (i = 0; i < sizeof(libs)/sizeof(libs[0]) ; i++) { ivm->dl_handle = dlopen (libs[i], RTLD_LAZY); if (ivm->dl_handle) { diff --git a/mtcr_ul/mtcr_ul.c b/mtcr_ul/mtcr_ul.c index b97d310..7b16f02 100644 --- a/mtcr_ul/mtcr_ul.c +++ b/mtcr_ul/mtcr_ul.c @@ -1136,8 +1136,6 @@ int mtcr_inband_open(mfile* mf, const char* name) return mib_open(name,mf,0); #else - (void) name; - (void) mf; errno = ENOSYS; return -1; #endif @@ -1244,7 +1242,6 @@ name_parsed: *force = 0; #ifdef __aarch64__ // on ARM processors MMAP not supported - (void)force_config; // avoid warrnings return MTCR_ACCESS_CONFIG; #else if (force_config) { @@ -1276,14 +1273,12 @@ int msw_reset(mfile *mf) return -1; } #else - (void)mf; return -1; #endif } int mhca_reset(mfile *mf) { - (void)mf; errno = ENOTSUP; return -1; } @@ -1515,7 +1510,6 @@ next: void mdevices_info_destroy(dev_info* dev_info, int len) { - (void)len; if (dev_info) free(dev_info); } @@ -1757,8 +1751,6 @@ mfile *mopen_fw_ctx(void* fw_cmd_context, void* fw_cmd_func, void* extra_data) unsigned char mset_i2c_slave(mfile *mf, unsigned char new_i2c_slave) { - (void)mf; - (void)new_i2c_slave; /* compiler warning */ fprintf(stderr, "Warning: libmtcr: mset_i2c_slave() is not implemented and has no effect.\n"); return 0; } @@ -1796,13 +1788,12 @@ int get_inband_dev_from_pci(char* inband_dev, char* pci_dev) { unsigned domain = 0, bus = 0, dev = 0, func = 0; int force = 0; - enum mtcr_access_method access; DIR* d; struct dirent *dir; char dirname[DEV_DIR_MAX_SIZE], subdirname[DEV_DIR_MAX_SIZE], linkname[DEV_DIR_MAX_SIZE]; int found = 0; - access = mtcr_parse_name(pci_dev, &force, &domain, &bus, &dev, &func); + mtcr_parse_name(pci_dev, &force, &domain, &bus, &dev, &func); strcpy(dirname, "/sys/class/infiniband"); d = opendir(dirname); @@ -1819,7 +1810,7 @@ int get_inband_dev_from_pci(char* inband_dev, char* pci_dev) } sprintf(subdirname, "%s/%s/device", dirname, dir->d_name); link_size = readlink(subdirname, linkname, DEV_DIR_MAX_SIZE); - access = mtcr_parse_name(&linkname[link_size - BDF_NAME_SIZE], &curr_force, &curr_domain, &curr_bus, &curr_dev, &curr_func); + mtcr_parse_name(&linkname[link_size - BDF_NAME_SIZE], &curr_force, &curr_domain, &curr_bus, &curr_dev, &curr_func); if (domain == curr_domain && bus == curr_bus && dev == curr_dev && func == curr_func) { sprintf(inband_dev, "ibdr-0,%s,1", dir->d_name); @@ -1829,7 +1820,6 @@ int get_inband_dev_from_pci(char* inband_dev, char* pci_dev) } closedir(d); - (void)access; // avoid compiler warrnings if (found) { return 0; } else { @@ -1879,20 +1869,12 @@ int maccess_reg_mad(mfile *mf, u_int8_t *data) int mos_reg_access(mfile *mf, int reg_access, void *reg_data, u_int32_t cmd_type) { - (void)mf; - (void)reg_data; /* compiler warning */ - (void)cmd_type; /* compiler warning */ - (void)reg_access; /* compiler warning */ fprintf(stderr, "Warning: libmtcr: mos_reg_access() is not implemented and has no effect.\n"); return ME_NOT_IMPLEMENTED; } int maccess_reg_cmdif(mfile *mf, reg_access_t reg_access, void *reg_data, u_int32_t cmd_type) { - (void)mf; - (void)reg_data; /* compiler warning */ - (void)cmd_type; /* compiler warning */ - (void)reg_access; /* compiler warning */ fprintf(stderr, "Warning: libmtcr: maccess_reg_cmdif() is not implemented and has no effect.\n"); return ME_NOT_IMPLEMENTED; } diff --git a/mtcr_ul/mtcr_ul_icmd_cif.c b/mtcr_ul/mtcr_ul_icmd_cif.c index f44f5a2..c54088f 100644 --- a/mtcr_ul/mtcr_ul_icmd_cif.c +++ b/mtcr_ul/mtcr_ul_icmd_cif.c @@ -453,7 +453,6 @@ cleanup: static int icmd_init_cr(mfile *mf) { - (void)mf; return ME_NOT_IMPLEMENTED; } diff --git a/small_utils/mcra.c b/small_utils/mcra.c index 2fc9a30..85b30a1 100644 --- a/small_utils/mcra.c +++ b/small_utils/mcra.c @@ -112,7 +112,6 @@ int main(int argc, char *argv[]) } exit(0); #endif - (void)rc; // avoid warnings (we dont use it just assign) // Parse cmd line: if (argc < 2) { usage(argv[0], 1); diff --git a/tools_layouts/cibfw_layouts.c b/tools_layouts/cibfw_layouts.c index d72ee07..8e49163 100644 --- a/tools_layouts/cibfw_layouts.c +++ b/tools_layouts/cibfw_layouts.c @@ -39,11 +39,6 @@ void cibfw_uint64_pack(const struct cibfw_uint64 *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->hi); @@ -55,13 +50,6 @@ void cibfw_uint64_pack(const struct cibfw_uint64 *ptr_struct, u_int8_t* ptr_buff void cibfw_uint64_unpack(struct cibfw_uint64 *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->hi = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -74,10 +62,6 @@ void cibfw_uint64_unpack(struct cibfw_uint64 *ptr_struct, const u_int8_t* ptr_bu void cibfw_uint64_print(const struct cibfw_uint64 *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_uint64 ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "hi : "U32H_FMT"\n", ptr_struct->hi); @@ -97,11 +81,6 @@ void cibfw_uint64_dump(const struct cibfw_uint64 *ptr_struct, FILE* file) { void cibfw_module_version_pack(const struct cibfw_module_version *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->branch); @@ -116,13 +95,6 @@ void cibfw_module_version_pack(const struct cibfw_module_version *ptr_struct, u_ void cibfw_module_version_unpack(struct cibfw_module_version *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->branch = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -138,10 +110,6 @@ void cibfw_module_version_unpack(struct cibfw_module_version *ptr_struct, const void cibfw_module_version_print(const struct cibfw_module_version *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_module_version ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "branch : "UH_FMT"\n", ptr_struct->branch); @@ -164,11 +132,6 @@ void cibfw_module_version_dump(const struct cibfw_module_version *ptr_struct, FI void cibfw_uid_entry_pack(const struct cibfw_uid_entry *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->num_allocated); @@ -183,13 +146,6 @@ void cibfw_uid_entry_pack(const struct cibfw_uid_entry *ptr_struct, u_int8_t* pt void cibfw_uid_entry_unpack(struct cibfw_uid_entry *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->num_allocated = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -205,10 +161,6 @@ void cibfw_uid_entry_unpack(struct cibfw_uid_entry *ptr_struct, const u_int8_t* void cibfw_uid_entry_print(const struct cibfw_uid_entry *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_uid_entry ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "num_allocated : "UH_FMT"\n", ptr_struct->num_allocated); @@ -231,11 +183,6 @@ void cibfw_uid_entry_dump(const struct cibfw_uid_entry *ptr_struct, FILE* file) void cibfw_module_versions_pack(const struct cibfw_module_versions *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; cibfw_module_version_pack(&(ptr_struct->core), ptr_buff + offset/8); @@ -259,13 +206,6 @@ void cibfw_module_versions_pack(const struct cibfw_module_versions *ptr_struct, void cibfw_module_versions_unpack(struct cibfw_module_versions *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; cibfw_module_version_unpack(&(ptr_struct->core), ptr_buff + offset/8); @@ -290,10 +230,6 @@ void cibfw_module_versions_unpack(struct cibfw_module_versions *ptr_struct, cons void cibfw_module_versions_print(const struct cibfw_module_versions *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_module_versions ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "core:\n"); @@ -331,11 +267,6 @@ void cibfw_module_versions_dump(const struct cibfw_module_versions *ptr_struct, void cibfw_image_size_pack(const struct cibfw_image_size *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->log_step); @@ -347,13 +278,6 @@ void cibfw_image_size_pack(const struct cibfw_image_size *ptr_struct, u_int8_t* void cibfw_image_size_unpack(struct cibfw_image_size *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->log_step = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -366,10 +290,6 @@ void cibfw_image_size_unpack(struct cibfw_image_size *ptr_struct, const u_int8_t void cibfw_image_size_print(const struct cibfw_image_size *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_image_size ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "log_step : "UH_FMT"\n", ptr_struct->log_step); @@ -389,11 +309,6 @@ void cibfw_image_size_dump(const struct cibfw_image_size *ptr_struct, FILE* file void cibfw_TRIPPLE_VERSION_pack(const struct cibfw_TRIPPLE_VERSION *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->MAJOR); @@ -408,13 +323,6 @@ void cibfw_TRIPPLE_VERSION_pack(const struct cibfw_TRIPPLE_VERSION *ptr_struct, void cibfw_TRIPPLE_VERSION_unpack(struct cibfw_TRIPPLE_VERSION *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->MAJOR = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -430,10 +338,6 @@ void cibfw_TRIPPLE_VERSION_unpack(struct cibfw_TRIPPLE_VERSION *ptr_struct, cons void cibfw_TRIPPLE_VERSION_print(const struct cibfw_TRIPPLE_VERSION *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_TRIPPLE_VERSION ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "MAJOR : "UH_FMT"\n", ptr_struct->MAJOR); @@ -456,11 +360,6 @@ void cibfw_TRIPPLE_VERSION_dump(const struct cibfw_TRIPPLE_VERSION *ptr_struct, void cibfw_FW_VERSION_pack(const struct cibfw_FW_VERSION *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->MAJOR); @@ -493,13 +392,6 @@ void cibfw_FW_VERSION_pack(const struct cibfw_FW_VERSION *ptr_struct, u_int8_t* void cibfw_FW_VERSION_unpack(struct cibfw_FW_VERSION *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->MAJOR = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -533,10 +425,6 @@ void cibfw_FW_VERSION_unpack(struct cibfw_FW_VERSION *ptr_struct, const u_int8_t void cibfw_FW_VERSION_print(const struct cibfw_FW_VERSION *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_FW_VERSION ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "MAJOR : "UH_FMT"\n", ptr_struct->MAJOR); @@ -578,10 +466,6 @@ void cibfw_FW_VERSION_dump(const struct cibfw_FW_VERSION *ptr_struct, FILE* file void cibfw_guids_pack(const struct cibfw_guids *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; for (i=0; i < 2; i++) { offset=adb2c_calc_array_field_address(0, 128, i, 512, 1); @@ -598,12 +482,6 @@ void cibfw_guids_pack(const struct cibfw_guids *ptr_struct, u_int8_t* ptr_buff){ void cibfw_guids_unpack(struct cibfw_guids *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; for (i=0; i < 2; i++) { offset=adb2c_calc_array_field_address(0, 128, i, 512, 1); @@ -621,9 +499,6 @@ void cibfw_guids_print(const struct cibfw_guids *ptr_struct, FILE* file, int ind adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_guids ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; for (i=0; i < 2; i++) { adb2c_add_indentation(file, indent_level); @@ -649,11 +524,6 @@ void cibfw_guids_dump(const struct cibfw_guids *ptr_struct, FILE* file) { void cibfw_operation_key_pack(const struct cibfw_operation_key *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->key_modifier); @@ -665,13 +535,6 @@ void cibfw_operation_key_pack(const struct cibfw_operation_key *ptr_struct, u_in void cibfw_operation_key_unpack(struct cibfw_operation_key *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->key_modifier = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -684,10 +547,6 @@ void cibfw_operation_key_unpack(struct cibfw_operation_key *ptr_struct, const u_ void cibfw_operation_key_print(const struct cibfw_operation_key *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_operation_key ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "key_modifier : "UH_FMT"\n", ptr_struct->key_modifier); @@ -708,10 +567,6 @@ void cibfw_operation_key_dump(const struct cibfw_operation_key *ptr_struct, FILE void cibfw_image_info_pack(const struct cibfw_image_info *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->minor_version); @@ -762,12 +617,6 @@ void cibfw_image_info_pack(const struct cibfw_image_info *ptr_struct, u_int8_t* void cibfw_image_info_unpack(struct cibfw_image_info *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; ptr_struct->minor_version = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -822,9 +671,6 @@ void cibfw_image_info_print(const struct cibfw_image_info *ptr_struct, FILE* fil adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_image_info ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "minor_version : "UH_FMT"\n", ptr_struct->minor_version); @@ -875,10 +721,6 @@ void cibfw_image_info_dump(const struct cibfw_image_info *ptr_struct, FILE* file void cibfw_mfg_info_pack(const struct cibfw_mfg_info *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; for (i=0; i < 16; i++) { offset=adb2c_calc_array_field_address(24, 8, i, 2560, 1); @@ -902,12 +744,6 @@ void cibfw_mfg_info_pack(const struct cibfw_mfg_info *ptr_struct, u_int8_t* ptr_ void cibfw_mfg_info_unpack(struct cibfw_mfg_info *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; for (i=0; i < 16; i++) { offset=adb2c_calc_array_field_address(24, 8, i, 2560, 1); @@ -932,10 +768,6 @@ void cibfw_mfg_info_unpack(struct cibfw_mfg_info *ptr_struct, const u_int8_t* pt void cibfw_mfg_info_print(const struct cibfw_mfg_info *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_mfg_info ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; fprintf(file, "psid : \"%s\"\n", ptr_struct->psid); adb2c_add_indentation(file, indent_level); @@ -964,10 +796,6 @@ void cibfw_mfg_info_dump(const struct cibfw_mfg_info *ptr_struct, FILE* file) { void cibfw_device_info_pack(const struct cibfw_device_info *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->signature0); @@ -1008,12 +836,6 @@ void cibfw_device_info_pack(const struct cibfw_device_info *ptr_struct, u_int8_t void cibfw_device_info_unpack(struct cibfw_device_info *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->signature0 = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -1056,9 +878,6 @@ void cibfw_device_info_print(const struct cibfw_device_info *ptr_struct, FILE* f adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_device_info ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "signature0 : "U32H_FMT"\n", ptr_struct->signature0); @@ -1104,11 +923,6 @@ void cibfw_device_info_dump(const struct cibfw_device_info *ptr_struct, FILE* fi void cibfw_register_mfrl_pack(const struct cibfw_register_mfrl *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=56; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->reset_level); @@ -1117,13 +931,6 @@ void cibfw_register_mfrl_pack(const struct cibfw_register_mfrl *ptr_struct, u_in void cibfw_register_mfrl_unpack(struct cibfw_register_mfrl *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=56; ptr_struct->reset_level = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -1133,10 +940,6 @@ void cibfw_register_mfrl_unpack(struct cibfw_register_mfrl *ptr_struct, const u_ void cibfw_register_mfrl_print(const struct cibfw_register_mfrl *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_register_mfrl ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "reset_level : "UH_FMT"\n", ptr_struct->reset_level); @@ -1153,11 +956,6 @@ void cibfw_register_mfrl_dump(const struct cibfw_register_mfrl *ptr_struct, FILE void cibfw_itoc_header_pack(const struct cibfw_itoc_header *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->signature0); @@ -1181,13 +979,6 @@ void cibfw_itoc_header_pack(const struct cibfw_itoc_header *ptr_struct, u_int8_t void cibfw_itoc_header_unpack(struct cibfw_itoc_header *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->signature0 = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -1212,10 +1003,6 @@ void cibfw_itoc_header_unpack(struct cibfw_itoc_header *ptr_struct, const u_int8 void cibfw_itoc_header_print(const struct cibfw_itoc_header *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_itoc_header ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "signature0 : "U32H_FMT"\n", ptr_struct->signature0); @@ -1247,11 +1034,6 @@ void cibfw_itoc_header_dump(const struct cibfw_itoc_header *ptr_struct, FILE* fi void cibfw_itoc_entry_pack(const struct cibfw_itoc_entry *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; adb2c_push_bits_to_buff(ptr_buff, offset, 22, (u_int32_t)ptr_struct->size); @@ -1293,13 +1075,6 @@ void cibfw_itoc_entry_pack(const struct cibfw_itoc_entry *ptr_struct, u_int8_t* void cibfw_itoc_entry_unpack(struct cibfw_itoc_entry *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; ptr_struct->size = (u_int32_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 22); @@ -1342,10 +1117,6 @@ void cibfw_itoc_entry_unpack(struct cibfw_itoc_entry *ptr_struct, const u_int8_t void cibfw_itoc_entry_print(const struct cibfw_itoc_entry *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_itoc_entry ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "size : "UH_FMT"\n", ptr_struct->size); @@ -1395,11 +1166,6 @@ void cibfw_itoc_entry_dump(const struct cibfw_itoc_entry *ptr_struct, FILE* file void cibfw_register_mfai_pack(const struct cibfw_register_mfai *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; adb2c_push_bits_to_buff(ptr_buff, offset, 24, (u_int32_t)ptr_struct->address); @@ -1420,13 +1186,6 @@ void cibfw_register_mfai_pack(const struct cibfw_register_mfai *ptr_struct, u_in void cibfw_register_mfai_unpack(struct cibfw_register_mfai *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; ptr_struct->address = (u_int32_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 24); @@ -1448,10 +1207,6 @@ void cibfw_register_mfai_unpack(struct cibfw_register_mfai *ptr_struct, const u_ void cibfw_register_mfai_print(const struct cibfw_register_mfai *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_register_mfai ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "address : "UH_FMT"\n", ptr_struct->address); @@ -1491,10 +1246,6 @@ void cibfw_cibfw_Nodes_unpack(union cibfw_cibfw_Nodes *ptr_struct, const u_int8_ void cibfw_cibfw_Nodes_print(const union cibfw_cibfw_Nodes *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cibfw_cibfw_Nodes ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "register_mfai:\n"); diff --git a/tools_layouts/cx4fw_layouts.c b/tools_layouts/cx4fw_layouts.c index d723ac7..4416f19 100644 --- a/tools_layouts/cx4fw_layouts.c +++ b/tools_layouts/cx4fw_layouts.c @@ -40,11 +40,6 @@ void cx4fw_uint64_pack(const struct cx4fw_uint64 *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->hi); @@ -56,13 +51,6 @@ void cx4fw_uint64_pack(const struct cx4fw_uint64 *ptr_struct, u_int8_t* ptr_buff void cx4fw_uint64_unpack(struct cx4fw_uint64 *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->hi = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -75,10 +63,6 @@ void cx4fw_uint64_unpack(struct cx4fw_uint64 *ptr_struct, const u_int8_t* ptr_bu void cx4fw_uint64_print(const struct cx4fw_uint64 *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cx4fw_uint64 ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "hi : "U32H_FMT"\n", ptr_struct->hi); @@ -98,11 +82,6 @@ void cx4fw_uint64_dump(const struct cx4fw_uint64 *ptr_struct, FILE* file) { void cx4fw_uid_entry_pack(const struct cx4fw_uid_entry *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->num_allocated); @@ -117,13 +96,6 @@ void cx4fw_uid_entry_pack(const struct cx4fw_uid_entry *ptr_struct, u_int8_t* pt void cx4fw_uid_entry_unpack(struct cx4fw_uid_entry *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->num_allocated = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -139,10 +111,6 @@ void cx4fw_uid_entry_unpack(struct cx4fw_uid_entry *ptr_struct, const u_int8_t* void cx4fw_uid_entry_print(const struct cx4fw_uid_entry *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cx4fw_uid_entry ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "num_allocated : "UH_FMT"\n", ptr_struct->num_allocated); @@ -165,11 +133,6 @@ void cx4fw_uid_entry_dump(const struct cx4fw_uid_entry *ptr_struct, FILE* file) void cx4fw_guids_pack(const struct cx4fw_guids *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; cx4fw_uid_entry_pack(&(ptr_struct->guids), ptr_buff + offset/8); @@ -181,13 +144,6 @@ void cx4fw_guids_pack(const struct cx4fw_guids *ptr_struct, u_int8_t* ptr_buff){ void cx4fw_guids_unpack(struct cx4fw_guids *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; cx4fw_uid_entry_unpack(&(ptr_struct->guids), ptr_buff + offset/8); @@ -200,10 +156,6 @@ void cx4fw_guids_unpack(struct cx4fw_guids *ptr_struct, const u_int8_t* ptr_buff void cx4fw_guids_print(const struct cx4fw_guids *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cx4fw_guids ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "guids:\n"); @@ -225,11 +177,6 @@ void cx4fw_guids_dump(const struct cx4fw_guids *ptr_struct, FILE* file) { void cx4fw_operation_key_pack(const struct cx4fw_operation_key *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->key_modifier); @@ -241,13 +188,6 @@ void cx4fw_operation_key_pack(const struct cx4fw_operation_key *ptr_struct, u_in void cx4fw_operation_key_unpack(struct cx4fw_operation_key *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->key_modifier = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -260,10 +200,6 @@ void cx4fw_operation_key_unpack(struct cx4fw_operation_key *ptr_struct, const u_ void cx4fw_operation_key_print(const struct cx4fw_operation_key *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cx4fw_operation_key ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "key_modifier : "UH_FMT"\n", ptr_struct->key_modifier); @@ -284,10 +220,6 @@ void cx4fw_operation_key_dump(const struct cx4fw_operation_key *ptr_struct, FILE void cx4fw_mfg_info_pack(const struct cx4fw_mfg_info *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; for (i=0; i < 16; i++) { offset=adb2c_calc_array_field_address(24, 8, i, 2560, 1); @@ -311,12 +243,6 @@ void cx4fw_mfg_info_pack(const struct cx4fw_mfg_info *ptr_struct, u_int8_t* ptr_ void cx4fw_mfg_info_unpack(struct cx4fw_mfg_info *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; for (i=0; i < 16; i++) { offset=adb2c_calc_array_field_address(24, 8, i, 2560, 1); @@ -341,10 +267,6 @@ void cx4fw_mfg_info_unpack(struct cx4fw_mfg_info *ptr_struct, const u_int8_t* pt void cx4fw_mfg_info_print(const struct cx4fw_mfg_info *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cx4fw_mfg_info ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; fprintf(file, "psid : \"%s\"\n", ptr_struct->psid); adb2c_add_indentation(file, indent_level); @@ -373,10 +295,6 @@ void cx4fw_mfg_info_dump(const struct cx4fw_mfg_info *ptr_struct, FILE* file) { void cx4fw_device_info_pack(const struct cx4fw_device_info *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->signature0); @@ -417,12 +335,6 @@ void cx4fw_device_info_pack(const struct cx4fw_device_info *ptr_struct, u_int8_t void cx4fw_device_info_unpack(struct cx4fw_device_info *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->signature0 = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -465,9 +377,6 @@ void cx4fw_device_info_print(const struct cx4fw_device_info *ptr_struct, FILE* f adb2c_add_indentation(file, indent_level); fprintf(file, "======== cx4fw_device_info ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "signature0 : "U32H_FMT"\n", ptr_struct->signature0); @@ -524,10 +433,6 @@ void cx4fw_cx4fw_Nodes_unpack(union cx4fw_cx4fw_Nodes *ptr_struct, const u_int8_ void cx4fw_cx4fw_Nodes_print(const union cx4fw_cx4fw_Nodes *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== cx4fw_cx4fw_Nodes ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "device_info:\n"); diff --git a/tools_layouts/register_access_open_layouts.c b/tools_layouts/register_access_open_layouts.c index 7387ba7..e74fa5e 100644 --- a/tools_layouts/register_access_open_layouts.c +++ b/tools_layouts/register_access_open_layouts.c @@ -40,10 +40,6 @@ void register_access_mfba_pack(const struct register_access_mfba *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=26; adb2c_push_bits_to_buff(ptr_buff, offset, 2, (u_int32_t)ptr_struct->fs); @@ -67,12 +63,6 @@ void register_access_mfba_pack(const struct register_access_mfba *ptr_struct, u_ void register_access_mfba_unpack(struct register_access_mfba *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=26; ptr_struct->fs = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 2); @@ -97,9 +87,6 @@ void register_access_mfba_print(const struct register_access_mfba *ptr_struct, F adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_mfba ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "fs : "UH_FMT"\n", ptr_struct->fs); @@ -130,11 +117,6 @@ void register_access_mfba_dump(const struct register_access_mfba *ptr_struct, FI void register_access_mfpa_pack(const struct register_access_mfpa *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=26; adb2c_push_bits_to_buff(ptr_buff, offset, 2, (u_int32_t)ptr_struct->fs); @@ -164,13 +146,6 @@ void register_access_mfpa_pack(const struct register_access_mfpa *ptr_struct, u_ void register_access_mfpa_unpack(struct register_access_mfpa *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=26; ptr_struct->fs = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 2); @@ -201,10 +176,6 @@ void register_access_mfpa_unpack(struct register_access_mfpa *ptr_struct, const void register_access_mfpa_print(const struct register_access_mfpa *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_mfpa ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "fs : "UH_FMT"\n", ptr_struct->fs); @@ -242,11 +213,6 @@ void register_access_mfpa_dump(const struct register_access_mfpa *ptr_struct, FI void register_access_mfbe_pack(const struct register_access_mfbe *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=26; adb2c_push_bits_to_buff(ptr_buff, offset, 2, (u_int32_t)ptr_struct->fs); @@ -261,13 +227,6 @@ void register_access_mfbe_pack(const struct register_access_mfbe *ptr_struct, u_ void register_access_mfbe_unpack(struct register_access_mfbe *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=26; ptr_struct->fs = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 2); @@ -283,10 +242,6 @@ void register_access_mfbe_unpack(struct register_access_mfbe *ptr_struct, const void register_access_mfbe_print(const struct register_access_mfbe *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_mfbe ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "fs : "UH_FMT"\n", ptr_struct->fs); @@ -320,10 +275,6 @@ void register_access_register_access_open_Nodes_unpack(union register_access_reg void register_access_register_access_open_Nodes_print(const union register_access_register_access_open_Nodes *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_register_access_open_Nodes ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "mfbe:\n"); diff --git a/tools_layouts/register_access_sib_layouts.c b/tools_layouts/register_access_sib_layouts.c index 60bee42..c18c0fd 100644 --- a/tools_layouts/register_access_sib_layouts.c +++ b/tools_layouts/register_access_sib_layouts.c @@ -40,10 +40,6 @@ void register_access_sib_IB_PSID__pack(const struct register_access_sib_IB_PSID_ *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; for (i=0; i < 4; i++) { offset=adb2c_calc_array_field_address(0, 32, i, 128, 1); @@ -55,12 +51,6 @@ void register_access_sib_IB_PSID__pack(const struct register_access_sib_IB_PSID_ void register_access_sib_IB_PSID__unpack(struct register_access_sib_IB_PSID_ *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; for (i=0; i < 4; i++) { offset=adb2c_calc_array_field_address(0, 32, i, 128, 1); @@ -73,9 +63,6 @@ void register_access_sib_IB_PSID__print(const struct register_access_sib_IB_PSID adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_sib_IB_PSID_ ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; for (i=0; i < 4; i++) { adb2c_add_indentation(file, indent_level); @@ -94,11 +81,6 @@ void register_access_sib_IB_PSID__dump(const struct register_access_sib_IB_PSID_ void register_access_sib_IB_SWInfo__pack(const struct register_access_sib_IB_SWInfo_ *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->VerSubMinor); @@ -113,13 +95,6 @@ void register_access_sib_IB_SWInfo__pack(const struct register_access_sib_IB_SWI void register_access_sib_IB_SWInfo__unpack(struct register_access_sib_IB_SWInfo_ *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->VerSubMinor = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -135,10 +110,6 @@ void register_access_sib_IB_SWInfo__unpack(struct register_access_sib_IB_SWInfo_ void register_access_sib_IB_SWInfo__print(const struct register_access_sib_IB_SWInfo_ *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_sib_IB_SWInfo_ ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "VerSubMinor : "UH_FMT"\n", ptr_struct->VerSubMinor); @@ -161,11 +132,6 @@ void register_access_sib_IB_SWInfo__dump(const struct register_access_sib_IB_SWI void register_access_sib_IB_FWInfo__pack(const struct register_access_sib_IB_FWInfo_ *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->SubMinor); @@ -210,13 +176,6 @@ void register_access_sib_IB_FWInfo__pack(const struct register_access_sib_IB_FWI void register_access_sib_IB_FWInfo__unpack(struct register_access_sib_IB_FWInfo_ *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->SubMinor = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -262,10 +221,6 @@ void register_access_sib_IB_FWInfo__unpack(struct register_access_sib_IB_FWInfo_ void register_access_sib_IB_FWInfo__print(const struct register_access_sib_IB_FWInfo_ *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_sib_IB_FWInfo_ ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "SubMinor : "UH_FMT"\n", ptr_struct->SubMinor); @@ -319,11 +274,6 @@ void register_access_sib_IB_FWInfo__dump(const struct register_access_sib_IB_FWI void register_access_sib_IB_HWInfo__pack(const struct register_access_sib_IB_HWInfo_ *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->DEVID); @@ -344,13 +294,6 @@ void register_access_sib_IB_HWInfo__pack(const struct register_access_sib_IB_HWI void register_access_sib_IB_HWInfo__unpack(struct register_access_sib_IB_HWInfo_ *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->DEVID = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -372,10 +315,6 @@ void register_access_sib_IB_HWInfo__unpack(struct register_access_sib_IB_HWInfo_ void register_access_sib_IB_HWInfo__print(const struct register_access_sib_IB_HWInfo_ *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_sib_IB_HWInfo_ ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "DEVID : "UH_FMT"\n", ptr_struct->DEVID); @@ -404,11 +343,6 @@ void register_access_sib_IB_HWInfo__dump(const struct register_access_sib_IB_HWI void register_access_sib_mgir_pack(const struct register_access_sib_mgir *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; register_access_sib_IB_HWInfo__pack(&(ptr_struct->HWInfo), ptr_buff + offset/8); @@ -423,13 +357,6 @@ void register_access_sib_mgir_pack(const struct register_access_sib_mgir *ptr_st void register_access_sib_mgir_unpack(struct register_access_sib_mgir *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; register_access_sib_IB_HWInfo__unpack(&(ptr_struct->HWInfo), ptr_buff + offset/8); @@ -445,10 +372,6 @@ void register_access_sib_mgir_unpack(struct register_access_sib_mgir *ptr_struct void register_access_sib_mgir_print(const struct register_access_sib_mgir *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_sib_mgir ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "HWInfo:\n"); @@ -474,11 +397,6 @@ void register_access_sib_mgir_dump(const struct register_access_sib_mgir *ptr_st void register_access_sib_mtmp_pack(const struct register_access_sib_mtmp *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=25; adb2c_push_bits_to_buff(ptr_buff, offset, 7, (u_int32_t)ptr_struct->sensor_index); @@ -517,13 +435,6 @@ void register_access_sib_mtmp_pack(const struct register_access_sib_mtmp *ptr_st void register_access_sib_mtmp_unpack(struct register_access_sib_mtmp *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=25; ptr_struct->sensor_index = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 7); @@ -563,10 +474,6 @@ void register_access_sib_mtmp_unpack(struct register_access_sib_mtmp *ptr_struct void register_access_sib_mtmp_print(const struct register_access_sib_mtmp *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_sib_mtmp ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "sensor_index : "UH_FMT"\n", ptr_struct->sensor_index); @@ -624,10 +531,6 @@ void register_access_sib_register_access_sib_Nodes_unpack(union register_access_ void register_access_sib_register_access_sib_Nodes_print(const union register_access_sib_register_access_sib_Nodes *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== register_access_sib_register_access_sib_Nodes ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "mtmp:\n"); diff --git a/tools_layouts/tools_open_layouts.c b/tools_layouts/tools_open_layouts.c index fa3945a..877b100 100644 --- a/tools_layouts/tools_open_layouts.c +++ b/tools_layouts/tools_open_layouts.c @@ -39,11 +39,6 @@ void tools_open_tlv_type_dw_pack(const struct tools_open_tlv_type_dw *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->tlv_type_dw); @@ -52,13 +47,6 @@ void tools_open_tlv_type_dw_pack(const struct tools_open_tlv_type_dw *ptr_struct void tools_open_tlv_type_dw_unpack(struct tools_open_tlv_type_dw *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->tlv_type_dw = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -68,10 +56,6 @@ void tools_open_tlv_type_dw_unpack(struct tools_open_tlv_type_dw *ptr_struct, co void tools_open_tlv_type_dw_print(const struct tools_open_tlv_type_dw *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_tlv_type_dw ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "tlv_type_dw : "U32H_FMT"\n", ptr_struct->tlv_type_dw); @@ -88,11 +72,6 @@ void tools_open_tlv_type_dw_dump(const struct tools_open_tlv_type_dw *ptr_struct void tools_open_per_port_type_pack(const struct tools_open_per_port_type *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->param_idx); @@ -107,13 +86,6 @@ void tools_open_per_port_type_pack(const struct tools_open_per_port_type *ptr_st void tools_open_per_port_type_unpack(struct tools_open_per_port_type *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->param_idx = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -129,10 +101,6 @@ void tools_open_per_port_type_unpack(struct tools_open_per_port_type *ptr_struct void tools_open_per_port_type_print(const struct tools_open_per_port_type *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_per_port_type ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "param_idx : "UH_FMT"\n", ptr_struct->param_idx); @@ -155,11 +123,6 @@ void tools_open_per_port_type_dump(const struct tools_open_per_port_type *ptr_st void tools_open_bmc_type_pack(const struct tools_open_bmc_type *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=19; adb2c_push_bits_to_buff(ptr_buff, offset, 13, (u_int32_t)ptr_struct->param_idx); @@ -177,13 +140,6 @@ void tools_open_bmc_type_pack(const struct tools_open_bmc_type *ptr_struct, u_in void tools_open_bmc_type_unpack(struct tools_open_bmc_type *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=19; ptr_struct->param_idx = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 13); @@ -202,10 +158,6 @@ void tools_open_bmc_type_unpack(struct tools_open_bmc_type *ptr_struct, const u_ void tools_open_bmc_type_print(const struct tools_open_bmc_type *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_bmc_type ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "param_idx : "UH_FMT"\n", ptr_struct->param_idx); @@ -231,11 +183,6 @@ void tools_open_bmc_type_dump(const struct tools_open_bmc_type *ptr_struct, FILE void tools_open_per_host_type_pack(const struct tools_open_per_host_type *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=22; adb2c_push_bits_to_buff(ptr_buff, offset, 10, (u_int32_t)ptr_struct->param_idx); @@ -253,13 +200,6 @@ void tools_open_per_host_type_pack(const struct tools_open_per_host_type *ptr_st void tools_open_per_host_type_unpack(struct tools_open_per_host_type *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=22; ptr_struct->param_idx = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 10); @@ -278,10 +218,6 @@ void tools_open_per_host_type_unpack(struct tools_open_per_host_type *ptr_struct void tools_open_per_host_type_print(const struct tools_open_per_host_type *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_per_host_type ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "param_idx : "UH_FMT"\n", ptr_struct->param_idx); @@ -307,11 +243,6 @@ void tools_open_per_host_type_dump(const struct tools_open_per_host_type *ptr_st void tools_open_eswitch_type_pack(const struct tools_open_eswitch_type *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->param_idx); @@ -329,13 +260,6 @@ void tools_open_eswitch_type_pack(const struct tools_open_eswitch_type *ptr_stru void tools_open_eswitch_type_unpack(struct tools_open_eswitch_type *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->param_idx = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -354,10 +278,6 @@ void tools_open_eswitch_type_unpack(struct tools_open_eswitch_type *ptr_struct, void tools_open_eswitch_type_print(const struct tools_open_eswitch_type *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_eswitch_type ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "param_idx : "UH_FMT"\n", ptr_struct->param_idx); @@ -383,11 +303,6 @@ void tools_open_eswitch_type_dump(const struct tools_open_eswitch_type *ptr_stru void tools_open_global_type_pack(const struct tools_open_global_type *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; adb2c_push_bits_to_buff(ptr_buff, offset, 24, (u_int32_t)ptr_struct->param_idx); @@ -399,13 +314,6 @@ void tools_open_global_type_pack(const struct tools_open_global_type *ptr_struct void tools_open_global_type_unpack(struct tools_open_global_type *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; ptr_struct->param_idx = (u_int32_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 24); @@ -418,10 +326,6 @@ void tools_open_global_type_unpack(struct tools_open_global_type *ptr_struct, co void tools_open_global_type_print(const struct tools_open_global_type *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_global_type ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "param_idx : "UH_FMT"\n", ptr_struct->param_idx); @@ -452,10 +356,6 @@ void tools_open_tlv_type_unpack(union tools_open_tlv_type *ptr_struct, const u_i void tools_open_tlv_type_print(const union tools_open_tlv_type *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_tlv_type ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "global:\n"); @@ -493,11 +393,6 @@ void tools_open_tlv_type_dump(const union tools_open_tlv_type *ptr_struct, FILE* void tools_open_pmdio_addr_data_pack(const struct tools_open_pmdio_addr_data *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->data); @@ -509,13 +404,6 @@ void tools_open_pmdio_addr_data_pack(const struct tools_open_pmdio_addr_data *pt void tools_open_pmdio_addr_data_unpack(struct tools_open_pmdio_addr_data *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->data = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -528,10 +416,6 @@ void tools_open_pmdio_addr_data_unpack(struct tools_open_pmdio_addr_data *ptr_st void tools_open_pmdio_addr_data_print(const struct tools_open_pmdio_addr_data *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_pmdio_addr_data ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "data : "UH_FMT"\n", ptr_struct->data); @@ -551,11 +435,6 @@ void tools_open_pmdio_addr_data_dump(const struct tools_open_pmdio_addr_data *pt void tools_open_nv_hdr_fifth_gen_pack(const struct tools_open_nv_hdr_fifth_gen *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->length); @@ -582,13 +461,6 @@ void tools_open_nv_hdr_fifth_gen_pack(const struct tools_open_nv_hdr_fifth_gen * void tools_open_nv_hdr_fifth_gen_unpack(struct tools_open_nv_hdr_fifth_gen *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->length = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -616,10 +488,6 @@ void tools_open_nv_hdr_fifth_gen_unpack(struct tools_open_nv_hdr_fifth_gen *ptr_ void tools_open_nv_hdr_fifth_gen_print(const struct tools_open_nv_hdr_fifth_gen *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_nv_hdr_fifth_gen ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "length : "UH_FMT"\n", ptr_struct->length); @@ -655,11 +523,6 @@ void tools_open_nv_hdr_fifth_gen_dump(const struct tools_open_nv_hdr_fifth_gen * void tools_open_nv_hdr_pack(const struct tools_open_nv_hdr *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->type); @@ -683,13 +546,6 @@ void tools_open_nv_hdr_pack(const struct tools_open_nv_hdr *ptr_struct, u_int8_t void tools_open_nv_hdr_unpack(struct tools_open_nv_hdr *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->type = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -714,10 +570,6 @@ void tools_open_nv_hdr_unpack(struct tools_open_nv_hdr *ptr_struct, const u_int8 void tools_open_nv_hdr_print(const struct tools_open_nv_hdr *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_nv_hdr ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "type : "UH_FMT"\n", ptr_struct->type); @@ -750,10 +602,6 @@ void tools_open_nv_hdr_dump(const struct tools_open_nv_hdr *ptr_struct, FILE* fi void tools_open_pmdio_pack(const struct tools_open_pmdio *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=29; adb2c_push_bits_to_buff(ptr_buff, offset, 3, (u_int32_t)ptr_struct->operation); @@ -786,12 +634,6 @@ void tools_open_pmdio_pack(const struct tools_open_pmdio *ptr_struct, u_int8_t* void tools_open_pmdio_unpack(struct tools_open_pmdio *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=29; ptr_struct->operation = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 3); @@ -825,9 +667,6 @@ void tools_open_pmdio_print(const struct tools_open_pmdio *ptr_struct, FILE* fil adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_pmdio ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "operation : "UH_FMT"\n", ptr_struct->operation); @@ -868,11 +707,6 @@ void tools_open_pmdio_dump(const struct tools_open_pmdio *ptr_struct, FILE* file void tools_open_pmdic_pack(const struct tools_open_pmdic *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->local_port); @@ -893,13 +727,6 @@ void tools_open_pmdic_pack(const struct tools_open_pmdic *ptr_struct, u_int8_t* void tools_open_pmdic_unpack(struct tools_open_pmdic *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=8; ptr_struct->local_port = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -921,10 +748,6 @@ void tools_open_pmdic_unpack(struct tools_open_pmdic *ptr_struct, const u_int8_t void tools_open_pmdic_print(const struct tools_open_pmdic *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_pmdic ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "local_port : "UH_FMT"\n", ptr_struct->local_port); @@ -953,11 +776,6 @@ void tools_open_pmdic_dump(const struct tools_open_pmdic *ptr_struct, FILE* file void tools_open_nvdi_pack(const struct tools_open_nvdi *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_fifth_gen_pack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -966,13 +784,6 @@ void tools_open_nvdi_pack(const struct tools_open_nvdi *ptr_struct, u_int8_t* pt void tools_open_nvdi_unpack(struct tools_open_nvdi *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_fifth_gen_unpack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -982,10 +793,6 @@ void tools_open_nvdi_unpack(struct tools_open_nvdi *ptr_struct, const u_int8_t* void tools_open_nvdi_print(const struct tools_open_nvdi *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_nvdi ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "nv_hdr:\n"); @@ -1004,10 +811,6 @@ void tools_open_nvdi_dump(const struct tools_open_nvdi *ptr_struct, FILE* file) void tools_open_nvda_pack(const struct tools_open_nvda *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_fifth_gen_pack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1022,12 +825,6 @@ void tools_open_nvda_pack(const struct tools_open_nvda *ptr_struct, u_int8_t* pt void tools_open_nvda_unpack(struct tools_open_nvda *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_fifth_gen_unpack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1043,9 +840,6 @@ void tools_open_nvda_print(const struct tools_open_nvda *ptr_struct, FILE* file, adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_nvda ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "nv_hdr:\n"); @@ -1068,11 +862,6 @@ void tools_open_nvda_dump(const struct tools_open_nvda *ptr_struct, FILE* file) void tools_open_nvia_pack(const struct tools_open_nvia *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_fifth_gen_pack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1084,13 +873,6 @@ void tools_open_nvia_pack(const struct tools_open_nvia *ptr_struct, u_int8_t* pt void tools_open_nvia_unpack(struct tools_open_nvia *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_fifth_gen_unpack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1103,10 +885,6 @@ void tools_open_nvia_unpack(struct tools_open_nvia *ptr_struct, const u_int8_t* void tools_open_nvia_print(const struct tools_open_nvia *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_nvia ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "nv_hdr:\n"); @@ -1127,11 +905,6 @@ void tools_open_nvia_dump(const struct tools_open_nvia *ptr_struct, FILE* file) void tools_open_nvqc_pack(const struct tools_open_nvqc *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_tlv_type_pack(&(ptr_struct->type), ptr_buff + offset/8); @@ -1149,13 +922,6 @@ void tools_open_nvqc_pack(const struct tools_open_nvqc *ptr_struct, u_int8_t* pt void tools_open_nvqc_unpack(struct tools_open_nvqc *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_tlv_type_unpack(&(ptr_struct->type), ptr_buff + offset/8); @@ -1174,10 +940,6 @@ void tools_open_nvqc_unpack(struct tools_open_nvqc *ptr_struct, const u_int8_t* void tools_open_nvqc_print(const struct tools_open_nvqc *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_nvqc ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "type:\n"); @@ -1204,11 +966,6 @@ void tools_open_nvqc_dump(const struct tools_open_nvqc *ptr_struct, FILE* file) void tools_open_mnvia_pack(const struct tools_open_mnvia *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_pack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1217,13 +974,6 @@ void tools_open_mnvia_pack(const struct tools_open_mnvia *ptr_struct, u_int8_t* void tools_open_mnvia_unpack(struct tools_open_mnvia *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_unpack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1233,10 +983,6 @@ void tools_open_mnvia_unpack(struct tools_open_mnvia *ptr_struct, const u_int8_t void tools_open_mnvia_print(const struct tools_open_mnvia *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_mnvia ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "nv_hdr:\n"); @@ -1254,11 +1000,6 @@ void tools_open_mnvia_dump(const struct tools_open_mnvia *ptr_struct, FILE* file void tools_open_mnvi_pack(const struct tools_open_mnvi *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_pack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1267,13 +1008,6 @@ void tools_open_mnvi_pack(const struct tools_open_mnvi *ptr_struct, u_int8_t* pt void tools_open_mnvi_unpack(struct tools_open_mnvi *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_unpack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1283,10 +1017,6 @@ void tools_open_mnvi_unpack(struct tools_open_mnvi *ptr_struct, const u_int8_t* void tools_open_mnvi_print(const struct tools_open_mnvi *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_mnvi ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "nv_hdr:\n"); @@ -1305,10 +1035,6 @@ void tools_open_mnvi_dump(const struct tools_open_mnvi *ptr_struct, FILE* file) void tools_open_mnva_pack(const struct tools_open_mnva *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_pack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1323,12 +1049,6 @@ void tools_open_mnva_pack(const struct tools_open_mnva *ptr_struct, u_int8_t* pt void tools_open_mnva_unpack(struct tools_open_mnva *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; tools_open_nv_hdr_unpack(&(ptr_struct->nv_hdr), ptr_buff + offset/8); @@ -1344,9 +1064,6 @@ void tools_open_mnva_print(const struct tools_open_mnva *ptr_struct, FILE* file, adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_mnva ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "nv_hdr:\n"); @@ -1369,11 +1086,6 @@ void tools_open_mnva_dump(const struct tools_open_mnva *ptr_struct, FILE* file) void tools_open_query_def_params_per_port_pack(const struct tools_open_query_def_params_per_port *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=13; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->nv_config_vpi); @@ -1466,13 +1178,6 @@ void tools_open_query_def_params_per_port_pack(const struct tools_open_query_def void tools_open_query_def_params_per_port_unpack(struct tools_open_query_def_params_per_port *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=13; ptr_struct->nv_config_vpi = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -1566,10 +1271,6 @@ void tools_open_query_def_params_per_port_unpack(struct tools_open_query_def_par void tools_open_query_def_params_per_port_print(const struct tools_open_query_def_params_per_port *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_query_def_params_per_port ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "nv_config_vpi : "UH_FMT"\n", ptr_struct->nv_config_vpi); @@ -1670,11 +1371,6 @@ void tools_open_query_def_params_per_port_dump(const struct tools_open_query_def void tools_open_query_def_params_global_pack(const struct tools_open_query_def_params_global *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->fw_default_config_payload_version); @@ -1695,13 +1391,6 @@ void tools_open_query_def_params_global_pack(const struct tools_open_query_def_p void tools_open_query_def_params_global_unpack(struct tools_open_query_def_params_global *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->fw_default_config_payload_version = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -1723,10 +1412,6 @@ void tools_open_query_def_params_global_unpack(struct tools_open_query_def_param void tools_open_query_def_params_global_print(const struct tools_open_query_def_params_global *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_query_def_params_global ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "fw_default_config_payload_version : "UH_FMT"\n", ptr_struct->fw_default_config_payload_version); @@ -1766,10 +1451,6 @@ void tools_open_phy_reg_unpack(union tools_open_phy_reg *ptr_struct, const u_int void tools_open_phy_reg_print(const union tools_open_phy_reg *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_phy_reg ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "pmdic:\n"); @@ -1802,10 +1483,6 @@ void tools_open_mnv_cfg_unpack(union tools_open_mnv_cfg *ptr_struct, const u_int void tools_open_mnv_cfg_print(const union tools_open_mnv_cfg *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_mnv_cfg ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "mnva:\n"); @@ -1848,10 +1525,6 @@ void tools_open_mnv_cfg_dump(const union tools_open_mnv_cfg *ptr_struct, FILE* f void tools_open_lldp_nb_capability_pack(const struct tools_open_lldp_nb_capability *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->lldp_nb_supported); @@ -1869,12 +1542,6 @@ void tools_open_lldp_nb_capability_pack(const struct tools_open_lldp_nb_capabili void tools_open_lldp_nb_capability_unpack(struct tools_open_lldp_nb_capability *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->lldp_nb_supported = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -1893,9 +1560,6 @@ void tools_open_lldp_nb_capability_print(const struct tools_open_lldp_nb_capabil adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_lldp_nb_capability ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "lldp_nb_supported : "UH_FMT"\n", ptr_struct->lldp_nb_supported); @@ -1921,10 +1585,6 @@ void tools_open_lldp_nb_capability_dump(const struct tools_open_lldp_nb_capabili void tools_open_lldp_nb_pack(const struct tools_open_lldp_nb *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=1; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->lldp_nb_rx_en); @@ -1945,12 +1605,6 @@ void tools_open_lldp_nb_pack(const struct tools_open_lldp_nb *ptr_struct, u_int8 void tools_open_lldp_nb_unpack(struct tools_open_lldp_nb *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=1; ptr_struct->lldp_nb_rx_en = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -1972,9 +1626,6 @@ void tools_open_lldp_nb_print(const struct tools_open_lldp_nb *ptr_struct, FILE* adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_lldp_nb ========\n"); int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "lldp_nb_rx_en : "UH_FMT"\n", ptr_struct->lldp_nb_rx_en); @@ -2002,11 +1653,6 @@ void tools_open_lldp_nb_dump(const struct tools_open_lldp_nb *ptr_struct, FILE* void tools_open_roce_cc_ecn_pack(const struct tools_open_roce_cc_ecn *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=1; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->clamp_tgt_rate_after_time_inc); @@ -2069,13 +1715,6 @@ void tools_open_roce_cc_ecn_pack(const struct tools_open_roce_cc_ecn *ptr_struct void tools_open_roce_cc_ecn_unpack(struct tools_open_roce_cc_ecn *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=1; ptr_struct->clamp_tgt_rate_after_time_inc = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -2139,10 +1778,6 @@ void tools_open_roce_cc_ecn_unpack(struct tools_open_roce_cc_ecn *ptr_struct, co void tools_open_roce_cc_ecn_print(const struct tools_open_roce_cc_ecn *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_roce_cc_ecn ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "clamp_tgt_rate_after_time_inc : "UH_FMT"\n", ptr_struct->clamp_tgt_rate_after_time_inc); @@ -2213,11 +1848,6 @@ void tools_open_roce_cc_ecn_dump(const struct tools_open_roce_cc_ecn *ptr_struct void tools_open_roce_cc_pack(const struct tools_open_roce_cc *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->roce_cc_enable_priority); @@ -2229,13 +1859,6 @@ void tools_open_roce_cc_pack(const struct tools_open_roce_cc *ptr_struct, u_int8 void tools_open_roce_cc_unpack(struct tools_open_roce_cc *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->roce_cc_enable_priority = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -2248,10 +1871,6 @@ void tools_open_roce_cc_unpack(struct tools_open_roce_cc *ptr_struct, const u_in void tools_open_roce_cc_print(const struct tools_open_roce_cc *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_roce_cc ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "roce_cc_enable_priority : "UH_FMT"\n", ptr_struct->roce_cc_enable_priority); @@ -2271,11 +1890,6 @@ void tools_open_roce_cc_dump(const struct tools_open_roce_cc *ptr_struct, FILE* void tools_open_roce_v_1_5_next_protocol_pack(const struct tools_open_roce_v_1_5_next_protocol *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->roce_over_ip_next_protocol); @@ -2284,13 +1898,6 @@ void tools_open_roce_v_1_5_next_protocol_pack(const struct tools_open_roce_v_1_5 void tools_open_roce_v_1_5_next_protocol_unpack(struct tools_open_roce_v_1_5_next_protocol *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->roce_over_ip_next_protocol = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -2300,10 +1907,6 @@ void tools_open_roce_v_1_5_next_protocol_unpack(struct tools_open_roce_v_1_5_nex void tools_open_roce_v_1_5_next_protocol_print(const struct tools_open_roce_v_1_5_next_protocol *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_roce_v_1_5_next_protocol ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "roce_over_ip_next_protocol : "UH_FMT"\n", ptr_struct->roce_over_ip_next_protocol); @@ -2320,11 +1923,6 @@ void tools_open_roce_v_1_5_next_protocol_dump(const struct tools_open_roce_v_1_5 void tools_open_vpi_settings_pack(const struct tools_open_vpi_settings *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=30; adb2c_push_bits_to_buff(ptr_buff, offset, 2, (u_int32_t)ptr_struct->network_link_type); @@ -2336,13 +1934,6 @@ void tools_open_vpi_settings_pack(const struct tools_open_vpi_settings *ptr_stru void tools_open_vpi_settings_unpack(struct tools_open_vpi_settings *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=30; ptr_struct->network_link_type = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 2); @@ -2355,10 +1946,6 @@ void tools_open_vpi_settings_unpack(struct tools_open_vpi_settings *ptr_struct, void tools_open_vpi_settings_print(const struct tools_open_vpi_settings *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_vpi_settings ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "network_link_type : "UH_FMT"\n", ptr_struct->network_link_type); @@ -2378,11 +1965,6 @@ void tools_open_vpi_settings_dump(const struct tools_open_vpi_settings *ptr_stru void tools_open_bar_size_pack(const struct tools_open_bar_size *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->log_uar_bar_size); @@ -2391,13 +1973,6 @@ void tools_open_bar_size_pack(const struct tools_open_bar_size *ptr_struct, u_in void tools_open_bar_size_unpack(struct tools_open_bar_size *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->log_uar_bar_size = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -2407,10 +1982,6 @@ void tools_open_bar_size_unpack(struct tools_open_bar_size *ptr_struct, const u_ void tools_open_bar_size_print(const struct tools_open_bar_size *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_bar_size ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "log_uar_bar_size : "U32H_FMT"\n", ptr_struct->log_uar_bar_size); @@ -2427,11 +1998,6 @@ void tools_open_bar_size_dump(const struct tools_open_bar_size *ptr_struct, FILE void tools_open_sriov_pack(const struct tools_open_sriov *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->total_vfs); @@ -2443,13 +2009,6 @@ void tools_open_sriov_pack(const struct tools_open_sriov *ptr_struct, u_int8_t* void tools_open_sriov_unpack(struct tools_open_sriov *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->total_vfs = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -2462,10 +2021,6 @@ void tools_open_sriov_unpack(struct tools_open_sriov *ptr_struct, const u_int8_t void tools_open_sriov_print(const struct tools_open_sriov *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_sriov ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "total_vfs : "UH_FMT"\n", ptr_struct->total_vfs); @@ -2485,11 +2040,6 @@ void tools_open_sriov_dump(const struct tools_open_sriov *ptr_struct, FILE* file void tools_open_preboot_flow_ctrl_pack(const struct tools_open_preboot_flow_ctrl *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; adb2c_push_bits_to_buff(ptr_buff, offset, 8, (u_int32_t)ptr_struct->pfcrx); @@ -2510,13 +2060,6 @@ void tools_open_preboot_flow_ctrl_pack(const struct tools_open_preboot_flow_ctrl void tools_open_preboot_flow_ctrl_unpack(struct tools_open_preboot_flow_ctrl *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=24; ptr_struct->pfcrx = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 8); @@ -2538,10 +2081,6 @@ void tools_open_preboot_flow_ctrl_unpack(struct tools_open_preboot_flow_ctrl *pt void tools_open_preboot_flow_ctrl_print(const struct tools_open_preboot_flow_ctrl *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_preboot_flow_ctrl ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "pfcrx : "UH_FMT"\n", ptr_struct->pfcrx); @@ -2570,11 +2109,6 @@ void tools_open_preboot_flow_ctrl_dump(const struct tools_open_preboot_flow_ctrl void tools_open_preboot_boot_settings_pack(const struct tools_open_preboot_boot_settings *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=20; adb2c_push_bits_to_buff(ptr_buff, offset, 12, (u_int32_t)ptr_struct->boot_vlan); @@ -2595,13 +2129,6 @@ void tools_open_preboot_boot_settings_pack(const struct tools_open_preboot_boot_ void tools_open_preboot_boot_settings_unpack(struct tools_open_preboot_boot_settings *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=20; ptr_struct->boot_vlan = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 12); @@ -2623,10 +2150,6 @@ void tools_open_preboot_boot_settings_unpack(struct tools_open_preboot_boot_sett void tools_open_preboot_boot_settings_print(const struct tools_open_preboot_boot_settings *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_preboot_boot_settings ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "boot_vlan : "UH_FMT"\n", ptr_struct->boot_vlan); @@ -2655,11 +2178,6 @@ void tools_open_preboot_boot_settings_dump(const struct tools_open_preboot_boot_ void tools_open_boot_settings_pack(const struct tools_open_boot_settings *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=20; adb2c_push_bits_to_buff(ptr_buff, offset, 12, (u_int32_t)ptr_struct->boot_vlan); @@ -2680,13 +2198,6 @@ void tools_open_boot_settings_pack(const struct tools_open_boot_settings *ptr_st void tools_open_boot_settings_unpack(struct tools_open_boot_settings *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=20; ptr_struct->boot_vlan = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 12); @@ -2708,10 +2219,6 @@ void tools_open_boot_settings_unpack(struct tools_open_boot_settings *ptr_struct void tools_open_boot_settings_print(const struct tools_open_boot_settings *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_boot_settings ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "boot_vlan : "UH_FMT"\n", ptr_struct->boot_vlan); @@ -2740,11 +2247,6 @@ void tools_open_boot_settings_dump(const struct tools_open_boot_settings *ptr_st void tools_open_infiniband_boot_settings_pack(const struct tools_open_infiniband_boot_settings *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; adb2c_push_bits_to_buff(ptr_buff, offset, 16, (u_int32_t)ptr_struct->boot_pkey); @@ -2753,13 +2255,6 @@ void tools_open_infiniband_boot_settings_pack(const struct tools_open_infiniband void tools_open_infiniband_boot_settings_unpack(struct tools_open_infiniband_boot_settings *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=16; ptr_struct->boot_pkey = (u_int16_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 16); @@ -2769,10 +2264,6 @@ void tools_open_infiniband_boot_settings_unpack(struct tools_open_infiniband_boo void tools_open_infiniband_boot_settings_print(const struct tools_open_infiniband_boot_settings *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_infiniband_boot_settings ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "boot_pkey : "UH_FMT"\n", ptr_struct->boot_pkey); @@ -2789,11 +2280,6 @@ void tools_open_infiniband_boot_settings_dump(const struct tools_open_infiniband void tools_open_iscsi_settings_pack(const struct tools_open_iscsi_settings *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=10; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->target_as_first_hdd_en); @@ -2835,13 +2321,6 @@ void tools_open_iscsi_settings_pack(const struct tools_open_iscsi_settings *ptr_ void tools_open_iscsi_settings_unpack(struct tools_open_iscsi_settings *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=10; ptr_struct->target_as_first_hdd_en = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -2884,10 +2363,6 @@ void tools_open_iscsi_settings_unpack(struct tools_open_iscsi_settings *ptr_stru void tools_open_iscsi_settings_print(const struct tools_open_iscsi_settings *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_iscsi_settings ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "target_as_first_hdd_en : "UH_FMT"\n", ptr_struct->target_as_first_hdd_en); @@ -2937,11 +2412,6 @@ void tools_open_iscsi_settings_dump(const struct tools_open_iscsi_settings *ptr_ void tools_open_port_boot_state_pack(const struct tools_open_port_boot_state *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=30; adb2c_push_bits_to_buff(ptr_buff, offset, 2, (u_int32_t)ptr_struct->port_boot_state); @@ -2950,13 +2420,6 @@ void tools_open_port_boot_state_pack(const struct tools_open_port_boot_state *pt void tools_open_port_boot_state_unpack(struct tools_open_port_boot_state *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=30; ptr_struct->port_boot_state = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 2); @@ -2966,10 +2429,6 @@ void tools_open_port_boot_state_unpack(struct tools_open_port_boot_state *ptr_st void tools_open_port_boot_state_print(const struct tools_open_port_boot_state *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_port_boot_state ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "port_boot_state : "UH_FMT"\n", ptr_struct->port_boot_state); @@ -2986,11 +2445,6 @@ void tools_open_port_boot_state_dump(const struct tools_open_port_boot_state *pt void tools_open_pci_configuration_pack(const struct tools_open_pci_configuration *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=7; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->pf_bar_size_valid); @@ -3047,13 +2501,6 @@ void tools_open_pci_configuration_pack(const struct tools_open_pci_configuration void tools_open_pci_configuration_unpack(struct tools_open_pci_configuration *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=7; ptr_struct->pf_bar_size_valid = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -3111,10 +2558,6 @@ void tools_open_pci_configuration_unpack(struct tools_open_pci_configuration *pt void tools_open_pci_configuration_print(const struct tools_open_pci_configuration *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_pci_configuration ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "pf_bar_size_valid : "UH_FMT"\n", ptr_struct->pf_bar_size_valid); @@ -3179,11 +2622,6 @@ void tools_open_pci_configuration_dump(const struct tools_open_pci_configuration void tools_open_pci_capabilities_pack(const struct tools_open_pci_capabilities *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=7; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->pf_bar_size_supported); @@ -3246,13 +2684,6 @@ void tools_open_pci_capabilities_pack(const struct tools_open_pci_capabilities * void tools_open_pci_capabilities_unpack(struct tools_open_pci_capabilities *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=7; ptr_struct->pf_bar_size_supported = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -3316,10 +2747,6 @@ void tools_open_pci_capabilities_unpack(struct tools_open_pci_capabilities *ptr_ void tools_open_pci_capabilities_print(const struct tools_open_pci_capabilities *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_pci_capabilities ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "pf_bar_size_supported : "UH_FMT"\n", ptr_struct->pf_bar_size_supported); @@ -3390,11 +2817,6 @@ void tools_open_pci_capabilities_dump(const struct tools_open_pci_capabilities * void tools_open_tpt_configuration_pack(const struct tools_open_tpt_configuration *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=28; adb2c_push_bits_to_buff(ptr_buff, offset, 4, (u_int32_t)ptr_struct->log_max_payload_size); @@ -3403,13 +2825,6 @@ void tools_open_tpt_configuration_pack(const struct tools_open_tpt_configuration void tools_open_tpt_configuration_unpack(struct tools_open_tpt_configuration *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=28; ptr_struct->log_max_payload_size = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 4); @@ -3419,10 +2834,6 @@ void tools_open_tpt_configuration_unpack(struct tools_open_tpt_configuration *pt void tools_open_tpt_configuration_print(const struct tools_open_tpt_configuration *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_tpt_configuration ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "log_max_payload_size : "UH_FMT"\n", ptr_struct->log_max_payload_size); @@ -3439,11 +2850,6 @@ void tools_open_tpt_configuration_dump(const struct tools_open_tpt_configuration void tools_open_tpt_capabilities_pack(const struct tools_open_tpt_capabilities *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->log_max_payload_size_supported); @@ -3452,13 +2858,6 @@ void tools_open_tpt_capabilities_pack(const struct tools_open_tpt_capabilities * void tools_open_tpt_capabilities_unpack(struct tools_open_tpt_capabilities *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->log_max_payload_size_supported = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -3468,10 +2867,6 @@ void tools_open_tpt_capabilities_unpack(struct tools_open_tpt_capabilities *ptr_ void tools_open_tpt_capabilities_print(const struct tools_open_tpt_capabilities *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_tpt_capabilities ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "log_max_payload_size_supported : "UH_FMT"\n", ptr_struct->log_max_payload_size_supported); @@ -3488,11 +2883,6 @@ void tools_open_tpt_capabilities_dump(const struct tools_open_tpt_capabilities * void tools_open_infiniband_dc_settings_pack(const struct tools_open_infiniband_dc_settings *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=27; adb2c_push_bits_to_buff(ptr_buff, offset, 5, (u_int32_t)ptr_struct->log_dcr_hash_table_size); @@ -3504,13 +2894,6 @@ void tools_open_infiniband_dc_settings_pack(const struct tools_open_infiniband_d void tools_open_infiniband_dc_settings_unpack(struct tools_open_infiniband_dc_settings *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=27; ptr_struct->log_dcr_hash_table_size = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 5); @@ -3523,10 +2906,6 @@ void tools_open_infiniband_dc_settings_unpack(struct tools_open_infiniband_dc_se void tools_open_infiniband_dc_settings_print(const struct tools_open_infiniband_dc_settings *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_infiniband_dc_settings ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "log_dcr_hash_table_size : "UH_FMT"\n", ptr_struct->log_dcr_hash_table_size); @@ -3546,11 +2925,6 @@ void tools_open_infiniband_dc_settings_dump(const struct tools_open_infiniband_d void tools_open_infiniband_dc_capabilities_pack(const struct tools_open_infiniband_dc_capabilities *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->min_log_dcr_hash_table_size); @@ -3568,13 +2942,6 @@ void tools_open_infiniband_dc_capabilities_pack(const struct tools_open_infiniba void tools_open_infiniband_dc_capabilities_unpack(struct tools_open_infiniband_dc_capabilities *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->min_log_dcr_hash_table_size = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -3593,10 +2960,6 @@ void tools_open_infiniband_dc_capabilities_unpack(struct tools_open_infiniband_d void tools_open_infiniband_dc_capabilities_print(const struct tools_open_infiniband_dc_capabilities *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_infiniband_dc_capabilities ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "min_log_dcr_hash_table_size : "U32H_FMT"\n", ptr_struct->min_log_dcr_hash_table_size); @@ -3622,11 +2985,6 @@ void tools_open_infiniband_dc_capabilities_dump(const struct tools_open_infiniba void tools_open_wol_pack(const struct tools_open_wol *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=22; adb2c_push_bits_to_buff(ptr_buff, offset, 1, (u_int32_t)ptr_struct->en_wol_psswd_magic); @@ -3653,13 +3011,6 @@ void tools_open_wol_pack(const struct tools_open_wol *ptr_struct, u_int8_t* ptr_ void tools_open_wol_unpack(struct tools_open_wol *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=22; ptr_struct->en_wol_psswd_magic = (u_int8_t)adb2c_pop_bits_from_buff(ptr_buff, offset, 1); @@ -3687,10 +3038,6 @@ void tools_open_wol_unpack(struct tools_open_wol *ptr_struct, const u_int8_t* pt void tools_open_wol_print(const struct tools_open_wol *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_wol ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "en_wol_psswd_magic : "UH_FMT"\n", ptr_struct->en_wol_psswd_magic); @@ -3736,10 +3083,6 @@ void tools_open_hcr_cmds_unpack(union tools_open_hcr_cmds *ptr_struct, const u_i void tools_open_hcr_cmds_print(const union tools_open_hcr_cmds *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_hcr_cmds ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "query_def_params_global:\n"); @@ -3772,10 +3115,6 @@ void tools_open_access_registers_unpack(union tools_open_access_registers *ptr_s void tools_open_access_registers_print(const union tools_open_access_registers *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_access_registers ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "MNVReg:\n"); @@ -3808,10 +3147,6 @@ void tools_open_nv_cfg_unpack(union tools_open_nv_cfg *ptr_struct, const u_int8_ void tools_open_nv_cfg_print(const union tools_open_nv_cfg *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_nv_cfg ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "wol:\n"); @@ -3920,10 +3255,6 @@ void tools_open_tools_open_unpack(union tools_open_tools_open *ptr_struct, const void tools_open_tools_open_print(const union tools_open_tools_open *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_tools_open ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "NVConfig:\n"); @@ -3949,11 +3280,6 @@ void tools_open_tools_open_dump(const union tools_open_tools_open *ptr_struct, F void tools_open_uint64_pack(const struct tools_open_uint64 *ptr_struct, u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; adb2c_push_integer_to_buff(ptr_buff, offset, 4, (u_int64_t)ptr_struct->hi); @@ -3965,13 +3291,6 @@ void tools_open_uint64_pack(const struct tools_open_uint64 *ptr_struct, u_int8_t void tools_open_uint64_unpack(struct tools_open_uint64 *ptr_struct, const u_int8_t* ptr_buff){ u_int32_t offset; - int i=0; - u_int8_t val=0; - (void)val; - (void)offset; - (void)i; - (void)ptr_struct; - (void)ptr_buff; offset=0; ptr_struct->hi = (u_int32_t)adb2c_pop_integer_from_buff(ptr_buff, offset, 4); @@ -3984,10 +3303,6 @@ void tools_open_uint64_unpack(struct tools_open_uint64 *ptr_struct, const u_int8 void tools_open_uint64_print(const struct tools_open_uint64 *ptr_struct, FILE* file, int indent_level){ adb2c_add_indentation(file, indent_level); fprintf(file, "======== tools_open_uint64 ========\n"); - int i=0; - (void)i;(void)ptr_struct; - (void)file; - (void)indent_level; adb2c_add_indentation(file, indent_level); fprintf(file, "hi : "U32H_FMT"\n", ptr_struct->hi);