From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933478AbeBMGna (ORCPT ); Tue, 13 Feb 2018 01:43:30 -0500 Received: from mga11.intel.com ([192.55.52.93]:1764 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933366AbeBMGn2 (ORCPT ); Tue, 13 Feb 2018 01:43:28 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,506,1511856000"; d="scan'208";a="30967152" Date: Tue, 13 Feb 2018 12:16:59 +0530 From: Vinod Koul To: Julia Lawall Cc: sean.wang@mediatek.com, dan.j.williams@intel.com, robh+dt@kernel.org, mark.rutland@arm.com, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fengguang Wu Subject: Re: [PATCH v4 5/5] dmaengine: mediatek: fix zalloc-simple.cocci warnings Message-ID: <20180213064659.GD3666@localhost> References: <20180209125817.GB3666@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 09, 2018 at 03:55:58PM +0100, Julia Lawall wrote: > > > > - ring->txd = dma_alloc_coherent(hsdma2dev(hsdma), > > > - pc->sz_ring, &ring->tphys, > > > - GFP_ATOMIC | __GFP_ZERO); > > > + ring->txd = dma_zalloc_coherent(hsdma2dev(hsdma), pc->sz_ring, > > > + &ring->tphys, GFP_ATOMIC); > > > if (!ring->txd) > > > return -ENOMEM; > > > > > > - memset(ring->txd, 0, pc->sz_ring); > > > > This should be folded back.. > > Sorry, I'm not sure what you mean by "folded back". Since the original patch is also up for review in this series, it doesn't help much to add a change and fix on top in a series. The fix should be folded back into the original commit. IIRC Fengguang's bot also recommends so.. -- ~Vinod