Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4580728ybi; Mon, 15 Jul 2019 11:12:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx36oU2YsDD6Kv2vmF6KWIaUs/UyGjRST0DHjMURHsBTrIJNxqJVCoUnka4J62pVct+vQ4d X-Received: by 2002:a17:902:704a:: with SMTP id h10mr29160450plt.337.1563214320928; Mon, 15 Jul 2019 11:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563214320; cv=none; d=google.com; s=arc-20160816; b=y2unHOC+0YMr92Yfj0deeINg67kSPc1KznRGa+G2vBMJwS1hag1jJqXMIYU5AwbX8I Fk8a9jIOBJVIwMHwWWjTy3ZEMhm13gUoSBnTRKAjJzP5LDz9vOgJuT7RBwukg9pJTIOS 03gEoiMm2GTLCN5cCgFOM8RFklD3iUiil0UKC0kuUlnsjpusVmwNr+uOdAoUfTEYgyS9 4OGuRzJGXjGveBn3d54kEaNmboZC6Itbo7LF+levSfgv5iElipc8yaL/6/DMf78ulJNT jZyG5D3OPluGDfoek1UCJaQMB6WSpVhkKz6QvwWVGzwBDDc+KEJNZBv4b0GiL8ASIcwx I2Og== 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; bh=jYZYKAc4cXMboCx/2peydkmI+hhxw+p2e+4iD/ro77c=; b=H4rHtHdQP0gmJxDQvadthEQCDB/ttv48S8oKYjhCGo3AaOe1Ngy8vwYknyTTd08Rbl 7+aHDKPc0lBt8M8sbAUuLjNw75Cu/3iC9siqkhUJaWXCmF2zF6TKEJCzhOD/2adZ4xXW h9x6yE8EbxIz0MvemP4C1Q1m/qs6jgNEKITV0ZTBuKU9lf40InvqRZ7D3c0CPOGE1VWl RnbdcGmhVy6FwiLKVLwupi8xU/Xco2vVBrjdGjFjIS6rb9ueP/U9Rtx78sIt5YnF/M+h 4S4rxfvfWL/gHpmD8/34O3CfZuiZbzcrfR0Uwlyq7hyzYEFstxTIOp4+nY+gQjJVBCcN J5pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=F8NFVhck; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si15433973ply.127.2019.07.15.11.11.44; Mon, 15 Jul 2019 11:12:00 -0700 (PDT) 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=@ziepe.ca header.s=google header.b=F8NFVhck; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732130AbfGOSLG (ORCPT + 99 others); Mon, 15 Jul 2019 14:11:06 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:46314 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731762AbfGOSLF (ORCPT ); Mon, 15 Jul 2019 14:11:05 -0400 Received: by mail-qk1-f196.google.com with SMTP id r4so12320256qkm.13 for ; Mon, 15 Jul 2019 11:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jYZYKAc4cXMboCx/2peydkmI+hhxw+p2e+4iD/ro77c=; b=F8NFVhckIungTHtsKgQe+pQO0Vu3TG5O8v6TLBNPm2LSKZVomFfdlxVi7302e4YzWW p58VTnJFCE8qGTKD3U8G7uCwOHI/Cxu5QVw7JcIdWxqaS2lghAGxWj+cyE/9bRSrslPz gx/AtOPYgKNwcI3Ulq+Lt+0aFfLUFkSsDEB84Z6K4jpzQUzrDhcCukP32APpDsViackC kx9MLL4M4RQc0UTIdaNXbUhPPNnMyrfbIn67E6H1JfKoXHPgxBoa0KbqYeKk4R1ZbMcc EtGJVaRDM3sFfgNn1rAhpe3vriDI8ut4GguGgAk4s0ycWhZY4kbSwnHRXAyx1xamMsVm whog== 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=jYZYKAc4cXMboCx/2peydkmI+hhxw+p2e+4iD/ro77c=; b=larXsCK7HZwAlvMq8KRw/YQATtBVv9XbGq+N7zZ22Oiq7Mg/DMONdF3qOP1+wUCuD7 BDNlxGKH7gL8Cc5O+Ydv2MGopzAs048maiMVUr0yj7U4w/w/PIKy4JKDE7GlA2L1wpnM YXD1T/aN8Trl1JWA9AqlX0zNgoigtg8UKSKr9Z3HUvAmbZOwlRSm4GN8F80yrMVTs1Zs SzzFr6IIrp1iWnD2VJjFz93JrTJ+aStUHo4cGFju12ArcBYKz0hkb03J71Sa63pBeB06 fSXiku6uADHfy6yKjJcYBfQ8nIIaB/rGo0L72ch1TEujZSrreTrglwMq+UNWBcNdoCkK XUMg== X-Gm-Message-State: APjAAAVA+GEsq7TLGOWSUZZoI+meJv0+JhLWnbZ98Ysd5bGhgXTiUS+c k5ZcWJE3GVpA3tdImQVDhM9f4hHIaRJ0aw== X-Received: by 2002:ae9:e10e:: with SMTP id g14mr17227313qkm.486.1563214264805; Mon, 15 Jul 2019 11:11:04 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-55-100.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.55.100]) by smtp.gmail.com with ESMTPSA id 39sm8940896qts.41.2019.07.15.11.11.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Jul 2019 11:11:04 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hn5RH-000248-T6; Mon, 15 Jul 2019 15:11:03 -0300 Date: Mon, 15 Jul 2019 15:11:03 -0300 From: Jason Gunthorpe To: Fuqian Huang Cc: Potnuri Bharat Teja , Doug Ledford , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 07/24] rdma/cxgb3: Remove call to memset after dma_alloc_coherent Message-ID: <20190715181103.GD4970@ziepe.ca> References: <20190715031746.6514-1-huangfq.daxian@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190715031746.6514-1-huangfq.daxian@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 15, 2019 at 11:17:46AM +0800, Fuqian Huang wrote: > In commit 518a2f1925c3 > ("dma-mapping: zero memory returned from dma_alloc_*"), > dma_alloc_coherent has already zeroed the memory. > So memset is not needed. > > Signed-off-by: Fuqian Huang > --- > Changes in v3: > - Use actual commit rather than the merge commit in the commit message > > drivers/infiniband/hw/cxgb3/cxio_hal.c | 3 --- > 1 file changed, 3 deletions(-) Why are you resending this? I already applied the v2 version for RDMA's tree. Jason