Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2217206ybl; Sun, 18 Aug 2019 21:18:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdbuDZyGXt7WSwdAs9M5YT2uliw8vTYDAaIOsxYVE3u6vKtHrfZU0YtKSGeOnuTzd02blh X-Received: by 2002:aa7:8e10:: with SMTP id c16mr21715699pfr.124.1566188302506; Sun, 18 Aug 2019 21:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566188302; cv=none; d=google.com; s=arc-20160816; b=PxJlxoK6MEaPHZqsTOaabybkIdJQUK+N9+K7SfcCens1yy+huOmr9r5UxOfLDdhq0A p9kMPyrT2IJrcuh86BdQqC0Rn5u37S/AmorYno5bcDXAZKk4MwHVCPc/KJAzApBgeBy6 SReX5RJYhVUEsrrkQsB72kY8R9UNA1fiMtNxLkM2GgAz+hwtNVym/pLkNCEvQnp3JtNP GFpmHItvi9YMy+TUPfE76jOm9mcwCQDKbUmSQDa32KiGadDEYmLSi9Nwt3/h1OOD25RC RJL8teNlIn5fUGQiTQkmy+QuS5ZrZV+/ih8pBSMp0EmMLtrvoJkRkNS+/jN46D4aH1+s vBJg== 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=IbCA3+sRi1vwFgWGzHijf0NDsTwyWj0F82bl8GeQoNU=; b=G9xwDGPw6tzcn284lWQ5NqZpWpDry1wLBc78xUNBOvcMUbsLgxksqR7fTd6bMs+1IS VdHZhorvsNZkUya3M+EhwpwvvPhRNFV9cW3Tso81gL5O3XbqHTDBp6g8g0B1zuQ/C8l+ y2rqqaofBqFm4QBwddvBHHOQ++iN5RLRXQdzuWa1DEo87EF3WUREzeoGFmfSB0hT+eEY ScqOui2jR8TyRFHcNiq4kjhKYAulV45sNRbRCxWHEsW8X8UJoatjXHYL46zuNdAU7+/D nkkkI72eSC0cII5B2NJj3sGi6E/3bun5dmtt6Q1yw/ar8JuL+xvpw1JRIiLKjbhbxxoD hKJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=USNDYhJe; 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 d7si8952493pgv.86.2019.08.18.21.18.07; Sun, 18 Aug 2019 21:18:22 -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=USNDYhJe; 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 S1726470AbfHSERU (ORCPT + 99 others); Mon, 19 Aug 2019 00:17:20 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:34907 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfHSERT (ORCPT ); Mon, 19 Aug 2019 00:17:19 -0400 Received: by mail-ed1-f68.google.com with SMTP id w20so380744edd.2 for ; Sun, 18 Aug 2019 21:17:18 -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=IbCA3+sRi1vwFgWGzHijf0NDsTwyWj0F82bl8GeQoNU=; b=USNDYhJe3CqyU1LZcyU12zH7sxmglhu2BEaKMXiAvIZQrefa5w3O3Q8q2Fsn4+C2IH ghZBxj5+7IGK50lx1569Ey/8qPFUTixmpa2ANwy5fzScNl9aIhN8UPzwaaEcf7McCB3D Les7iJtnWTo9FeitxqnGT/OM+twm5a++OaRag= 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=IbCA3+sRi1vwFgWGzHijf0NDsTwyWj0F82bl8GeQoNU=; b=NEsuuOLq/J1ux6ST+K0JgYaQR/w8ET7A8ZgmQs1V8iq+cOhcqj8G+QDU3u91yh75zB tsydYhmN/xwpNVKUGacvAbKcXrhIEuNGdefvldlQ3GCi9XegXg7SK/RMGMo5Ni+jC1kD RvEIPu3g93gMQBoLD/tX9MThVnKFRLdp54h6mA83tbpnS5oxnVerCkwsY8PZK1akvlm7 NdgNIjwwnaKA+FtzAfbfQuzDImn5YBHb5OXo+pRU9s1CrQUy/gtRj/BefB63AcJDZvZC CWP4C1jOC2or3cTV+eLiI0gRIp0sTIQffTAvicclW+3ogcOi+oTXdZaAIR6PQIpsU4sr /jCw== X-Gm-Message-State: APjAAAWiDLmnIYotKVdEgryLktU2RhWiyNJU1pM7iR+MT0G+j9VFw30I COpAipMu5kTebbfQTIlUNyhhyuvwK4dIug== X-Received: by 2002:a17:906:7695:: with SMTP id o21mr18868315ejm.175.1566188237246; Sun, 18 Aug 2019 21:17:17 -0700 (PDT) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com. [209.85.128.44]) by smtp.gmail.com with ESMTPSA id r27sm2546182edc.17.2019.08.18.21.17.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Aug 2019 21:17:16 -0700 (PDT) Received: by mail-wm1-f44.google.com with SMTP id v15so327796wml.0 for ; Sun, 18 Aug 2019 21:17:16 -0700 (PDT) X-Received: by 2002:a1c:cf88:: with SMTP id f130mr8553542wmg.10.1566188235646; Sun, 18 Aug 2019 21:17:15 -0700 (PDT) MIME-Version: 1.0 References: <20190725030602.GA13200@hari-Inspiron-1545> <20190725135007.33dc2cd3@collabora.com> In-Reply-To: <20190725135007.33dc2cd3@collabora.com> From: Tomasz Figa Date: Mon, 19 Aug 2019 13:17: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 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? Best regards, Tomasz