[libcamera-devel] android: mm: cros_camera_buffer: Drop undefined functions
diff mbox series

Message ID 20210625130848.28447-1-laurent.pinchart@ideasonboard.com
State Accepted
Commit 4510638e5daf470a173596ce3f33a9e3b236f842
Headers show
Series
  • [libcamera-devel] android: mm: cros_camera_buffer: Drop undefined functions
Related show

Commit Message

Laurent Pinchart June 25, 2021, 1:08 p.m. UTC
The CameraBuffer::Private::planeAddr() functions are declared but not
defined (and of course not used). Drop them.

Fixes: d8d6a78f223e ("android: Introduce Chromium OS buffer manager")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/android/mm/cros_camera_buffer.cpp | 3 ---
 1 file changed, 3 deletions(-)

Comments

Hirokazu Honda June 28, 2021, 4:29 a.m. UTC | #1
Hi Laurent, thank you for the patch.

On Fri, Jun 25, 2021 at 10:09 PM Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
>
> The CameraBuffer::Private::planeAddr() functions are declared but not
> defined (and of course not used). Drop them.
>
> Fixes: d8d6a78f223e ("android: Introduce Chromium OS buffer manager")
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Hirokazu Honda <hiroh@chromium.org>

> ---
>  src/android/mm/cros_camera_buffer.cpp | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/src/android/mm/cros_camera_buffer.cpp b/src/android/mm/cros_camera_buffer.cpp
> index c4157606d762..317d3e23687f 100644
> --- a/src/android/mm/cros_camera_buffer.cpp
> +++ b/src/android/mm/cros_camera_buffer.cpp
> @@ -42,9 +42,6 @@ private:
>                 void *addr;
>                 android_ycbcr ycbcr;
>         } mem;
> -
> -       const uint8_t *planeAddr(unsigned int plane) const;
> -       uint8_t *planeAddr(unsigned int plane);
>  };
>
>  CameraBuffer::Private::Private(CameraBuffer *cameraBuffer,
> --
> Regards,
>
> Laurent Pinchart
>
Umang Jain June 28, 2021, 4:31 a.m. UTC | #2
Hi Laurent,

On 6/25/21 6:38 PM, Laurent Pinchart wrote:
> The CameraBuffer::Private::planeAddr() functions are declared but not
> defined (and of course not used). Drop them.
>
> Fixes: d8d6a78f223e ("android: Introduce Chromium OS buffer manager")
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
> 	
> ---
>   src/android/mm/cros_camera_buffer.cpp | 3 ---
>   1 file changed, 3 deletions(-)
>
> diff --git a/src/android/mm/cros_camera_buffer.cpp b/src/android/mm/cros_camera_buffer.cpp
> index c4157606d762..317d3e23687f 100644
> --- a/src/android/mm/cros_camera_buffer.cpp
> +++ b/src/android/mm/cros_camera_buffer.cpp
> @@ -42,9 +42,6 @@ private:
>   		void *addr;
>   		android_ycbcr ycbcr;
>   	} mem;
> -
> -	const uint8_t *planeAddr(unsigned int plane) const;
> -	uint8_t *planeAddr(unsigned int plane);
>   };
>   
>   CameraBuffer::Private::Private(CameraBuffer *cameraBuffer,

Patch
diff mbox series

diff --git a/src/android/mm/cros_camera_buffer.cpp b/src/android/mm/cros_camera_buffer.cpp
index c4157606d762..317d3e23687f 100644
--- a/src/android/mm/cros_camera_buffer.cpp
+++ b/src/android/mm/cros_camera_buffer.cpp
@@ -42,9 +42,6 @@  private:
 		void *addr;
 		android_ycbcr ycbcr;
 	} mem;
-
-	const uint8_t *planeAddr(unsigned int plane) const;
-	uint8_t *planeAddr(unsigned int plane);
 };
 
 CameraBuffer::Private::Private(CameraBuffer *cameraBuffer,