aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/vmw_vmci/vmci_queue_pair.h
diff options
context:
space:
mode:
authorAndy King <acking@vmware.com>2013-08-23 09:22:13 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-27 21:42:12 -0700
commit45412befe8fee657effc15112af05ca9dbea61fc (patch)
tree9eabdc57bd7da7c3359d7d55a153ef26e2706c4c /drivers/misc/vmw_vmci/vmci_queue_pair.h
parentuio: uio_pruss: remove unnecessary platform_set_drvdata() (diff)
downloadlinux-dev-45412befe8fee657effc15112af05ca9dbea61fc.tar.xz
linux-dev-45412befe8fee657effc15112af05ca9dbea61fc.zip
VMCI: Remove non-blocking/pinned queuepair support
We added this for a special case that doesn't exist on Linux. Remove the non-blocking/pinned queuepair code and simplify the driver in preparation for adding virtual IOMMU support. Acked-by: Aditya Sarwade <asarwade@vmware.com> Signed-off-by: Andy King <acking@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/vmw_vmci/vmci_queue_pair.h')
-rw-r--r--drivers/misc/vmw_vmci/vmci_queue_pair.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/misc/vmw_vmci/vmci_queue_pair.h b/drivers/misc/vmw_vmci/vmci_queue_pair.h
index 58c6959f6b6d..ed177f04ef24 100644
--- a/drivers/misc/vmw_vmci/vmci_queue_pair.h
+++ b/drivers/misc/vmw_vmci/vmci_queue_pair.h
@@ -146,24 +146,6 @@ VMCI_QP_PAGESTORE_IS_WELLFORMED(struct vmci_qp_page_store *page_store)
return page_store->len >= 2;
}
-/*
- * Helper function to check if the non-blocking flag
- * is set for a given queue pair.
- */
-static inline bool vmci_can_block(u32 flags)
-{
- return !(flags & VMCI_QPFLAG_NONBLOCK);
-}
-
-/*
- * Helper function to check if the queue pair is pinned
- * into memory.
- */
-static inline bool vmci_qp_pinned(u32 flags)
-{
- return flags & VMCI_QPFLAG_PINNED;
-}
-
void vmci_qp_broker_exit(void);
int vmci_qp_broker_alloc(struct vmci_handle handle, u32 peer,
u32 flags, u32 priv_flags,