Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2218889ybl; Sun, 18 Aug 2019 21:20:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNOtDAb+5/ary8uFxZHz24bAhB4DH0KXRuVKDF1AH0t7VMrAd1KPWtqVqQon5FVoSzPZN1 X-Received: by 2002:a17:90b:949:: with SMTP id dw9mr18994171pjb.49.1566188447664; Sun, 18 Aug 2019 21:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566188447; cv=none; d=google.com; s=arc-20160816; b=H6h8oIe6C/7CrQGo8HfJRDUYibAjbH56KNLGZJgy9NyGvVHonOQwYy8XMZ+xaywZe7 LCNKiTAvbu8yF2/jthY7KDPhSt81xAliUn8c5ti+Y3bQNaJ5+COhDiOEyNAK/zL1SQC9 EKYpBdN13jvynJLHjpNCQWVxTF7B+E5h/ufSCjd9FunN+0BZHMAd6Xdkth88r1dZyFiN 66OY6XaCgc5oYs37VHintWBwQCxctguVUR0K6M7el4U84VYTGzDDvDOiHsowDmy17/K0 EXOnAExCwVo2MMYKmgKrd/w0u12N86kvv5RSmFnyK27l4ZKLmO9tBFN8QMGfD9CfRMyq Skkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fbyYLzisYNN1lRqh22A2VNalz6OnIhJsVCaofVl30Uk=; b=ziM0CtHIEy7Rc+skEFu/LjBfYfBU81ZSaRhIptiHl2pSyhuMRQMeiK2yeuyxL3r9eS b5+5MjU/XRY3r86CHPjddD1m00vzhhkKtgv9O2bqR422pYbN3NNhyIfSbnXQ4RH96jyb gd7wKHlv3c2OVqrpiOC8jePm3VFegafMvgfY8ksZd6YHIJWnOwFB4dDo1F5DU41gO1Cy rnGfTe0cluyFmGib6Y+1v+/4wtF93F8DqDoDj0BFnrP2La22oxUjEyXS9dm/+xcXmaa0 XauMZj9wKdgy/m7CH5fZr3PweSYgE6S76zeU3W7qZs2Po98xH7b5VzGsEkx16tF1MBw3 YeQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oTEwwP8b; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo6si8863419pjb.1.2019.08.18.21.20.32; Sun, 18 Aug 2019 21:20:47 -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=@chromium.org header.s=google header.b=oTEwwP8b; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbfHSETV (ORCPT + 99 others); Mon, 19 Aug 2019 00:19:21 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:46695 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbfHSETU (ORCPT ); Mon, 19 Aug 2019 00:19:20 -0400 Received: by mail-ed1-f65.google.com with SMTP id z51so363441edz.13 for ; Sun, 18 Aug 2019 21:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fbyYLzisYNN1lRqh22A2VNalz6OnIhJsVCaofVl30Uk=; b=oTEwwP8bcyoAr7TAwnNcsjRWloPJDG5n5a1SrS1Dpa+L2D0Z7bIuW3Jd6HdaCxwwrb 0+1yFPtCH70cPViosaWFtE2QDWI57k+pzDwmSyAEQHUiiTvB6FJaQBmFuJePHt0pLH8s vUkWcmr/j5oLTVY+LULR6SVUJVsBcHVJw3b/U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fbyYLzisYNN1lRqh22A2VNalz6OnIhJsVCaofVl30Uk=; b=sWZzcyiIrU3wNG+DWAxfH3UTlKuKdDsssbaEkMnPFxEn9vw127PIyFkEC1Yo3H9FTZ d8Nm1Tc163mCwquuJ1sgYFZTqRtjY2cpM+ULv7Da8xhuE7AIFF4OzLO3t4P0aCEBTMTA FS0FGiJDDnWe/VadhzwNhIgmw6GWvmC9IxfYL/OkooV33eI3MByz1vdSnHYMXzbMSVt+ D+8N7xZzeQB1khzfL6eRjiSaLHLB10u7T6JGLaGqh+dCnMleKMg5HGANPACTq6jghE4Y qPuBm9Pmz6m/K8GXdTqujtq8bOeNDpUlQRZVNaWoA8+ut3EyaRrwtQYaOon0Tqhy8S5p owLQ== X-Gm-Message-State: APjAAAVJj4pv6ZuRQQt9fBhBbu/WJzlFzzR1pzedSWG2vrOOY4dGK5q1 4S0jx8/3PkzuWsi9kPg8/ardXm/zdfGTyQ== X-Received: by 2002:a50:d654:: with SMTP id c20mr23255221edj.206.1566188357622; Sun, 18 Aug 2019 21:19:17 -0700 (PDT) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com. [209.85.128.47]) by smtp.gmail.com with ESMTPSA id n24sm1212971ejz.5.2019.08.18.21.19.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Aug 2019 21:19:16 -0700 (PDT) Received: by mail-wm1-f47.google.com with SMTP id p74so322648wme.4 for ; Sun, 18 Aug 2019 21:19:16 -0700 (PDT) X-Received: by 2002:a1c:cf88:: with SMTP id f130mr8561253wmg.10.1566188356079; Sun, 18 Aug 2019 21:19:16 -0700 (PDT) MIME-Version: 1.0 References: <20190725030602.GA13200@hari-Inspiron-1545> <20190725135007.33dc2cd3@collabora.com> In-Reply-To: From: Tomasz Figa Date: Mon, 19 Aug 2019 13:19:04 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] staging: media: hantro: Remove call to memset after dma_alloc_coherent To: Hans Verkuil Cc: Hariprasad Kelam , Mauro Carvalho Chehab , Greg Kroah-Hartman , Ezequiel Garcia , ZhiChao Yu , Linux Media Mailing List , devel@driverdev.osuosl.org, Linux Kernel Mailing List , Boris Brezillon Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 19, 2019 at 1:17 PM Tomasz Figa wrote: > > Hi Hans, > > On Thu, Jul 25, 2019 at 8:50 PM Boris Brezillon > wrote: > > > > On Thu, 25 Jul 2019 08:36:02 +0530 > > Hariprasad Kelam wrote: > > > > > fix below issue reported by coccicheck > > > /drivers/staging/media/hantro/hantro_vp8.c:149:16-34: WARNING: > > > dma_alloc_coherent use in aux_buf -> cpu already zeroes out memory, so > > > memset is not needed > > > > > > Signed-off-by: Hariprasad Kelam > > > > Reviewed-by: Boris Brezillon > > > > > --- > > > drivers/staging/media/hantro/hantro_vp8.c | 2 -- > > > 1 file changed, 2 deletions(-) > > > > > > diff --git a/drivers/staging/media/hantro/hantro_vp8.c b/drivers/staging/media/hantro/hantro_vp8.c > > > index 66c4533..363ddda 100644 > > > --- a/drivers/staging/media/hantro/hantro_vp8.c > > > +++ b/drivers/staging/media/hantro/hantro_vp8.c > > > @@ -151,8 +151,6 @@ int hantro_vp8_dec_init(struct hantro_ctx *ctx) > > > if (!aux_buf->cpu) > > > return -ENOMEM; > > > > > > - memset(aux_buf->cpu, 0, aux_buf->size); > > > - > > > /* > > > * Allocate probability table buffer, > > > * total 1208 bytes, 4K page is far enough. > > > > Is this something you will pick to your tree? Ah, sorry, this is already applied. Not sure why searching for it the first time didn't show anything. I guess I need to start repeating my searches by default. Sorry for the noise. Best regards, Tomasz