[{"id":31005,"web_url":"https://patchwork.libcamera.org/comment/31005/","msgid":"<20240831001453.GH3811@pendragon.ideasonboard.com>","date":"2024-08-31T00:14:53","subject":"Re: [PATCH v2 10/20] libcamera: v4l2: Remove unused includes","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"content":"On Fri, Aug 30, 2024 at 05:27:07PM +0200, Milan Zamazal wrote:\n> The includes that are not used can be removed.\n> \n> Signed-off-by: Milan Zamazal <mzamazal@redhat.com>\n> ---\n>  src/libcamera/v4l2_device.cpp      | 2 --\n>  src/libcamera/v4l2_subdevice.cpp   | 1 -\n>  src/libcamera/v4l2_videodevice.cpp | 1 -\n>  src/v4l2/v4l2_camera.h             | 1 -\n>  src/v4l2/v4l2_camera_proxy.cpp     | 1 -\n>  src/v4l2/v4l2_compat.cpp           | 1 -\n>  src/v4l2/v4l2_compat_manager.cpp   | 1 -\n>  7 files changed, 8 deletions(-)\n> \n> diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp\n> index 4a2048cf..68add4f2 100644\n> --- a/src/libcamera/v4l2_device.cpp\n> +++ b/src/libcamera/v4l2_device.cpp\n> @@ -8,8 +8,6 @@\n>  #include \"libcamera/internal/v4l2_device.h\"\n>  \n>  #include <fcntl.h>\n> -#include <iomanip>\n> -#include <limits.h>\n>  #include <map>\n>  #include <stdlib.h>\n>  #include <string.h>\n> diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp\n> index 82824433..6eaa8f01 100644\n> --- a/src/libcamera/v4l2_subdevice.cpp\n> +++ b/src/libcamera/v4l2_subdevice.cpp\n> @@ -8,7 +8,6 @@\n>  #include \"libcamera/internal/v4l2_subdevice.h\"\n>  \n>  #include <fcntl.h>\n> -#include <iomanip>\n>  #include <regex>\n>  #include <sstream>\n>  #include <string.h>\n> diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp\n> index 6f32521f..76742e18 100644\n> --- a/src/libcamera/v4l2_videodevice.cpp\n> +++ b/src/libcamera/v4l2_videodevice.cpp\n> @@ -10,7 +10,6 @@\n>  #include <algorithm>\n>  #include <array>\n>  #include <fcntl.h>\n> -#include <iomanip>\n>  #include <sstream>\n>  #include <string.h>\n>  #include <sys/ioctl.h>\n> diff --git a/src/v4l2/v4l2_camera.h b/src/v4l2/v4l2_camera.h\n> index 278cc33e..e4e9a626 100644\n> --- a/src/v4l2/v4l2_camera.h\n> +++ b/src/v4l2/v4l2_camera.h\n> @@ -8,7 +8,6 @@\n>  #pragma once\n>  \n>  #include <deque>\n\nMissing memory and vector.\n\n> -#include <utility>\n>  \n>  #include <libcamera/base/mutex.h>\n>  #include <libcamera/base/semaphore.h>\n> diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp\n> index 3f7c00a2..a020a2b0 100644\n> --- a/src/v4l2/v4l2_camera_proxy.cpp\n> +++ b/src/v4l2/v4l2_camera_proxy.cpp\n> @@ -8,7 +8,6 @@\n>  #include \"v4l2_camera_proxy.h\"\n>  \n>  #include <algorithm>\n> -#include <array>\n>  #include <errno.h>\n>  #include <numeric>\n>  #include <set>\n> diff --git a/src/v4l2/v4l2_compat.cpp b/src/v4l2/v4l2_compat.cpp\n> index 6c9dca72..ff833f57 100644\n> --- a/src/v4l2/v4l2_compat.cpp\n> +++ b/src/v4l2/v4l2_compat.cpp\n> @@ -8,7 +8,6 @@\n>  #include \"v4l2_compat_manager.h\"\n>  \n>  #include <assert.h>\n> -#include <errno.h>\n>  #include <fcntl.h>\n>  #include <stdarg.h>\n>  #include <sys/ioctl.h>\n> diff --git a/src/v4l2/v4l2_compat_manager.cpp b/src/v4l2/v4l2_compat_manager.cpp\n> index 6a00afb5..f53fb300 100644\n> --- a/src/v4l2/v4l2_compat_manager.cpp\n> +++ b/src/v4l2/v4l2_compat_manager.cpp\n> @@ -10,7 +10,6 @@\n>  #include <dlfcn.h>\n>  #include <fcntl.h>\n>  #include <map>\n> -#include <stdarg.h>\n>  #include <string.h>\n>  #include <sys/eventfd.h>\n>  #include <sys/mman.h>","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 50089C323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 31 Aug 2024 00:15:28 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 86B1C63469;\n\tSat, 31 Aug 2024 02:15:27 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BD64863456\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 31 Aug 2024 02:15:25 +0200 (CEST)","from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi\n\t[81.175.209.231])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 2371274C;\n\tSat, 31 Aug 2024 02:14:16 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"d5xSDCpF\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1725063256;\n\tbh=hdo23ckzpU/tSwKSRzkcNUT7O1gdD0rdzs8AhNPr0bk=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=d5xSDCpFwSEZLauoNp36deKOojsSMWHhb0VfVO1pSYEpz0MXDpL2+1vVhc86xFR0u\n\tHpVAvBUyeXamQY5Q44FTR+faQp9Jwc2e2nZNm6UXj+8qfnrbPOOPiuPD0GGojsxlfb\n\tWx7ubWTjxgojW4aw3MJZWuS9TnNKuzjZBk6o50KY=","Date":"Sat, 31 Aug 2024 03:14:53 +0300","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"Milan Zamazal <mzamazal@redhat.com>","Cc":"libcamera-devel@lists.libcamera.org","Subject":"Re: [PATCH v2 10/20] libcamera: v4l2: Remove unused includes","Message-ID":"<20240831001453.GH3811@pendragon.ideasonboard.com>","References":"<20240830152721.1420313-1-mzamazal@redhat.com>\n\t<20240830152721.1420313-11-mzamazal@redhat.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","In-Reply-To":"<20240830152721.1420313-11-mzamazal@redhat.com>","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"}}]