Received: by 10.223.164.202 with SMTP id h10csp969832wrb; Tue, 7 Nov 2017 18:44:55 -0800 (PST) X-Google-Smtp-Source: ABhQp+SPl0fG3X9xQDvfKmfowsBS+QNurXG7eFwbc4OMd1WXGc4rnco2dtxQof04EC3OenYK6Sie X-Received: by 10.101.75.14 with SMTP id r14mr803151pgq.232.1510109095224; Tue, 07 Nov 2017 18:44:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510109095; cv=none; d=google.com; s=arc-20160816; b=p6l9DIvx4/z+QS6SSkBniQi5Gf1hNSPMaru2qLwG+Vc3xPd77JsZ0LTPkxmx8P1/ee A4rKEui9M4CGzrSATBuR9+HEG5yJwQY4YF9ldRxmy/+PmHdBNscZxJ52MgAHyoxlM1Lw HmN9PoXKuHaCArr8g9jxOUSJduekhRFpM48bW6Fz7ABe/DTxUiNfX8T6e4+p/BiNJZ4w pXhVYDmbV/HWo9f/EdvUdciCiCj3cYgbkDynqL2/17NXGYhvdFZyCnrhTA9/KPZxVGe5 S7xPEbbWOlwqqDbgcts1MTT3i2jZO+orLHp3RyBl77XSQ298jdU9fY7Dks1d6rIYfnjV ht1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=53GdesqXDAcApv4ut0Jb5pbAaD6p/Oy7bG3cxsnfQP8=; b=jgxHje+f+7iAn3nNQ7WiJzSj5AVN7gHlFPmAPyQHT84aS+i7O7rMyG5wAG7rBetzbJ Y5DHhNqEGImOLhT1f8oWhEwsW3A4F7Bl13iZ+79cXNniNPKqiCRG/2KJVUcvwso0bS8/ 2/1y/DPnG2MKOeXAjh5RyYxjU5mi+9mAmQNYeQTo3J5rlTajSBgF4GjXpK5CUleyAq37 8Jb7wNF8qOMTjxqzWubL+JOCPQ8IV+b0w6eMfLK5OrD8f9Sxp5t1145vADBJHpAAuoBF v8rwGVSKvb6e6LKRIKYKMyQqY5hU5Hiyk1aPkxDVal6el0N30z6BL42aSc0K83LZhOj0 Lhgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dIvbATUv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h129si2405302pgc.194.2017.11.07.18.44.42; Tue, 07 Nov 2017 18:44:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dIvbATUv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933693AbdKGVA6 (ORCPT + 90 others); Tue, 7 Nov 2017 16:00:58 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:55225 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933563AbdKGVA4 (ORCPT ); Tue, 7 Nov 2017 16:00:56 -0500 Received: by mail-pg0-f65.google.com with SMTP id l24so413367pgu.11; Tue, 07 Nov 2017 13:00:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=53GdesqXDAcApv4ut0Jb5pbAaD6p/Oy7bG3cxsnfQP8=; b=dIvbATUvPOvFrRDz1xLcD22aPPV0twVhwQRKPmzvB82TKlPaTGLQMUz5mm+oSPptWL ITndYs148YQ3saxai4/v+ZvpPQuZjgEvbduX8A/xSeVKUhDvCoo/r2cVmbJHjF3p/kpH oh9S/Amus9sjHXXqYEWQXzWoauw8dJ4YE36PL5f6dfB/1dugcuXYVNpKtm0qrMpT9UZi BCNXzQ/E6CW0fKj5+epaWMlBhEB1Rlno9rc/IR6PrGQLGhKlwkoYw1eGMP5U/L5G7nuf s2CNJ6iF2W61H9dy5Wxs9BEY6lkaW95u8qNwID56Fbxfts9R/3J6buogkib4Qn4RD0xH x8GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=53GdesqXDAcApv4ut0Jb5pbAaD6p/Oy7bG3cxsnfQP8=; b=AbHq2XUZS42qnceB0jsrbOHSshVfjudSM7EJYalo+buc2I/6Te5Vrvn824PbA7iJo9 ayk+NQc0kpRva9SpgipTy5YEi26qXjjsWm79SwNCk+XTt0XTmTol1lFxDglxGp0oZgdB I86QrxD1Ri5LP/QZGYfQsCl2WWRBbUL6B+GkAQ3jXbnNIYcuLZLHdqoFaa8mp8ccH1jp 2otq7gD0aiql+Q67flvbdRxMIcniEeK07vdiP2oCis2VaO9Oei/YaAAsVdyRz7HiXvFu +ON3BeKRF2Wh0r1W0bA0tbhEJW+aYGWafS03H8Vq/d2ht8uZbcy4qVOJDt49hZyb+aMb /J1Q== X-Gm-Message-State: AJaThX7kuZT+xi3DvUr6dnH1w9JGledzxvGzrIhUSIqaV/QUrIdc5qDp fPk/JhT8aK+kNWfkKsCptgo= X-Received: by 10.159.218.133 with SMTP id w5mr31771plp.127.1510088456313; Tue, 07 Nov 2017 13:00:56 -0800 (PST) Received: from himanshu-Vostro-3559 ([103.46.195.161]) by smtp.gmail.com with ESMTPSA id o9sm4229175pfk.162.2017.11.07.13.00.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 13:00:55 -0800 (PST) Date: Wed, 8 Nov 2017 02:30:46 +0530 From: Himanshu Jha To: "Luis R. Rodriguez" Cc: anil.gurumurthy@qlogic.com, sudarsana.kalluru@qlogic.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, qla2xxx-upstream@qlogic.com, kartilak@cisco.com, sebaddel@cisco.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Julia Lawall Subject: Re: [PATCH] scsi: Use vzalloc instead of vmalloc/memset Message-ID: <20171107210046.GA3948@himanshu-Vostro-3559> References: <1509832586-1429-1-git-send-email-himanshujha199640@gmail.com> <20171107195136.GD22894@wotan.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171107195136.GD22894@wotan.suse.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 07, 2017 at 08:51:36PM +0100, Luis R. Rodriguez wrote: > On Sun, Nov 05, 2017 at 03:26:26AM +0530, Himanshu Jha wrote: > > Use vzalloc instead of vmalloc/memset to allocate memory filled with 0 > > value. > > > > Done using Coccinelle. > > Semantic patch used : > > > > @@ > > expression x,a; > > statement S; > > @@ > > > > - x = vmalloc(a); > > + x = vzalloc(a); > > if (x == NULL || ...) S > > - memset(x, 0, a); > > How many false positives do you get? Have you identified any? > If not you should consider adding this SmPL rule to: > > scripts/coccinelle/api/ > > Some maintainers may ask you for the SmPL rule to be upstream first, > not all though. So its good practice for you to strive for this. > Another reason for it to go upstream is then other maintainers > can / should be running coccicheck against their subsystem to avoid > stupid regressions. > > You may want to explain for patches like these that they have been > tested by 0-day without any issues found. > > Also add the tag: > > Generated-by: Coccinelle SmPL > > > Signed-off-by: Himanshu Jha > > --- > > drivers/scsi/bfa/bfad.c | 3 +-- > > drivers/scsi/bfa/bfad_debugfs.c | 8 ++------ > > drivers/scsi/qla2xxx/qla_bsg.c | 3 +-- > > drivers/scsi/qla2xxx/tcm_qla2xxx.c | 5 +---- > > drivers/scsi/scsi_debug.c | 6 ++---- > > drivers/scsi/snic/snic_trc.c | 3 +-- > > 6 files changed, 8 insertions(+), 20 deletions(-) > > Split this up per driver, and resend by using ./scripts/get_maintainer.pl > foo.patch and ensuring the right folks get the email. Right now you > just spammed tons of people and the changes may be preferred to go > upstream atomically per driver, always assume this first. > > Other than this, feel free to add to each of the patches you created: > Thanks for the feeedback! I will resend the patch with the necessary changes. > Acked-by: Luis R. Rodriguez Thanks Himanshu Jha From 1583463430366966079@xxx Wed Nov 08 02:33:24 +0000 2017 X-GM-THRID: 1583174285565506617 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread