We will only send messages from process context. Drop the gfp_mask
parameter from gb_message_send(), and just supply GFP_KERNEL to the
host driver's buffer_send method.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
return found ? operation : NULL;
}
-static int gb_message_send(struct gb_message *message, gfp_t gfp_mask)
+static int gb_message_send(struct gb_message *message)
{
struct gb_connection *connection = message->operation->connection;
u16 dest_cport_id = connection->interface_cport_id;
dest_cport_id,
message->header,
message->size,
- gfp_mask);
+ GFP_KERNEL);
if (IS_ERR(cookie))
ret = PTR_ERR(cookie);
else
/* All set, send the request */
gb_operation_result_set(operation, -EINPROGRESS);
- ret = gb_message_send(operation->request, GFP_KERNEL);
+ ret = gb_message_send(operation->request);
if (ret || callback)
return ret;