From efbeddde3a5730fec1a47d6a88d9871e9c3b6926 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Sun, 5 Apr 2020 01:25:01 +0200 Subject: [PATCH] libv4l2: resolve compilation errors Change-Id: I6adb22bbb77582b1a009e5115ff654d83e385f54 --- libv4l2/exynos_mc.c | 18 ------------------ libv4l2/exynos_subdev.c | 4 +--- libv4l2/exynos_v4l2.c | 1 - 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/libv4l2/exynos_mc.c b/libv4l2/exynos_mc.c index a13478d..3ec5f9a 100644 --- a/libv4l2/exynos_mc.c +++ b/libv4l2/exynos_mc.c @@ -193,10 +193,6 @@ static int __media_get_devname_sysfs(struct media_entity *entity) static int __media_get_media_fd(const char *filename, struct media_device *media) { - ssize_t num; - int media_node; - char *ptr; - ALOGD("%s: %s", __func__, filename); media->fd = open(filename, O_RDWR, 0); @@ -583,20 +579,6 @@ static int __media_get_devname_udev(struct udev *udev, return ret; } -#else /* HAVE_LIBUDEV */ - -struct udev; - -static inline int __media_udev_open(struct udev **udev) { return 0; } - -static inline void __media_udev_close(struct udev *udev) { } - -static inline int __media_get_devname_udev(struct udev *udev, - struct media_entity *entity) -{ - return -ENOTSUP; -} - #endif /* HAVE_LIBUDEV */ /** diff --git a/libv4l2/exynos_subdev.c b/libv4l2/exynos_subdev.c index 916537f..e121314 100644 --- a/libv4l2/exynos_subdev.c +++ b/libv4l2/exynos_subdev.c @@ -68,12 +68,11 @@ int exynos_subdev_open(const char *filename, int oflag, ...) return fd; } -int exynos_subdev_get_node_num(const char *devname, int oflag, ...) +int exynos_subdev_get_node_num(const char *devname, int oflag __unused, ...) { bool found = false; int ret = -1; struct stat s; - va_list ap; FILE *stream_fd; char filename[64], name[64]; int i = 0; @@ -136,7 +135,6 @@ int exynos_subdev_open_devname(const char *devname, int oflag, ...) va_list ap; FILE *stream_fd; char filename[64], name[64]; - long size; int i = 0; do { diff --git a/libv4l2/exynos_v4l2.c b/libv4l2/exynos_v4l2.c index d11fe70..cc838c2 100644 --- a/libv4l2/exynos_v4l2.c +++ b/libv4l2/exynos_v4l2.c @@ -764,7 +764,6 @@ int exynos_v4l2_s_ctrl(int fd, unsigned int id, int value) int exynos_v4l2_prepare(int fd, struct v4l2_buffer *arg) { int ret = -1; - struct v4l2_control ctrl; Exynos_v4l2_In(); -- 2.20.1