Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5366621rwb; Tue, 17 Jan 2023 12:45:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXtk3OmyJLjjIbcPuCgKv1KRPeyWJiRnWaUdl4ArWPBA5EYunT9NNCc+Zq8wiMQoZ0iZ3/gO X-Received: by 2002:a17:907:2135:b0:86f:fe8a:be with SMTP id qo21-20020a170907213500b0086ffe8a00bemr4292566ejb.4.1673988300204; Tue, 17 Jan 2023 12:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673988300; cv=none; d=google.com; s=arc-20160816; b=LRCPnf66UuoJTAFIdwF2fnDV9Ip8zZT4Z3yL32zEHricUN8srtYue5tclyOY+xxVFk 1UTxoHnbAt9l0hOQvsKQcOlgynBdF3YWh90QYkJsWOyAjQ1KYD3tsbANnLyDIWvcO7Rr TI8uAA/5fAXfsgvLvexmDqFBMkedBwxezqLeK0RtjvIUH5Iw35eHtJRpOHmVstYCU7Qv xF+eGslAYtyhwSj77ckzXwliwos/GqzFuGHr9pBijE6Qv6pLh8da0Hu6mu1O+O5G2OLJ GZR9SCQf4lcMaawqSkdZjos0UxubTGaEFjrc6EFedMoI0Q+Y8/2aJ9xfgjCdJhgKJ4ZU xtCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=kNRce1DY0Jvb83s2IXPkU5dqA2ZpqbcWnTvOcHmKan0=; b=AxfADuDbq9Sc+Cb8F1gAYTFVF0TUiEapSaJ8d7PkxdtbVOV/xec4xa8ljwKuPPT2f7 gAUsS/yStwsjSZtazCtBKx7Jem4BxKeLMeFCqY5LEbgKorfd0ohRyauKs0BfOyOepEVb 44aM2rktqg5xoq08D2e2Zw5KYGF+Hb2L7lfzJ8iddST1II0dOmY5JYQ1LdPr1t/NiwS+ RXM9x62Twwo/XitE1UDweSyQl+n2YZF7XFn0BfasYVsDtz2aCjfXB/ZT+oxEe3+2nw/n u75vq/l4bppzT/o/ztgIxL0tU/IyWyPZPRQOYsMusE8Nk15seO99QZfRj489Su2+mpzZ HwTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg18-20020a170907a41200b008650ce2977bsi20820741ejc.641.2023.01.17.12.44.47; Tue, 17 Jan 2023 12:45:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232963AbjAQTlz (ORCPT + 47 others); Tue, 17 Jan 2023 14:41:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233409AbjAQThe (ORCPT ); Tue, 17 Jan 2023 14:37:34 -0500 Received: from smtp.smtpout.orange.fr (smtp-26.smtpout.orange.fr [80.12.242.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3812E4994C for ; Tue, 17 Jan 2023 10:42:28 -0800 (PST) Received: from [192.168.1.18] ([86.243.2.178]) by smtp.orange.fr with ESMTPA id HquGptzuwnIv0HquHp6GL6; Tue, 17 Jan 2023 19:42:04 +0100 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 17 Jan 2023 19:42:04 +0100 X-ME-IP: 86.243.2.178 Message-ID: <345bf5a4-dd58-e906-0236-781ef04bd7e8@wanadoo.fr> Date: Tue, 17 Jan 2023 19:42:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: RE: [PATCH linux-next] atm: lanai: Use dma_zalloc_coherent() Content-Language: fr, en-US To: David Laight , "'ye.xingchen@zte.com.cn'" , "3chas3@gmail.com" <3chas3@gmail.com> Cc: "linux-atm-general@lists.sourceforge.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <202301171721076625091@zte.com.cn> <913000213dd14e3b9da69270134aafa3@AcuMS.aculab.com> From: Christophe JAILLET In-Reply-To: <913000213dd14e3b9da69270134aafa3@AcuMS.aculab.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 17/01/2023 à 16:37, David Laight a écrit : > From: ye.xingchen@zte.com.cn >> Sent: 17 January 2023 09:21 >> >> Instead of using dma_alloc_coherent() and memset() directly use >> dma_zalloc_coherent(). > > I'm sure I've a brain cell that remembers that dma_alloc_coherent() > always zeros the buffer. > So the 'zalloc' variant isn't needed and the memset() can just > be deleted. > OTOH is it really worth the churn. More-over, dma_zalloc_coherent() has been removed at the very beginning of 2019 in commit dfd32cad146e. It is not existing since v5.0-rc2. \o/ CJ > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales)