Remove dead code behind CONFIG_SYS_WRAPPER
PATCH 1/4 Remove dead code behind CONFIG_SYS_WRAPPER
Signed-off-by Felix Janda <[email protected]>
--- lib/libv4lconvert/libv4lsyscall-priv.h | 22 ---------------------- 1 file changed, 22 deletions(-)
lib/libv4lconvert/libv4lsyscall-priv.h +0 -22
@@ -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_ */
Signature · 1 line
2.3.6