Patch Detail
Show a patch.
GET /api/1.1/patches/11751/?format=api
{ "id": 11751, "url": "https://patchwork.libcamera.org/api/1.1/patches/11751/?format=api", "web_url": "https://patchwork.libcamera.org/patch/11751/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20210329002715.74403-2-hiroh@chromium.org>", "date": "2021-03-29T00:27:13", "name": "[libcamera-devel,1/3] libcamera: PipelineHandler: Make queueRequest() void function", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "4450f1e6f9a1eb1e75f57f2e2e26db14b457543e", "submitter": { "id": 63, "url": "https://patchwork.libcamera.org/api/1.1/people/63/?format=api", "name": "Hirokazu Honda", "email": "hiroh@chromium.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/11751/mbox/", "series": [ { "id": 1856, "url": "https://patchwork.libcamera.org/api/1.1/series/1856/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1856", "date": "2021-03-29T00:27:12", "name": "Handle an request error", "version": 1, "mbox": "https://patchwork.libcamera.org/series/1856/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/11751/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/11751/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id DEBD2C32EE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 29 Mar 2021 00:27:27 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 9D02168788;\n\tMon, 29 Mar 2021 02:27:27 +0200 (CEST)", "from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com\n\t[IPv6:2607:f8b0:4864:20::1032])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 14783602D7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 29 Mar 2021 02:27:26 +0200 (CEST)", "by mail-pj1-x1032.google.com with SMTP id\n\tkk2-20020a17090b4a02b02900c777aa746fso5091397pjb.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 28 Mar 2021 17:27:26 -0700 (PDT)", "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:1db7:ae60:9288:b906])\n\tby smtp.gmail.com with ESMTPSA id\n\tj188sm15227209pfd.64.2021.03.28.17.27.23\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tSun, 28 Mar 2021 17:27:24 -0700 (PDT)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"CoOYxXVV\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=IPfuHldJe8ZsSTLGeouvJnaaAIQJGOTMnvYwGW9M4iY=;\n\tb=CoOYxXVV0mobvWfZbzAY6zJVfYBTGf/mq8aITnEflWL5gXBESksi6IwFYz1D0PvW72\n\t+sL0MCHqG0uUNs/xWiMde0cDjzAMqH85XVTuHGY1zGw+vI9RJas07YCRHGHdoPkALiul\n\tPdyg2P3sZLYqi8WurxGR4auipoOGA2nS5VMqs=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=IPfuHldJe8ZsSTLGeouvJnaaAIQJGOTMnvYwGW9M4iY=;\n\tb=Yzu0W20TfNv2YHJnc+6hzBshzljieCVbRFGcxT7v7Cq5qHl1XHDB2HlxEsfvcbFI3u\n\tsGoGwZCzQsKjvV8AVqi7vKUIl9bVL6AKsHT56U2F35PkGzSRIZvlfNiTCTLoMaJJDF22\n\tCMm+dP2IHsqyw0p2Xfn6JY8VfUd4yF+UhUgsiiAWgn9lIfAD1NAQIlIVaSFJfBEP/rJU\n\tDj+84PHAcDIXOYmALGNEZAiJWKXyPVGU1WsYClso9EgJRL/uePZJwGL1odmMOMoD99at\n\tq46j66R6T/WaG4CQsdhuMcqYNpBqOwLxbuDItkBi2auN3NSD6PNoIM+SpBVvARWpLQm0\n\tRRuw==", "X-Gm-Message-State": "AOAM533DY1G5KP2b97m3nOR93GyeQb0yBEXNtGz8ahbw1kxvyjMkyE1I\n\tzxMAspAm4ik7QFAua+/AZa0h8ba2I5pS6g==", "X-Google-Smtp-Source": "ABdhPJyvtzSu7p3YduSl9MVA4mZsFQ9ubVwTJL1bF9nj4wqJ4RJZzkBEYT1oNI9fJN1zOFvjKw1yoA==", "X-Received": "by 2002:a17:902:c408:b029:e7:3242:5690 with SMTP id\n\tk8-20020a170902c408b02900e732425690mr14074350plk.85.1616977644576; \n\tSun, 28 Mar 2021 17:27:24 -0700 (PDT)", "From": "Hirokazu Honda <hiroh@chromium.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Mon, 29 Mar 2021 09:27:13 +0900", "Message-Id": "<20210329002715.74403-2-hiroh@chromium.org>", "X-Mailer": "git-send-email 2.31.0.291.g576ba9dcdaf-goog", "In-Reply-To": "<20210329002715.74403-1-hiroh@chromium.org>", "References": "<20210329002715.74403-1-hiroh@chromium.org>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH 1/3] libcamera: PipelineHandler: Make\n\tqueueRequest() void function", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "PipelineHandler::queueRequest() is asynchronously invoked in\nCamera::queueRequest(). Therefore the return value of\nPipelineHandler::queueRequest() is useless. This changes the\nfunction to a void function.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\n---\n include/libcamera/internal/pipeline_handler.h | 2 +-\n src/libcamera/camera.cpp | 6 ++++--\n src/libcamera/pipeline_handler.cpp | 4 +---\n 3 files changed, 6 insertions(+), 6 deletions(-)", "diff": "diff --git a/include/libcamera/internal/pipeline_handler.h b/include/libcamera/internal/pipeline_handler.h\nindex 6aca0b46..093b94c6 100644\n--- a/include/libcamera/internal/pipeline_handler.h\n+++ b/include/libcamera/internal/pipeline_handler.h\n@@ -79,7 +79,7 @@ public:\n \tvirtual int start(Camera *camera, const ControlList *controls) = 0;\n \tvirtual void stop(Camera *camera) = 0;\n \n-\tint queueRequest(Request *request);\n+\tvoid queueRequest(Request *request);\n \n \tbool completeBuffer(Request *request, FrameBuffer *buffer);\n \tvoid completeRequest(Request *request);\ndiff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp\nindex 84edbb8f..2611c701 100644\n--- a/src/libcamera/camera.cpp\n+++ b/src/libcamera/camera.cpp\n@@ -996,8 +996,10 @@ int Camera::queueRequest(Request *request)\n \t\t}\n \t}\n \n-\treturn d->pipe_->invokeMethod(&PipelineHandler::queueRequest,\n-\t\t\t\t ConnectionTypeQueued, request);\n+\td->pipe_->invokeMethod(&PipelineHandler::queueRequest,\n+\t\t\t ConnectionTypeQueued, request);\n+\n+\treturn 0;\n }\n \n /**\ndiff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp\nindex d22991d3..05b807d6 100644\n--- a/src/libcamera/pipeline_handler.cpp\n+++ b/src/libcamera/pipeline_handler.cpp\n@@ -374,7 +374,7 @@ const ControlList &PipelineHandler::properties(const Camera *camera) const\n *\n * \\return 0 on success or a negative error code otherwise\n */\n-int PipelineHandler::queueRequest(Request *request)\n+void PipelineHandler::queueRequest(Request *request)\n {\n \tLIBCAMERA_TRACEPOINT(request_queue, request);\n \n@@ -385,8 +385,6 @@ int PipelineHandler::queueRequest(Request *request)\n \tint ret = queueRequestDevice(camera, request);\n \tif (ret)\n \t\tdata->queuedRequests_.remove(request);\n-\n-\treturn ret;\n }\n \n /**\n", "prefixes": [ "libcamera-devel", "1/3" ] }