From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754151AbdBRUqg (ORCPT ); Sat, 18 Feb 2017 15:46:36 -0500 Received: from mout.web.de ([217.72.192.78]:65204 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753833AbdBRUqd (ORCPT ); Sat, 18 Feb 2017 15:46:33 -0500 To: linux-rdma@vger.kernel.org, Doug Ledford , Hal Rosenstock , Leon Romanovsky , Matan Barak , Sean Hefty , Yishai Hadas Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH 00/29] IB/mlx: Fine-tuning for several function implementations Message-ID: <1935365a-bd7c-461e-6a84-0c5d3a501fff@users.sourceforge.net> Date: Sat, 18 Feb 2017 21:45:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:XtGwhh1ApoPdK4Vo172PVVqQgNzEKqvawJY7R97VXLtCfNvJKzA 6/xn8Q6CiNk1nzESePjXhuy042F08lD6waEAHWxz8DBsnzhje4jpz66nnPK4ZeFlE3ELZ8I ZlxEUBbN+nkfFnTFz6N+mkj69f7e5FWrzcp9OyDwSid2PF1NSv6c+SkLhS32y/dTmfbYXaO AXfjaOnC8Iu3tHeZryqwA== X-UI-Out-Filterresults: notjunk:1;V01:K0:nX8HTcjNd8s=:7V1V4w+vYGli4ZMsqtqN+u xz1E6zDMeLXId4PRqRyk/Hh67ud31RTxGQGSJ3Xttss1KwAmGdpZur7BWXPIBhCZ5t7XLf1VP 87lKPzqq7Sxp+xj+xFM/MKehKRDiZfVGmUsgToZyqYED/pac7zlzuf+I/LlNEwMMsos1npYwD lyagdbwyrE859CiviCxOozDDVE5I8dDzTJVR5F5pVEbyUAR10eTm964TArRosiu8dIHNyVoxH Mjor3BU5JtDY77t8PS8RDw9TQmhlNMn6uXl/433cu+speKafZ7AvXSCSuxVX9xkgBay891h1R E9fH+VuhfVnoJpN3EeI+tPAHGfXmytcFK96357RH85rDtQAN/Yw7VYeiLz23RlZDWvkdvfsYt R2qzkn+lAu/QWNXEiJmuiHPyOYH8lhEW/X9wnwyGIDzFxip2TcyltGWs5sxiBl8U4z4DUWuzk X8Nnl4Mg+YSFuLsWuZK3qznvIcl86yybWXRziXMauLPKN2IAcGHSeRj7I6IPy41KgDu27+HYM nXvXP7a0FwwbraTsPJy5dwtbI2m6Pm5m6s31xznQZFPUVKl1E4UxmuTLptALQQYnymTeV2OZA YxU/3ntDHMQKm70jnSz/WG5stiVNmfeqNde4jsyy8OVssY6OYQbC8RlIxs0jkrx62sgKXMFpW PciPKQIndQ8R7lH5ImwA/e2OOBT7Wh73B+b58MPwfrtlyQ8n37VH5KV6PesPdkhfNtbImLsYL XZNyXVF9I7rrlTGvJqwW+8EFwLFrDpRA7E6VrGwUwCNFAhvUiYZTZQa8qVLB3yZlERBPAduRD bjaJDpl Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sat, 18 Feb 2017 21:34:32 +0100 Several update suggestions were taken into account from static source code analysis. Markus Elfring (29): Use kcalloc() in mlx4_ib_alloc_pv_bufs() Improve another size determination in mlx4_ib_alloc_pv_bufs() Improve another size determination in mlx4_ib_alloc_demux_ctx() Improve another size determination in alloc_pv_object() Fix a typo in a comment line Delete three unnecessary return statements Split a condition check in handle_slaves_guid_change() Delete an unnecessary check before the function call "kfree" in free_pv_object() Move an assignment out of a check in forward_trap() Enclose 15 expressions for the sizeof operator by parentheses Use kmalloc_array() in three functions Enclose 17 expressions for the sizeof operator by parentheses Split a condition check in five functions Delete an unnecessary variable in __mlx4_ib_query_gid() Delete an unnecessary return statement in do_slave_init() Improve another size determination in do_slave_init() Improve another size determination in mlx4_ib_add() Delete an unnecessary variable initialisation in mlx4_ib_add() Delete an unnecessary variable assignment in mlx4_ib_add() Delete an error message for a failed memory allocation in mlx4_ib_add() Delete unnecessary braces in mlx4_ib_add() Use kmalloc_array() in alloc_proxy_bufs() Improve size determinations in create_qp_common() Delete unwanted spaces behind usages of the sizeof operator Add spaces for better code readability Enclose 14 expressions for the sizeof operator by parentheses Use kmalloc_array() in create_kernel_qp() Less function calls in create_kernel_qp() after error detection Use kmalloc_array() in create_srq_kernel() drivers/infiniband/hw/mlx4/mad.c | 72 ++++++++-------- drivers/infiniband/hw/mlx4/main.c | 164 ++++++++++++++++++++---------------- drivers/infiniband/hw/mlx4/qp.c | 173 +++++++++++++++++++------------------- drivers/infiniband/hw/mlx5/qp.c | 66 ++++++++++----- drivers/infiniband/hw/mlx5/srq.c | 5 +- 5 files changed, 261 insertions(+), 219 deletions(-) -- 2.11.1