Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968708AbdD0NNQ (ORCPT ); Thu, 27 Apr 2017 09:13:16 -0400 Received: from mail-eopbgr00074.outbound.protection.outlook.com ([40.107.0.74]:60403 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751256AbdD0NNG (ORCPT ); Thu, 27 Apr 2017 09:13:06 -0400 Authentication-Results: arndb.de; dkim=none (message not signed) header.d=none;arndb.de; dmarc=none action=none header.from=mellanox.com; Date: Thu, 27 Apr 2017 16:13:12 +0300 From: Leon Romanovsky To: Arnd Bergmann CC: Saeed Mahameed , Matan Barak , "David S. Miller" , Erez Shitrit , Dan Carpenter , Stephen Hemminger , Networking , , Linux Kernel Mailing List Subject: Re: [PATCH net-next] mlx5: work around unused function warning Message-ID: <20170427131312.GI14088@mtr-leonro.local> References: <20170427110421.2431598-1-arnd@arndb.de> <20170427115513.GH14088@mtr-leonro.local> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hdMwqcnXK86+cyrC" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-Originating-IP: [213.57.247.46] X-ClientProxiedBy: VI1PR0902CA0011.eurprd09.prod.outlook.com (10.171.100.21) To HE1PR0501MB1929.eurprd05.prod.outlook.com (10.166.87.17) X-MS-Office365-Filtering-Correlation-Id: 8e8371a7-2b84-4ed1-934c-08d48d6f2219 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081)(201703131423075)(201703031133081);SRVR:HE1PR0501MB1929; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0501MB1929;3:ZV6XQjZjFriz3iYSBfwiJp+xxv5UGazf+MMZ92BmWg8HWJAHKWddCdjYA5VDoPvJBLn+jCojruTqBPP9pxGfI4fzaDjsc5kGEW2SRfLVvLV9C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e7BDpf/kifZEMFLrFo1ZTl/zpW4cbm3Qg4PMNLTJKCkKy8ujwQF+2ISBOZxsAuo2QjxMSUfpaU7HMU7LOHx6n6JH6di2bvxOoRRZ9zns03G2Jwp7+F6pkjr4SP8cE4fZjkBmB2BMoY6eerjVhkBjFMLdWLhuIqTAnn+LStawb3W2lZQJbFvovR7d6WbWZe2pkNQbpKfzpiasM9QvorYWX4ZIRs0LBQ3RyL/4ppUoxh2ROzk53mkVOQgG7ee220tGi28OiAlc5wIHV7nD0jr8PQsmNMd9EEk0hQ7HbtRocHmKsGxdX6p+OWr8gtJBG1Olbq9pEI2kuhjP7izPc8GXhTFrbJ9/lxepWsF2pL2B82RYFWisueSit6K6t07R2fJELO4pqMPZi9zU78+z2eLGnPhqmG9LppD2OHdZozri9yU8csog5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123558100)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148);SRVR:HE1PR0501MB1929;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0501MB1929; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0501MB1929;4:wGZtcwBIkTuyZvZw73DVzVaIWg74DQmrifjUtsOpEH67mQM4eUXdVzQ0ltcobWoLPZniAWKunhSKaiW7GXZyK5cIYk65KFOIDcNcyIdFA3MaYh1uwVDKe/bithxnE8EqOiFPXs5yxshaNlR5kIJMgUz/YS/EzxrUBANfTj8Vk9EvYu4u3AZaHxPXBwkVfEBvYttaTtP4cACe/h98obcAw6k1YP7AQtA4e22Msl03ZFh6qqHDMzidVFd/zyJlnMK1Egj3qKz9aiEA1hk/eUZaGt8UzDdAL74FZKb3ZTwLuJt7H4ocn1KmTQTEtE6+wmzRy+GzaI8WYqGrlT0DiMhtjTXqd7ENJZ7B6wNz4dt6aabtSziCY2xCnv7DZSq4j2v1RqZdZNrzckOJPvDhPdMQik6wHYOhtNuiNwZ2PoAmfzsFskl3OvclPD7Gn2kBavNC92twxYddLE9YWSr7932++J/KQG+csGY3nsj6dptqJIZXnpf8B5QyA+9aSAEKBjwEyXJvIz5pgXPuLOY0833/pZ8BQE2kKaHbiqEzzTA5xuB1Tkg+rpOep06ctgPNp/eBFS4Gfxpug+RpQCBklkIKEguPYqTAPxHCRF3Y0Ge9YKLw6oJPen4dCrwyz1LG2dsbMduaCYmHDWb7PGQ4dWsV3gBe5TYVrejM9qQ9WusVdu/qk4I+smSldi/sIGqYQBokdyIDZq+ZEWvLjp85xh398k4QPL0m58q6lxx3ZTVCn3NcTVQ+2NkSJLoHp5Kk1hwHof3qde3zPZ8jFvfMI/xXSsp2FjX2+Z1x37bMdNGqVVwCHoTYj97j3V4+Kh57sWgkMYVYDaflLRkNeUEPYM7pbh4e+QMsaoqGRcBo5jV7Pjc= X-Forefront-PRVS: 029097202E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(39840400002)(39450400003)(39860400002)(39400400002)(39850400002)(39410400002)(209900001)(51914003)(24454002)(377454003)(189998001)(5660300001)(305945005)(6486002)(86362001)(229853002)(2906002)(84326002)(21480400002)(54906002)(53376002)(54356999)(8676002)(38730400002)(110136004)(81166006)(3846002)(33656002)(1076002)(66066001)(98436002)(76176999)(50986999)(6306002)(9686003)(6116002)(4326008)(6496005)(42186005)(966004)(53936002)(6666003)(2950100002)(53546009)(512954002)(25786009)(260700001)(76506005)(6246003)(6916009)(18370500001)(2700100001)(6606295002);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR0501MB1929;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HE1PR0501MB1929;23:bDxDgl7VtUfvN9ljJYbIWtKKOImZN4oFEYdmBk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BILb75b6ZRpoAnCmK4+/4apc5JublJcm5N8R5Ed9lm37172DYoSpB7RuDFExQr2NVFrwW0iszxodb/VRI+tgxcxOaEjUnBHz9HE0=;5:E8yRsY5zGAk60hn52a3kNE1p55JDNbVM6S7HnrnCI2GFG0qOKD2yyihLB+vyMyuhQzbR7ZJBCQqh/1PJfOv5uEQBH82L3NVB1s7ZuKCAtR6XzTdK6fzDaKChUWRMIi9siEenyDMvCunijglTG3Vm6A==;24:u7N0SvNnQy/xyW9UiQ6Z4db23wko1kfZ6t6Mah6Pi+bhtkn/tEbyL5n3JU1EhMyyrZ/Ym7gdZxtvOKLtFahypcEcJr+BIOKhTkQcXmijAJ0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR0501MB1929;7:BwnZ/y4k0c0okXY0QJo2wyjqL2RgHKA9iyc/ZWJRU5JgS76YMVnTuPYXDs7Qwloe90I5Pb2bPH72QMb3IAj40HRyavpIO6McCy7psjKdF8hBXj5Z8CIXQlGSwkS5ImKmArKaHoo52kiYsfCatNcufyj1zn4s+y42dAAvbRPxmyz+yIZu0fpLgQY5buYYIWXtBNfXjAzsKnwDTNZk/V/XK+aaoyrnOHAbz0Zgn2LFj434JgbX2bBiI0QwEFytDpu4GwX0HYKKWosfdmGjpusNX3MqA6ZoQ/GAuMDtHTal9ZWTR4AqLv8cGlKwgSG6TJThvw/XN+lOfncL9Ofjs/pISw== X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Apr 2017 13:13:01.5320 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB1929 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2677 Lines: 63 --hdMwqcnXK86+cyrC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 27, 2017 at 02:04:15PM +0200, Arnd Bergmann wrote: > On Thu, Apr 27, 2017 at 1:55 PM, Leon Romanovsky wrote: > > On Thu, Apr 27, 2017 at 01:04:02PM +0200, Arnd Bergmann wrote: > >> The previous patch addressed a sparse warning but replaced it with a > >> compiler warning when CONFIG_MODULES is disabled: > >> > >> drivers/net/ethernet/mellanox/mlx5/core/ipoib.c:485:13: error: 'mlx5_rdma_netdev_free' defined but not used [-Werror=unused-function] > >> drivers/net/ethernet/mellanox/mlx5/core/ipoib.c:423:27: error: 'mlx5_rdma_netdev_alloc' defined but not used [-Werror=unused-function] > >> > >> We should never export 'static' functions, so this makes them global > >> again but hides them in another #ifdef like the change before. > >> > >> Fixes: a7082ef066f0 ("mlx5: hide unused functions") > >> Signed-off-by: Arnd Bergmann > > > > Hi Arnd, > > > > Thanks for the patch, but Stephen and Saeed already sent patch similar to it. > > http://marc.info/?l=linux-netdev&m=149288674816288&w=2 > > That link is for the patch that introduced the warning that I'm fixing here, > it showed up yesterday in linux-next. > > Did you misread my patch, or just give the wrong link? Sorry, I misread you patch, because I prepared patch which add users for these functions and didn't notice both "static" and EXPORT_SYMBOLS at the same time. I will send it in a couple of minutes. Thanks > > Arnd > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html --hdMwqcnXK86+cyrC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkhr/r4Op1/04yqaB5GN7iDZyWKcFAlkB7mgACgkQ5GN7iDZy WKfasg//c/K7nxVllkX26KHp0Vpmh1yNiqs/LJEG3vBc2GPv6hDytmupE0TMUEIU bo6oHowYUCe3MnBHNLeNDo9Bumq5kGwsmwPv6UP73NxqPE97qmhDAiXX0abBmrin GD76DejozoHEelGImceTrzFyZTRGbhH3SdBDRB1hs3Kz+VrTK+iJvFCVyz7/XbSK utC7AiQLDd8AAAmkzhITo++bHiJN/k2ks/2DGcDhhlDMCZv/9NzSU972SpGDj4NI tvaUDXHOweh8/hWnAkvvZqSNF8FZgCXNivhbSiyLup12t2MKOksbdyV9QkwahcJU vrx5s34ZFjV+RjFH8HrJGFYORf08DIFWHRV1qHWDK7FcSAhJOS9WITn1GKByl2R2 qAQUX8Qhksg83AQs75EZDZNC7rj3RG2tB/nvxzDFWOagxRKi4L5ngYm2UFZYhG6M Oy8e/MynLN1O3KnaK5nrTz4sQvuFVhcyabsBX6Ooz6ixUIrNR1ghJP6uXRmi4Er4 ti8BNIxmLmoWmKyQOCLkrwm0Up6VTK/eEsIj8TCMBvgVYLj+huyDnyE8syiFhVY3 sFgOSuqkpoZL01AjIUZqQqzwLasGZuturYGZMnsVGp/+IVoIxNyruwGBgO3nW2Gm mkrwCfdMu4hgGZsYVrtCNyqPmxt2H2IIm/y8Fu/lndm4MHqZUGc= =hT5S -----END PGP SIGNATURE----- --hdMwqcnXK86+cyrC--