public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Felix Janda <felix.janda@posteo.de>
To: linux-media@vger.kernel.org
Subject: [PATCH 1/4] Remove dead code behind CONFIG_SYS_WRAPPER
Date: Sun, 10 May 2015 12:54:18 +0200	[thread overview]
Message-ID: <20150510105418.GA27779@euler> (raw)

Signed-off-by: Felix Janda <felix.janda@posteo.de>
---
 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


                 reply	other threads:[~2015-05-10 10:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150510105418.GA27779@euler \
    --to=felix.janda@posteo.de \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox