Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2912518pxb; Mon, 18 Oct 2021 04:40:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKWwCVN5ULoGHENL5IX0VliPzwVg+iikD+3GTpwtK/bIBRu+gAeOKoYTkMyUXCkhWT9au+ X-Received: by 2002:aa7:c78d:: with SMTP id n13mr42384803eds.137.1634557210718; Mon, 18 Oct 2021 04:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634557210; cv=none; d=google.com; s=arc-20160816; b=oBCQoR+Jh0BSYO4Tp4N1mnRLA16dILOVJMZKSBbE7RC8hYrVQUVypi7ALyJ5TjegjY OooBbVcAu2WX0tWetzwozCcPqIBkacbPYGZTAZh+udm1wCA8WhcuYdowfT9NCwJSH8Bi pK97dLp8gTlTQjbwX9D2cB38vbWbcP4w6GSK9GZi2HgdDnlhq8XYnGFsh8TX9wPIX4WM xZB7JWm6pVPvvtKYw/dz27ePtKfBqmBCoB9e5HyDaYZWESqxtvs+flheer6no+/wim3S 4Mq29egFjVbyr/99YE19QDvS4tSxnAeGqcvDAKYsLRtc39Eaqk+T+fhoxc2fZWgc0TAY fc8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=fIc74ts47/TqzFzh4KBjlwKDV0TIPe+KKv9Ohz6sVOY=; b=qtTK9R2/y/VrCwwp0wKDVyBd1d3AwUCRfVJ+xZ/OtrBAIrsslvRu4h/eXK5BcT/2kD wh0dgKM9JzvQbVhPmF5xOfZVxydyscoRVvMoukBYAhDX/iQlet8U0S46uEl+gi0kbPvx nL+W+cPk6q6m7SwZaAhVjqFJUmwyCnvpwVxg7wgYKdVesoE7TbZnIc2J+QtSjAQqRwcr iWLSa426Cp4fUJTejueArYeUeg8YuTEGQ1X45Pe9hY8PyQxzRiOKei19rB7A6wHpvTzK ysytoGytI+7UjHuhUwEAYz6PqiTmz1wF/zQrIxYrgwOZD7uAFtXlogl1EJ4H+I0KIO4C o8ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp18si19117521ejc.464.2021.10.18.04.39.46; Mon, 18 Oct 2021 04:40:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231217AbhJRLiU (ORCPT + 99 others); Mon, 18 Oct 2021 07:38:20 -0400 Received: from 8bytes.org ([81.169.241.247]:59774 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbhJRLiT (ORCPT ); Mon, 18 Oct 2021 07:38:19 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 4441E450; Mon, 18 Oct 2021 13:36:06 +0200 (CEST) Date: Mon, 18 Oct 2021 13:36:02 +0200 From: Joerg Roedel To: Wan Jiabing Cc: Sven Peter , Alyssa Rosenzweig , Will Deacon , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kael_w@yeah.net Subject: Re: [PATCH] iommu/dart: use kmemdup instead of kzalloc and memcpy Message-ID: References: <20211013063441.29888-1-wanjiabing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211013063441.29888-1-wanjiabing@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 02:34:41AM -0400, Wan Jiabing wrote: > Fix following coccicheck warning: > drivers/iommu/apple-dart.c:704:20-27: WARNING opportunity for kmemdup > > Signed-off-by: Wan Jiabing > --- > drivers/iommu/apple-dart.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Applied, thanks.