From patchwork Thu Mar 3 19:12:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 8495681 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2B847C0553 for ; Thu, 3 Mar 2016 19:13:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4ADD520394 for ; Thu, 3 Mar 2016 19:13:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6BE6E2026F for ; Thu, 3 Mar 2016 19:13:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757393AbcCCTNB (ORCPT ); Thu, 3 Mar 2016 14:13:01 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:36551 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756057AbcCCTM6 (ORCPT ); Thu, 3 Mar 2016 14:12:58 -0500 Received: by mail-lb0-f181.google.com with SMTP id x1so35359326lbj.3; Thu, 03 Mar 2016 11:12:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LNCn0iXlQqBPRxnHf3IsPT6dDsdgi4KjvHQDBKtcRYU=; b=PbPqO90pfessEUGlRacdwGHBV5rrU8avTFOQD+cZ2+Y7UZc0IgSMu+hiHr6WWWGGod qareTlMN2S7J5Of0SCuhRK4p6q7Us9oP1HazLb273NQHai97RdIaiQhKfhqHGtPCLnvI zy3BzCgB18//nADBPmMm/Ir9NVQIyNu3WeVk7SFD8LTvtV2LiJwfK9rua1FPFL1JqHg4 OvaHKGmWK+8Yf5tlruq6HvuBZo/YUIFZoE1u/V8A/2Kt/A3SeVqiOngMIiG9bMOMlWlG 5GFDCwC7Q9BY5jJXAUc5CxOiihmF4ixMBLVvtJxU9dC+bkAoo6UgSynRn2CDoNxTY6Lw ZoqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LNCn0iXlQqBPRxnHf3IsPT6dDsdgi4KjvHQDBKtcRYU=; b=dX9ea7XYxPBev+nUhICg0UOrNCysN45tZoZjgOYe0fKMqWahsAI+j4ECNHgdKrLFEH 2CkPbN0pkVoj9Hy3EUYtbszrtE6MM+/hWuFW7m5R5tX10GPRTZu/jaEawM91Gtg2xYF9 L81eUiEjkf11/wOzBBdNKSktMIfh2IFs4qDS7V1A35F+7Snh8uNQ9rAClWT5ByNX6/NV 5IoZqI2NnIdyf+AbXFUfkWcQjQEdzcNXpt2YjOnr5ESGqe8RMpPzPTxNuhZfCMMDpFdY Ib+gS0VEXmj/scR3+dz7w5JbTilT1uzttLyURRqcGZrVjTf1hZumuxUr0WZKbwxTYqOB HPqg== X-Gm-Message-State: AD7BkJLLL76CVdisIu5st/qrLdmGp+DpRs9GYOC0hMGVUG52asmDaTmWlLEUL5hFFgg0KA== X-Received: by 10.25.153.15 with SMTP id b15mr1679329lfe.136.1457032376606; Thu, 03 Mar 2016 11:12:56 -0800 (PST) Received: from localhost.localdomain (x1-6-74-44-01-e3-62-1a.cpe.webspeed.dk. [80.167.115.215]) by smtp.gmail.com with ESMTPSA id x125sm6687706lfd.12.2016.03.03.11.12.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Mar 2016 11:12:55 -0800 (PST) From: Ricardo Ribalda Delgado To: albert@newtec.dk, Jan Kara , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Hans Verkuil , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH 2/2] [media] vb2-memops: Use bool macros instead of 1 Date: Thu, 3 Mar 2016 20:12:49 +0100 Message-Id: <1457032369-10503-2-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457032369-10503-1-git-send-email-ricardo.ribalda@gmail.com> References: <1457032369-10503-1-git-send-email-ricardo.ribalda@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is the prototype of the called function: int get_vaddr_frames(unsigned long start, unsigned int nr_pfns, bool write, bool force, struct frame_vector *vec); Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/videobuf2-memops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-memops.c b/drivers/media/v4l2-core/videobuf2-memops.c index e4e4976c6849..3c3b517f1d1c 100644 --- a/drivers/media/v4l2-core/videobuf2-memops.c +++ b/drivers/media/v4l2-core/videobuf2-memops.c @@ -49,7 +49,7 @@ struct frame_vector *vb2_create_framevec(unsigned long start, vec = frame_vector_create(nr); if (!vec) return ERR_PTR(-ENOMEM); - ret = get_vaddr_frames(start & PAGE_MASK, nr, write, 1, vec); + ret = get_vaddr_frames(start & PAGE_MASK, nr, write, true, vec); if (ret < 0) goto out_destroy; /* We accept only complete set of PFNs */