Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2615776pxb; Sun, 17 Oct 2021 20:36:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjM1MdiSQL/xZm92enwR6qW+T09rwouhsdbskl8v5bAPOL+9FdTtkq9Nh3GWxLy587J4Sd X-Received: by 2002:a63:4c5c:: with SMTP id m28mr21160628pgl.67.1634528167238; Sun, 17 Oct 2021 20:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528167; cv=none; d=google.com; s=arc-20160816; b=ybPdlafbZcWx5q26AFgyG9JwnTeERbyZb5vSbn3+T/gcL2Gplb59S2ji7yTGr2+Qnn v9osGNZm+S4meh++nKQzqUXVqaVEley5Ct87zwoJ//mRNHzFGQH5y0KwTBpuetS9QBgU oQJgDCLeUVW1qMCCwr0fUasmgD+T9PO1O+WwggmJNaCzF1LA0fa2hqFJVZXPAK3XFjUC FMkHp5l9keTr4ICs1Pe0sW3hc4BQFoU4GLA4qr3lHisaXbuCsAg4d/N2/jrJ5rTGd/75 W0o494PsgpTMkqkrt6faTGLcyX2VA6LTH7r2fyQ3/vQFkqRctWnNJhXS/3Vl7czPVGVC Z/0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=GRVN2QCx3h8Dn7GgNwjavdJhWEpRQp2xWgOHeVQLVvo=; b=sdsZG6DgbNhatFTCaxBmyg8qMTDZAl3mFDhUKluUSHTmoUORWNTAaXrZWV4PETV4Um pdf+VYIMy6qtdIBbF6o26zThaCwK/RkoUSxCV6577dAO4OCHGbhV7Ibs5Ru3ApYpR/s3 SEHC55D7SnpOs+enNLmCe7Be0pjSCLvinVJIQ7Qla3hnGNsGJYTQGLNAFvSQASbVrpru uWIiNIuLGO9kOljURa9YRMNN/I1p5ZFUeYkVwtdC6d97f2L0MMoHkOMMGbVg0A4meeF8 2RMpayWMaDnBmon/fKyasVu1kZPr2imGB8vG0T3pNHEjvsTebp4PPpjpNzw3N2zqVT8r cNYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=YvuFEt51; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VbZSpCJd; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s12si13326927pgp.44.2021.10.17.20.35.55; Sun, 17 Oct 2021 20:36:07 -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; dkim=pass header.i=@svenpeter.dev header.s=fm2 header.b=YvuFEt51; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VbZSpCJd; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244405AbhJPOa0 (ORCPT + 98 others); Sat, 16 Oct 2021 10:30:26 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:35173 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244409AbhJPOa0 (ORCPT ); Sat, 16 Oct 2021 10:30:26 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B515E5C0151; Sat, 16 Oct 2021 10:28:17 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute1.internal (MEProxy); Sat, 16 Oct 2021 10:28:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=mime-version:message-id:in-reply-to:references:date:from:to :cc:subject:content-type; s=fm2; bh=GRVN2QCx3h8Dn7GgNwjavdJhWEpR Qp2xWgOHeVQLVvo=; b=YvuFEt51buyLnuxSDUrv9YRlgyQVfGP4h+/v/1tFppYT MQf1RXPnyZeGX019XpTTlHxZz5+xKOQZ31iQlk4xJVATrfImPI0YVMXjRtZOPs2t aHTmXjypvIw9AKLW1+Bf7fAwWBxmcjwOVnPE1hr9x2n5CRLYVQmtRbZMp8ku9moC 23uh/sakaRP5HPrng4k9L3qnGnhicX7KfeMXIYBwGQUIDdaqrQPaGt+73nB0Ju+V bJLoSp+l8/1kM86sM1q2nvKUfia/ddZ9AEGTYejGiZrfI2I5HpP2oR/tnUrl/ApL oNxAZaUDPMBgS5j9v4mCaJhRkR2yLnyy0fV2fyGzng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=GRVN2Q Cx3h8Dn7GgNwjavdJhWEpRQp2xWgOHeVQLVvo=; b=VbZSpCJdYtTZ00mqc5fXsa KQN88RDWOYKti20ui4VnDo7OM+0JBh9FPiCqaOP7/YL+NdSuNXoz8e0a+OS5T0eg FyyVP/+rlUzzuYhKK/AcEBwmVhGlgIfANsIA688mpLQ7SBKU60E+E2Rb3MB/PoCn GlO+yN+bVCW6uJCmi9W3dOoFrDNrXidhTq23RMP78op5V0mhj6TOg0oe7CjEkDm6 J0JH3rCOGxIaS6jlttTAbfzrC3hjG/ypZIq3pJrfDVGPEjPbkBnCtYOrTdgXaga8 JXTFjMpfO8rZVlxg17D7bv1f1dquMslNIJvnaGPT/x27Vn0mPWoieynx6k4SwLpw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdduiedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfuvhgv nhcurfgvthgvrhdfuceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrg htthgvrhhnpefgieegieffuefhtedtjefgteejteefleefgfefgfdvvddtgffhffduhedv feekffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsvhgvnhesshhvvghnphgvthgvrhdruggvvh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id EB7802740063; Sat, 16 Oct 2021 10:28:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1345-g8441cd7852-fm-20211006.001-g8441cd78 Mime-Version: 1.0 Message-Id: In-Reply-To: <20211013063441.29888-1-wanjiabing@vivo.com> References: <20211013063441.29888-1-wanjiabing@vivo.com> Date: Sat, 16 Oct 2021 16:27:55 +0200 From: "Sven Peter" To: "Wan Jiabing" , "Alyssa Rosenzweig" , "Joerg Roedel" , "Will Deacon" , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: kael_w@yeah.net Subject: Re: [PATCH] iommu/dart: use kmemdup instead of kzalloc and memcpy Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021, at 08:34, 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(-) Looks good to me, thanks! Acked-by: Sven Peter Sven