summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-02 18:36:24 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-02 18:36:24 +0100
commit1435b7f7d41a21fa45641b6aca505623297fba4a (patch)
tree80d821b8caa2dbc72c5e7e98d051a8020ca7e99e
parentf65ac79a27478f66da875f4a8ac87d1c7fbcc053 (diff)
Fix build when gcc avoids inlining
* ipc/ipc_port.h (ipc_port_flag_protected_payload, ipc_port_flag_protected_payload_set, ipc_port_flag_protected_payload_clear): Use static inline qualifier instead of extern inline.
-rw-r--r--ipc/ipc_port.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_port.h b/ipc/ipc_port.h
index 125fefc..6914c71 100644
--- a/ipc/ipc_port.h
+++ b/ipc/ipc_port.h
@@ -333,20 +333,20 @@ ipc_port_dealloc_special(ipc_port_t, ipc_space_t);
#define ipc_port_release(port) \
ipc_object_release(&(port)->ip_object)
-extern inline boolean_t
+static inline boolean_t
ipc_port_flag_protected_payload(const struct ipc_port *port)
{
return !! (port->ip_target.ipt_object.io_bits
& IO_BITS_PROTECTED_PAYLOAD);
}
-extern inline void
+static inline void
ipc_port_flag_protected_payload_set(struct ipc_port *port)
{
port->ip_target.ipt_object.io_bits |= IO_BITS_PROTECTED_PAYLOAD;
}
-extern inline void
+static inline void
ipc_port_flag_protected_payload_clear(struct ipc_port *port)
{
port->ip_target.ipt_object.io_bits &= ~IO_BITS_PROTECTED_PAYLOAD;