Message ID | 870f083a-df8e-8a22-52c2-e4d2dde46b9d@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 361666071F for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 6 Dec 2016 00:48:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B95A2823D for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 6 Dec 2016 00:48:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 200FD28307; Tue, 6 Dec 2016 00:48:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 778F62823D for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 6 Dec 2016 00:48:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751311AbcLFAsT (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Mon, 5 Dec 2016 19:48:19 -0500 Received: from mail-dm3nam03on0068.outbound.protection.outlook.com ([104.47.41.68]:16971 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751161AbcLFAsS (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Mon, 5 Dec 2016 19:48:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VqXe9mtV6pV+6c2ZyP8wDIz1z3X/s31n+0BWTQ9fljM=; b=FltffH16RXwJgJ+AEOuKQgnln4qmZxePPgGAIpLirYejQfR+V6B+hniu3mFGlSYd8V7B+RBMeIpP7w4a/D/B/LYIine/0CRBF7dpdZFiI2vOpQsdswSmXFyuiUVr1jEF7ZGW0XIyhYhK4Nv2CNXLKZao1VYPVE20K2pGCiIlM5k= Received: from BY2PR02CA0009.namprd02.prod.outlook.com (10.163.44.147) by CY1PR0201MB0972.namprd02.prod.outlook.com (10.160.165.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13; Tue, 6 Dec 2016 00:48:16 +0000 Received: from BL2FFO11FD019.protection.gbl (2a01:111:f400:7c09::168) by BY2PR02CA0009.outlook.office365.com (2a01:111:e400:5261::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.9 via Frontend Transport; Tue, 6 Dec 2016 00:48:15 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BL2FFO11FD019.mail.protection.outlook.com (10.173.161.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.4 via Frontend Transport; Tue, 6 Dec 2016 00:48:14 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:2810; Count:17 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id DE.D9.03811.8F806485; Mon, 5 Dec 2016 16:40:25 -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.319.2; Mon, 5 Dec 2016 16:48:13 -0800 X-AuditID: 0ac94371-a9ee698000000ee3-fb-584608f85333 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 95.20.03661.BCA06485; Mon, 5 Dec 2016 16:48:13 -0800 (PST) To: Doug Ledford <dledford@redhat.com> CC: Dennis Dalessandro <dennis.dalessandro@intel.com>, Dean Luick <dean.luick@intel.com>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org> From: Bart Van Assche <bart.vanassche@sandisk.com> Subject: [PATCH] IB/hfi1: Define platform_config_table_limits once Message-ID: <870f083a-df8e-8a22-52c2-e4d2dde46b9d@sandisk.com> Date: Mon, 5 Dec 2016 16:48:11 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLLMWRmVeSWpSXmKPExsXCddJ5ke5PDrcIg/1vBC02P8u1eL73NZvF y/MfWC2eHeplcWDxWLznJZPH+31X2Tw+b5ILYI7isklJzcksSy3St0vgylj7eAZbwR6BipkH D7I3ME7l62Lk5JAQMJFo/XuRsYuRi0NIYCmTxNSjHxlBEkIC2xklbv9L7GLkACuaPrsWqoZR Ys+KDWwgNSICahKbXi1iB0kwC0xnlGg/dxmsmU3ASOLb+5ksIM3CAk4SJ/q4QcK8AnYS7w9s ButlEVCRaG4+xgxiiwpESPRPecQCUS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AttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(8676002)(53416004)(189998001)(8936002)(81166006)(92566002)(97736004)(81156014)(39410400001)(39450400002)(50986999)(31696002)(77096006)(2270400002)(38730400001)(54356999)(86362001)(68736007)(31686004)(4001350100001)(7846002)(50466002)(305945005)(626004)(47776003)(356003)(65806001)(5660300001)(65956001)(64126003)(65826007)(4326007)(6916009)(2906002)(69596002)(110136003)(230700001)(36756003)(83506001)(39840400001)(39850400001)(106466001)(39860400001)(23676002)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB0972; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD019; 1:qP2suosBqZLiNoPvUjl8crZgaMBiYQNuDbfyyxz7vvs1nkOz2UZTFW8r3PcMHK2X9Jtm96RvN9lbhheR+HV8wF5Zg451J1udQ7XaUsCzGjKLCjSRzNLYhlMAFchI8OOet4O0EzPefZut/nrFdrZozYlf4zKoaex7OhvB0clc6p1/6L/QlSniZZ/dXqiadJ7pir8YDk2gudBF5aLqV223Y+bqv426v4Dp6NK0MSEDBTnGDJhtP6QUoZA3yoorBpFa7acKoQGIP4l94nrhgCNPsgtN0XtmTUbxAn+ubSvc2UV/QJGRGzvZlIUqxFXl+DcZFW2NsZmFgmVLKmC8ov4CzIbXXR1Jtd1p4TzYaIpBxDGe++LjUtnCJBfHEGLvw2X45s+S+J3sxVTdzGk10dIagyOsJ6OJaQHix9ru+A+RWdKtmmOT3oys0d1n3HC17SvdY97OjSiWtR6ovPypY26En+i6o41zsO6QOFI4arKSV8mHjsEJtuU/JTL02se3jTu8awkGVSRGSHWmuUPzx2084jT8aGv9y2+43Ms6j7kBg4Q= X-MS-Office365-Filtering-Correlation-Id: d3c475cb-c894-4212-c11f-08d41d71901a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY1PR0201MB0972; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB0972; 3:v68PKJJ3aamaBVTywAryN1z/It8AM4xpwpah8r535zt2YGA+e9aKBYeKAQB55ugNA0noOSP09DqcJVfg1ZYjqa4rGcWfqN9/jRuchY/Gzu/NUifkgFD1SWnRQZOAp0/c35RF96HLFpGbdw6+010dAETplx6N/vTVNsu8LPlajoGdN6OebwU0/t89llboZ/32WDrzVoIKXIB+IG+AsJWJhJEJab1duJHbZLh7jGvMmuIeYqJZ17buvVGeP/QCIdANuJ59sNnGn9DaVf09tVV4Ls8GigIHa6Ppt7RHE9TRXPje43+Z+8P0N+nbi65Bvp/5C91uAYU/QHjB1Cd3nN6ikphK/KPKvPpj1KicGvmBfk4OQDBAwhsEi4b6rzzwcJQvcSYTiuRfB1RzWPWPPIAlXA== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB0972; 25:/ODQHOsVXkDp1nneDE9saQEl09mtltakxkjWJiGJWiRnrY2tJVo+U78mbN1eUnznMwKcIiREgIP6efJuO7e+4JpozBwgLa+wHm5FmeZ/fnlJZCTvGgU8X1RNklnO/ybQCdxBeyQ2vRQzIzy3iU4CvVrPuPwBaKYm8ATanefYWVgR1SwgCobgiDq/DHlw2zVe/jrraL7ulqTk9CiWs3oACEaYlBxLYxsMQGhh+W0iyRYtX4o5dYKfYfxvPjBpTNPu7ftNESU89QW5cjAy3Chp/XnXdqE/XwQIYoJbBqMEwJDGZzepaiMICwlsqjY05pGJAUenAQjCQ98AyAxbam+75hpbRM6qe7c5FmD2Gtzn+zUxPmAm8uwyI3Cb9cjPj4UmrKkeHIvM5sl8eBD3ccvaWA6ztFVkGwy8j4yi26L1SgPnGjh9IRvN7HDJAq5EfhABs7FSEJPbUW2C5GWQIThap6y8mocdWtmcTk1ZtzK0pK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koaT4XQfI7CQVYzgQqis74pPAEqH6+62CtN86SoY/61GA8KR5TYYvydOVw8J6WtPuLEdW5lAngEWQaCu/G7smBW6hKH5bk2G/ozQyvGwDLfkq+YYNj X-Microsoft-Antispam-PRVS: <CY1PR0201MB0972A3CB124EF1DEE3CFD22D81820@CY1PR0201MB0972.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(6072148); SRVR:CY1PR0201MB0972; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0201MB0972; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB0972; 4:/41By2kCQXtYyVT6QY4obEEkTRAG6I4X+eckCPkQwVLjhgaio/PeB2wN60S979VUbWCfOd4un4mfcsD99L6JfBAna0asRDyKPWsmDYPaoAzhjhzUFOBv/TUCMa5jOA6Jw5OjtdkvEKGIWl7qFjp5YoCPq7TuD5TS1cYmtKPYp9pzZ7Rqu44HNuY+9YAk7JIIN0B8RU/KDyG9HpQTZsFVEzFqJVaNVenJbtNFOBkUp2yQSJ88FJgWRKc/Y5ujvyeSPUJqwAwK9THKixGNOkpsY0wb/2J2Owl07T6ADdgW2jAfgJtC1ahthE2L7rNw9eryxncL5yTJC3KPjac+gaf4PYo6axRZDEsB44rb74HCBnIw12eu7LVSSNTprCQbhFtPqksozrHAEPnzain6HKsAzuqprcEqinPSZAlYof9jy8SHQ0JXxTmCqRom23f/YTUYfj2K/tN9T3md3BCwamLuxd4gNg2ndPr2h/M+91t8ipyErMFIUjGI6m1L0O/tDuL/+myM7z5i5YBBRgyc6BebTjCRg7qPdjaJjzjBIqMF5QfQ1HRWBT3QyOgGBrIWUiJOsBJTmZ8lUedR6uIC5vgTqYzkFNLMGfkrorKNMa5XMMoQwsT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HjU0AfwSxz/50GXaUdXmgaefMHCNC4AgsOfjcuDmdzsq3Qlf5mQRlWLSryo3xiofJI7HgGAPilo6ssEO/7ts+Ur5ywjKbYy/wtFMuBdIOLXJy8UTAPrfP1sSWKfwJcssAHqtYQVqlsM1qDMW8OvXd/UOTFlew8g0a/fEZsbaTJucxrm3pw2upN1Bpoqc7n39gHv+XQrsM9Kq04GAkujDvXkP8DqhDAZi0Ygk38iRKMHqKZtMoMQL5ZqnLhr4ZuhRH2LzCZAb3RL1NK06m3TCNdx7TTNpVLKCsTLSIY3TTOyNW3oI0+FpSRaTRa2ayOx1DXUHHYm7vBABERUuFPsUftqxvs9Nz2cTYm4qELpVjmQ==; 20:vO7MbAWIE0F+J9MfMb6DMVa2retpcky6ntwBBSyXelJTjIM4CEKZmI+Frj4yivmsm92ptk4RFF4Rg8asdt+4eTqfVPealshJAPTnh1F7d9SckX4V1DELxQ5VNMEaXrc6nn2s5Od/zkJY5V7ez0Xf6MY3BkX6zWEkr9c2/esmLso3YTMAnDsD+xg0QKnqsnbEMjIPSsDC5uvtRZDTBa3KMHka6A2vWI4xrmCZmyEQche2U0eJwrKSDHSUhjEfT9qD X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2016 00:48:14.7896 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB0972 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On 12/5/2016 7:48 PM, Bart Van Assche wrote: > Defining static data structures in a header file is wrong because > this causes the data structure to be instantiated once in every .c > file it is included in. Hence move the definition of a static > array from a header file into the only .c file in which it is used. > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Cc: Dennis Dalessandro <dennis.dalessandro@intel.com> > Cc: Dean Luick <dean.luick@intel.com> Applied, thanks.
diff --git a/drivers/infiniband/hw/hfi1/firmware.c b/drivers/infiniband/hw/hfi1/firmware.c index 13db8eb4f4ec..acbc261b1858 100644 --- a/drivers/infiniband/hw/hfi1/firmware.c +++ b/drivers/infiniband/hw/hfi1/firmware.c @@ -239,6 +239,16 @@ static const u8 all_fabric_serdes_broadcast = 0xe1; const u8 pcie_serdes_broadcast[2] = { 0xe2, 0xe3 }; static const u8 all_pcie_serdes_broadcast = 0xe0; +static const u32 platform_config_table_limits[PLATFORM_CONFIG_TABLE_MAX] = { + 0, + SYSTEM_TABLE_MAX, + PORT_TABLE_MAX, + RX_PRESET_TABLE_MAX, + TX_PRESET_TABLE_MAX, + QSFP_ATTEN_TABLE_MAX, + VARIABLE_SETTINGS_TABLE_MAX +}; + /* forwards */ static void dispose_one_firmware(struct firmware_details *fdet); static int load_fabric_serdes_firmware(struct hfi1_devdata *dd, diff --git a/drivers/infiniband/hw/hfi1/platform.h b/drivers/infiniband/hw/hfi1/platform.h index e2c21613c326..ad46dd6b4b3d 100644 --- a/drivers/infiniband/hw/hfi1/platform.h +++ b/drivers/infiniband/hw/hfi1/platform.h @@ -168,16 +168,6 @@ struct platform_config_cache { struct platform_config_data config_tables[PLATFORM_CONFIG_TABLE_MAX]; }; -static const u32 platform_config_table_limits[PLATFORM_CONFIG_TABLE_MAX] = { - 0, - SYSTEM_TABLE_MAX, - PORT_TABLE_MAX, - RX_PRESET_TABLE_MAX, - TX_PRESET_TABLE_MAX, - QSFP_ATTEN_TABLE_MAX, - VARIABLE_SETTINGS_TABLE_MAX -}; - /* This section defines default values and encodings for the * fields defined for each table above */
Defining static data structures in a header file is wrong because this causes the data structure to be instantiated once in every .c file it is included in. Hence move the definition of a static array from a header file into the only .c file in which it is used. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Dennis Dalessandro <dennis.dalessandro@intel.com> Cc: Dean Luick <dean.luick@intel.com> --- drivers/infiniband/hw/hfi1/firmware.c | 10 ++++++++++ drivers/infiniband/hw/hfi1/platform.h | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-)