Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1986001imm; Sat, 18 Aug 2018 08:30:27 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxb7L0UPSDy5cY//kuosqkhBPBFoIjUyU4i1BIk6ClZEy1MeZNEWz3DCudgFJBeqm4YJXnp X-Received: by 2002:a63:a919:: with SMTP id u25-v6mr37779550pge.211.1534606227158; Sat, 18 Aug 2018 08:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534606227; cv=none; d=google.com; s=arc-20160816; b=H7cPVLp5Nm1nvLEeYTTV5STiMvY2mRi9BY+ZbxSN1x/vOLMAkFWc+X3SOWwbbktQ/8 ldbJYcUQuUYZceEctdacFWU0msrAIe5BNGd70nGY4DRvXU4SZd+3iBNdlnjpKzL9vgjS vYNqrlOYSyEJD1P4M+t6oicffLU8Y781W5n8ni7PYyBMRPS0qFXzmD2mmmVGyXutXRyX I0AQbVubkX4b+4lunNXugrJmVuk8lhyPk6Q3obxVLyvydbjWktpksxofEv1aSLDFLwkz QK7mUuwjAnGyTYEBY4Pc/cD0TgpMzH6joLGMbwj2ZHcn7z/ML17zyi9vfz8N5VGxtl3O EDSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=LNI6IPPwD09fTadR2sgWawrk9T4lt7Ky9NZ2ZpcuXRk=; b=SgG4o3sY96p9dWgTblAYU4SkPOHhqVESScs1hvGkcEgYI5oSs2JBKaSoBqGL2HwXtv pcT1eN2vcwbf0BB4dHUgaBaxv0yP0Hu+srOIT4fQ8G785VKIp6dM0bywL58SPFoI75sB F2vJBbviJDOEWTaHhObtRnUpPvS3enXHSryPm/vwKcyWKL1hsLkg5fr5Pt1I81Et6eiZ erKVg8wZ+9KL58pHJMAmi7NPbSHZkf53RJaadolfAxHdpn0vf6qkhv5LxzOVTxWwmpzU /5xSpgt/iUtn0jHvvQxJmnoRZDHDL5eVgjwuixFkk/+elw3B7nUYHCDwo6hkfYwlYRyK 3aJw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4-v6si4593427pff.1.2018.08.18.08.30.08; Sat, 18 Aug 2018 08:30:27 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726387AbeHRSg6 (ORCPT + 99 others); Sat, 18 Aug 2018 14:36:58 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11142 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726227AbeHRSg6 (ORCPT ); Sat, 18 Aug 2018 14:36:58 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id DE7DD57898F3E; Sat, 18 Aug 2018 23:28:48 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.399.0; Sat, 18 Aug 2018 23:28:47 +0800 From: zhong jiang To: , , , , CC: , , , Subject: [PATCH 0/2] media: Use dma_zalloc_coherent to replace dma_alloc_coherent + memset Date: Sat, 18 Aug 2018 23:16:53 +0800 Message-ID: <1534605415-11452-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The issue is detected with the help of Coccinelle. zhong jiang (2): media: ipu3-cio2: Use dma_zalloc_coherent to replace dma_alloc_coherent + memset media: mtk_vcodec_util: Use dma_zalloc_coherent to replace dma_alloc_coherent + memset drivers/media/pci/intel/ipu3/ipu3-cio2.c | 6 ++---- drivers/media/platform/mtk-vcodec/mtk_vcodec_util.c | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) -- 1.7.12.4