[PATCH 1/4] Remove dead code behind CONFIG_SYS_WRAPPER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Felix Janda <felix.janda@xxxxxxxxx>
---
 lib/libv4lconvert/libv4lsyscall-priv.h | 22 ----------------------
 1 file changed, 22 deletions(-)

diff --git a/lib/libv4lconvert/libv4lsyscall-priv.h b/lib/libv4lconvert/libv4lsyscall-priv.h
index f548fb2..e5f74f3 100644
--- a/lib/libv4lconvert/libv4lsyscall-priv.h
+++ b/lib/libv4lconvert/libv4lsyscall-priv.h
@@ -74,8 +74,6 @@ typedef off_t __off_t;
 #undef SYS_MMAP
 #undef SYS_MUNMAP
 
-#ifndef CONFIG_SYS_WRAPPER
-
 #ifdef SYS_openat
 #define SYS_OPEN(file, oflag, mode) \
 	syscall(SYS_openat, AT_FDCWD, (const char *)(file), (int)(oflag), (mode_t)(mode))
@@ -109,24 +107,4 @@ typedef off_t __off_t;
 #define SYS_MUNMAP(addr, len) \
 	syscall(SYS_munmap, (void *)(addr), (size_t)(len))
 
-#else
-
-int v4lx_open_wrapper(const char *, int, int);
-int v4lx_close_wrapper(int);
-int v4lx_ioctl_wrapper(int, unsigned long, void *);
-int v4lx_read_wrapper(int, void *, size_t);
-int v4lx_write_wrapper(int, const void *, size_t);
-void *v4lx_mmap_wrapper(void *, size_t, int, int, int, off_t);
-int v4lx_munmap_wrapper(void *, size_t);
-
-#define SYS_OPEN(...) v4lx_open_wrapper(__VA_ARGS__)
-#define SYS_CLOSE(...) v4lx_close_wrapper(__VA_ARGS__)
-#define SYS_IOCTL(...) v4lx_ioctl_wrapper(__VA_ARGS__)
-#define SYS_READ(...) v4lx_read_wrapper(__VA_ARGS__)
-#define SYS_WRITE(...) v4lx_write_wrapper(__VA_ARGS__)
-#define SYS_MMAP(...) v4lx_mmap_wrapper(__VA_ARGS__)
-#define SYS_MUNMAP(...) v4lx_munmap_wrapper(__VA_ARGS__)
-
-#endif
-
 #endif /* _LIBV4LSYSCALL_PRIV_H_ */
-- 
2.3.6

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux