Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Avoid defining inline functions that are...
details: https://anonhg.NetBSD.org/src/rev/903415d90419
branches: trunk
changeset: 342765:903415d90419
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Jan 07 21:58:28 2016 +0000
description:
Avoid defining inline functions that are never used when certain options
are missing.
diffstat:
sys/compat/netbsd32/netbsd32_compat_14.c | 25 +++++--------------------
1 files changed, 5 insertions(+), 20 deletions(-)
diffs (61 lines):
diff -r 019173f092d1 -r 903415d90419 sys/compat/netbsd32/netbsd32_compat_14.c
--- a/sys/compat/netbsd32/netbsd32_compat_14.c Thu Jan 07 21:57:00 2016 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_14.c Thu Jan 07 21:58:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_compat_14.c,v 1.25 2015/12/03 11:31:05 pgoyette Exp $ */
+/* $NetBSD: netbsd32_compat_14.c,v 1.26 2016/01/07 21:58:28 joerg Exp $ */
/*
* Copyright (c) 1999 Eduardo E. Horvath
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_14.c,v 1.25 2015/12/03 11:31:05 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_14.c,v 1.26 2016/01/07 21:58:28 joerg Exp $");
#ifdef _KERNEL_OPT
#include "opt_sysv.h"
@@ -53,23 +53,7 @@
#if defined(COMPAT_14)
-static inline void
-netbsd32_ipc_perm14_to_native(struct netbsd32_ipc_perm14 *, struct ipc_perm *);
-static inline void
-native_to_netbsd32_ipc_perm14(struct ipc_perm *, struct netbsd32_ipc_perm14 *);
-static inline void
-native_to_netbsd32_msqid_ds14(struct msqid_ds *, struct netbsd32_msqid_ds14 *);
-static inline void
-netbsd32_msqid_ds14_to_native(struct netbsd32_msqid_ds14 *, struct msqid_ds *);
-static inline void
-native_to_netbsd32_semid_ds14(struct semid_ds *, struct netbsd32_semid_ds14 *);
-static inline void
-netbsd32_semid_ds14_to_native(struct netbsd32_semid_ds14 *, struct semid_ds *);
-static inline void
-netbsd32_shmid_ds14_to_native(struct netbsd32_shmid_ds14 *, struct shmid_ds *);
-static inline void
-native_to_netbsd32_shmid_ds14(struct shmid_ds *, struct netbsd32_shmid_ds14 *);
-
+#if defined(SYSVMSG)
static inline void
netbsd32_ipc_perm14_to_native(struct netbsd32_ipc_perm14 *operm, struct ipc_perm *perm)
{
@@ -140,7 +124,9 @@
*/
omsqbuf->msg_cbytes = msqbuf->_msg_cbytes;
}
+#endif
+#if defined(SYSVSEM)
static inline void
netbsd32_semid_ds14_to_native(struct netbsd32_semid_ds14 *osembuf, struct semid_ds *sembuf)
{
@@ -204,7 +190,6 @@
/*
* the compat_14 system calls
*/
-#if defined(SYSVMSG)
int
compat_14_netbsd32_msgctl(struct lwp *l, const struct compat_14_netbsd32_msgctl_args *uap, register_t *retval)
{
Home |
Main Index |
Thread Index |
Old Index