From patchwork Wed Jan 6 13:30:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zheng Yongjun X-Patchwork-Id: 12001617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.6 required=3.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32596C433E6 for ; Wed, 6 Jan 2021 13:31:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D4A7A23120 for ; Wed, 6 Jan 2021 13:31:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726503AbhAFNav (ORCPT ); Wed, 6 Jan 2021 08:30:51 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:2941 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbhAFNau (ORCPT ); Wed, 6 Jan 2021 08:30:50 -0500 Received: from dggeme762-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4D9qvl3Dq1z5F1p; Wed, 6 Jan 2021 21:29:07 +0800 (CST) Received: from dggeme760-chm.china.huawei.com (10.3.19.106) by dggeme762-chm.china.huawei.com (10.3.19.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Wed, 6 Jan 2021 21:30:02 +0800 Received: from dggeme760-chm.china.huawei.com ([10.6.80.70]) by dggeme760-chm.china.huawei.com ([10.6.80.70]) with mapi id 15.01.1913.007; Wed, 6 Jan 2021 21:30:02 +0800 From: zhengyongjun To: "clabbe@baylibre.com" , "mchehab@kernel.org" , "mjpeg-users@lists.sourceforge.net" , "linux-media@vger.kernel.org" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" CC: "gregkh@linuxfoundation.org" Subject: =?eucgb2312_cn?b?tPC4tDogW1BBVENIIC1uZXh0XSBtZWRpYTogem9yYW46IHVzZSByZXNv?= =?eucgb2312_cn?b?dXJjZV9zaXpl?= Thread-Topic: [PATCH -next] media: zoran: use resource_size Thread-Index: AQHW5C4k5dTBnbfL/0ecILiTVyuNR6oal3pw Date: Wed, 6 Jan 2021 13:30:02 +0000 Message-ID: References: <20210106131702.32507-1-zhengyongjun3@huawei.com> In-Reply-To: <20210106131702.32507-1-zhengyongjun3@huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.178.249] MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sorry, this is my fault, all this media related patch commit msg is wrong, I will send patch v2, please ignore it. -----邮件原件----- 发件人: zhengyongjun 发送时间: 2021年1月6日 21:17 收件人: clabbe@baylibre.com; mchehab@kernel.org; mjpeg-users@lists.sourceforge.net; linux-media@vger.kernel.org; devel@driverdev.osuosl.org; linux-kernel@vger.kernel.org 抄送: gregkh@linuxfoundation.org; zhengyongjun 主题: [PATCH -next] media: zoran: use resource_size Use resource_size rather than a verbose computation on the end and start fields. Signed-off-by: Zheng Yongjun --- drivers/staging/media/zoran/zoran_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.22.0 diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran/zoran_driver.c index 808196ea5b81..d60b4c73ea80 100644 --- a/drivers/staging/media/zoran/zoran_driver.c +++ b/drivers/staging/media/zoran/zoran_driver.c @@ -1020,7 +1020,7 @@ int zoran_queue_init(struct zoran *zr, struct vb2_queue *vq) vq->buf_struct_size = sizeof(struct zr_buffer); vq->ops = &zr_video_qops; vq->mem_ops = &vb2_dma_contig_memops; - vq->gfp_flags = GFP_DMA32, + vq->gfp_flags = GFP_DMA32; vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; vq->min_buffers_needed = 9; vq->lock = &zr->lock;