mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
staging: vchi: Get rid of vchi_queue_user_message()
The function has no users. Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Link: https://lore.kernel.org/r/20200527115400.31391-3-nsaenzjulienne@suse.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ddf0f124ae
commit
6620ce704e
@@ -111,12 +111,6 @@ vchi_queue_kernel_message(struct vchi_service_handle *handle,
|
||||
void *data,
|
||||
unsigned int size);
|
||||
|
||||
/* Routine to send a message from user memory across a service */
|
||||
extern int
|
||||
vchi_queue_user_message(struct vchi_service_handle *handle,
|
||||
void __user *data,
|
||||
unsigned int size);
|
||||
|
||||
// Routine to receive a msg from a service
|
||||
// Dequeue is equivalent to hold, copy into client buffer, release
|
||||
extern int32_t vchi_msg_dequeue(struct vchi_service_handle *handle,
|
||||
|
||||
@@ -150,40 +150,6 @@ vchi_queue_kernel_message(struct vchi_service_handle *handle,
|
||||
}
|
||||
EXPORT_SYMBOL(vchi_queue_kernel_message);
|
||||
|
||||
struct vchi_queue_user_message_context {
|
||||
void __user *data;
|
||||
};
|
||||
|
||||
static ssize_t
|
||||
vchi_queue_user_message_callback(void *context,
|
||||
void *dest,
|
||||
size_t offset,
|
||||
size_t maxsize)
|
||||
{
|
||||
struct vchi_queue_user_message_context *copycontext = context;
|
||||
|
||||
if (copy_from_user(dest, copycontext->data + offset, maxsize))
|
||||
return -EFAULT;
|
||||
|
||||
return maxsize;
|
||||
}
|
||||
|
||||
int
|
||||
vchi_queue_user_message(struct vchi_service_handle *handle,
|
||||
void __user *data,
|
||||
unsigned int size)
|
||||
{
|
||||
struct vchi_queue_user_message_context copycontext = {
|
||||
.data = data
|
||||
};
|
||||
|
||||
return vchi_msg_queue(handle,
|
||||
vchi_queue_user_message_callback,
|
||||
©context,
|
||||
size);
|
||||
}
|
||||
EXPORT_SYMBOL(vchi_queue_user_message);
|
||||
|
||||
/***********************************************************
|
||||
* Name: vchi_bulk_queue_receive
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user