diff options
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_common.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_event.c | 2 | ||||
-rw-r--r-- | sys/compat/linux/linux_file.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_fork.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_futex.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 8 | ||||
-rw-r--r-- | sys/compat/linux/linux_ipc.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_misc.c | 4 | ||||
-rw-r--r-- | sys/compat/linux/linux_misc.h | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_mmap.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_signal.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_socket.c | 3 | ||||
-rw-r--r-- | sys/compat/linux/linux_stats.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_time.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_timer.c | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_vdso.c | 1 |
16 files changed, 0 insertions, 29 deletions
diff --git a/sys/compat/linux/linux_common.c b/sys/compat/linux/linux_common.c index a6c780bd5e101..7454da2d0411a 100644 --- a/sys/compat/linux/linux_common.c +++ b/sys/compat/linux/linux_common.c @@ -60,7 +60,6 @@ static eventhandler_tag linux_exec_tag; static eventhandler_tag linux_thread_dtor_tag; static eventhandler_tag linux_exit_tag; - static int linux_common_modevent(module_t mod, int type, void *data) { diff --git a/sys/compat/linux/linux_event.c b/sys/compat/linux/linux_event.c index 498471fd7dd11..1371b76c4b600 100644 --- a/sys/compat/linux/linux_event.c +++ b/sys/compat/linux/linux_event.c @@ -221,7 +221,6 @@ static int eventfd_create(struct thread *td, uint32_t initval, int flags); static void linux_timerfd_expire(void *); static void linux_timerfd_curval(struct timerfd *, struct itimerspec *); - static void epoll_fd_install(struct thread *td, int fd, epoll_udata_t udata) { @@ -575,7 +574,6 @@ linux_epoll_wait_common(struct thread *td, int epfd, struct epoll_event *events, thread_unlock(td); } - coargs.leventlist = events; coargs.p = td->td_proc; coargs.count = 0; diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 33f4d5435c182..c3ed7fc738b18 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -539,7 +539,6 @@ out: } #endif /* __i386__ || (__amd64__ && COMPAT_LINUX32) */ - /* * These exist mainly for hooks for doing /compat/linux translation. */ diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c index b46266c861fa5..d81e95d9e84d6 100644 --- a/sys/compat/linux/linux_fork.c +++ b/sys/compat/linux/linux_fork.c @@ -423,7 +423,6 @@ linux_thread_detach(struct thread *td) child_clear_tid = em->child_clear_tid; if (child_clear_tid != NULL) { - LINUX_CTR2(thread_detach, "thread(%d) %p", em->em_tid, child_clear_tid); diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index b0fcfdfd29762..43ac318d2b514 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -999,7 +999,6 @@ retry2: else op_ret += futex_wake(f, nrwake, args->val3); ret += op_ret; - } if (f2 != NULL) futex_put(f2, NULL); diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 15162490ba440..f1083391ba6d7 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -713,7 +713,6 @@ linux_ioctl_termio(struct thread *td, struct linux_ioctl_args *args) return (error); switch (args->cmd & 0xffff) { - case LINUX_TCGETS: error = fo_ioctl(fp, TIOCGETA, (caddr_t)&bios, td->td_ucred, td); @@ -1455,7 +1454,6 @@ linux_ioctl_cdrom(struct thread *td, struct linux_ioctl_args *args) if (error != 0) return (error); switch (args->cmd & 0xffff) { - case LINUX_CDROMPAUSE: args->cmd = CDIOCPAUSE; error = (sys_ioctl(td, (struct ioctl_args *)args)); @@ -1723,7 +1721,6 @@ linux_ioctl_sound(struct thread *td, struct linux_ioctl_args *args) { switch (args->cmd & 0xffff) { - case LINUX_SOUND_MIXER_WRITE_VOLUME: args->cmd = SETDIR(SOUND_MIXER_WRITE_VOLUME); return (sys_ioctl(td, (struct ioctl_args *)args)); @@ -1981,7 +1978,6 @@ linux_ioctl_sound(struct thread *td, struct linux_ioctl_args *args) case LINUX_SNDCTL_SYNTH_MEMAVL: args->cmd = SNDCTL_SYNTH_MEMAVL; return (sys_ioctl(td, (struct ioctl_args *)args)); - } return (ENOIOCTL); @@ -2001,7 +1997,6 @@ linux_ioctl_console(struct thread *td, struct linux_ioctl_args *args) if (error != 0) return (error); switch (args->cmd & 0xffff) { - case LINUX_KIOCSOUND: args->cmd = KIOCSOUND; error = (sys_ioctl(td, (struct ioctl_args *)args)); @@ -2295,7 +2290,6 @@ linux_gifhwaddr(struct ifnet *ifp, struct l_ifreq *ifr) return (copyout(&lsa, &ifr->ifr_hwaddr, sizeof(lsa))); } - /* * If we fault in bsd_to_linux_ifreq() then we will fault when we call * the native ioctl(). Thus, we don't really need to check the return @@ -2351,7 +2345,6 @@ linux_ioctl_socket(struct thread *td, struct linux_ioctl_args *args) } switch (args->cmd & 0xffff) { - case LINUX_FIOGETOWN: case LINUX_FIOSETOWN: case LINUX_SIOCADDMULTI: @@ -2404,7 +2397,6 @@ linux_ioctl_socket(struct thread *td, struct linux_ioctl_args *args) } switch (args->cmd & 0xffff) { - case LINUX_FIOSETOWN: args->cmd = FIOSETOWN; error = sys_ioctl(td, (struct ioctl_args *)args); diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index f52f25372626a..82fe54fae65e1 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -832,7 +832,6 @@ linux_shmctl(struct thread *td, struct linux_shmctl_args *args) memset(&linux_shminfo64, 0, sizeof(linux_shminfo64)); switch (args->cmd & ~LINUX_IPC_64) { - case LINUX_IPC_INFO: { struct shminfo bsd_shminfo; diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index cf72b2a2d63f7..ce5c9f5043634 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -145,7 +145,6 @@ struct l_pselect6arg { static int linux_utimensat_nsec_valid(l_long); - int linux_sysinfo(struct thread *td, struct linux_sysinfo_args *args) { @@ -641,7 +640,6 @@ struct l_times_argv { l_clock_t tms_cstime; }; - /* * Glibc versions prior to 2.2.1 always use hard-coded CLK_TCK value. * Since 2.2.1 Glibc uses value exported from kernel via AT_CLKTCK @@ -1666,7 +1664,6 @@ linux_reboot(struct thread *td, struct linux_reboot_args *args) return (sys_reboot(td, &bsd_args)); } - int linux_getpid(struct thread *td, struct linux_getpid_args *args) { @@ -1689,7 +1686,6 @@ linux_gettid(struct thread *td, struct linux_gettid_args *args) return (0); } - int linux_getppid(struct thread *td, struct linux_getppid_args *args) { diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index f9f4a74cf1093..e407e4069211b 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -128,7 +128,6 @@ extern int stclohz; #define LINUX_WCONTINUED 0x00000008 #define LINUX_WNOWAIT 0x01000000 - #define __WNOTHREAD 0x20000000 #define __WALL 0x40000000 #define __WCLONE 0x80000000 diff --git a/sys/compat/linux/linux_mmap.c b/sys/compat/linux/linux_mmap.c index 48088e8b55265..cc63c45579ab5 100644 --- a/sys/compat/linux/linux_mmap.c +++ b/sys/compat/linux/linux_mmap.c @@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$"); #include <compat/linux/linux_persona.h> #include <compat/linux/linux_util.h> - #define STACK_SIZE (2 * 1024 * 1024) #define GUARD_SIZE (4 * PAGE_SIZE) diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c index 3393c8068a53f..51f08d61bef19 100644 --- a/sys/compat/linux/linux_signal.c +++ b/sys/compat/linux/linux_signal.c @@ -59,7 +59,6 @@ static int linux_do_tkill(struct thread *td, struct thread *tdt, ksiginfo_t *ksi); static void sicode_to_lsicode(int si_code, int *lsi_code); - static void linux_to_bsd_sigaction(l_sigaction_t *lsa, struct sigaction *bsa) { diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 6e8169115ab19..36c1a91d6515f 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -88,7 +88,6 @@ static int linux_recvmsg_common(struct thread *, l_int, struct l_msghdr *, l_uint, struct msghdr *); static int linux_set_socket_flags(int, int *); - static int linux_to_bsd_sockopt_level(int level) { @@ -778,7 +777,6 @@ linux_socketpair(struct thread *td, struct linux_socketpair_args *args) if (error != 0) return (error); if (args->protocol != 0 && args->protocol != PF_UNIX) { - /* * Use of PF_UNIX as protocol argument is not right, * but Linux does it. @@ -1020,7 +1018,6 @@ linux_sendmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr, } if (linux_msghdr.msg_controllen >= sizeof(struct l_cmsghdr)) { - error = ENOBUFS; control = m_get(M_WAITOK, MT_CONTROL); MCLGET(control, M_WAITOK); diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 5304590fc4854..390f361afa6e9 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -59,7 +59,6 @@ __FBSDID("$FreeBSD$"); #include <compat/linux/linux_util.h> #include <compat/linux/linux_file.h> - static void translate_vnhook_major_minor(struct vnode *vp, struct stat *sb) { diff --git a/sys/compat/linux/linux_time.c b/sys/compat/linux/linux_time.c index 50ee6ae5562b9..6f1ef36a91148 100644 --- a/sys/compat/linux/linux_time.c +++ b/sys/compat/linux/linux_time.c @@ -122,7 +122,6 @@ LIN_SDT_PROBE_DEFINE1(time, linux_clock_nanosleep, unsupported_flags, "int"); LIN_SDT_PROBE_DEFINE1(time, linux_clock_nanosleep, unsupported_clockid, "int"); LIN_SDT_PROBE_DEFINE1(time, linux_clock_nanosleep, return, "int"); - int native_to_linux_timespec(struct l_timespec *ltp, struct timespec *ntp) { diff --git a/sys/compat/linux/linux_timer.c b/sys/compat/linux/linux_timer.c index f2819bb66aa39..4e1b56d4b2e25 100644 --- a/sys/compat/linux/linux_timer.c +++ b/sys/compat/linux/linux_timer.c @@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$"); #endif #include <compat/linux/linux_timer.h> - static int linux_convert_l_sigevent(struct l_sigevent *l_sig, struct sigevent *sig) { diff --git a/sys/compat/linux/linux_vdso.c b/sys/compat/linux/linux_vdso.c index 96a6f7ef6f54f..096f2e4248509 100644 --- a/sys/compat/linux/linux_vdso.c +++ b/sys/compat/linux/linux_vdso.c @@ -65,7 +65,6 @@ static int __elfN(symstrindex); static void __elfN(linux_vdso_lookup)(Elf_Ehdr *, struct linux_vdso_sym *); - void __elfN(linux_vdso_sym_init)(struct linux_vdso_sym *s) { |