Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S947423AbdDTUhk (ORCPT ); Thu, 20 Apr 2017 16:37:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52356 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S947405AbdDTUhg (ORCPT ); Thu, 20 Apr 2017 16:37:36 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B9CEC8F28D Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dledford@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B9CEC8F28D Message-ID: <1492720654.3041.16.camel@redhat.com> Subject: Re: [PATCH 00/29] IB/mlx: Fine-tuning for several function implementations From: Doug Ledford To: SF Markus Elfring , linux-rdma@vger.kernel.org, Hal Rosenstock , Leon Romanovsky , Matan Barak , Sean Hefty , Yishai Hadas Cc: LKML , kernel-janitors@vger.kernel.org Date: Thu, 20 Apr 2017 16:37:34 -0400 In-Reply-To: <1935365a-bd7c-461e-6a84-0c5d3a501fff@users.sourceforge.net> References: <1935365a-bd7c-461e-6a84-0c5d3a501fff@users.sourceforge.net> Organization: Red Hat, Inc. Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 20 Apr 2017 20:37:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3380 Lines: 72 On Sat, 2017-02-18 at 21:45 +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 18 Feb 2017 21:34:32 +0100 > > Several update suggestions were taken into account > from static source code analysis. I've dropped this entire series.  If you want me to consider it, you need to respin it with the following changes: 1) Put all similar corrections in a single patch.  If you are replacing a sizeof() usage with a safer sizeof() usage, then I don't want one patch per replacement, I want one patch for all replacements. 2) Use reasonable git commit messages.  "Improve another" is never a reasonable commit message because it implicitly refereces another git commit message.  Unless this is a fix for a previous commit, all commit messages should be standalone. 3) Keep your git commit message subject lines within the recommended size.  You have many that are too long.  As trivial as all of these changes are, I'm not going to go fixup 29 commit messages to take them. 4) Make sure to preserve the reviewed-by tags on the resubmission. > 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(-) > -- Doug Ledford     GPG KeyID: B826A3330E572FDD     Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD