summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2015-07-01 12:37:24 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2015-07-01 16:50:59 -0700
commitabb722e79a07b0a438a3782fd3f7d8c85f541d5f (patch)
tree566ca61a353cf87cd5d9e67b6664db3e2cc2d394 /drivers/staging/greybus
parenta52c4352aef85538d194a9714fe742b18e6fb80f (diff)
downloadop-kernel-dev-abb722e79a07b0a438a3782fd3f7d8c85f541d5f.zip
op-kernel-dev-abb722e79a07b0a438a3782fd3f7d8c85f541d5f.tar.gz
greybus: operation: make response helper static
Since commit 46ce118a2678 ("operation: refactor response handling") sending operation responses is handled by greybus core so there is currently no need to export the response helper. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r--drivers/staging/greybus/operation.c7
-rw-r--r--drivers/staging/greybus/operation.h1
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c
index eee315c..3392b42 100644
--- a/drivers/staging/greybus/operation.c
+++ b/drivers/staging/greybus/operation.c
@@ -29,6 +29,9 @@ static struct workqueue_struct *gb_operation_workqueue;
*/
static DEFINE_SPINLOCK(gb_operations_lock);
+static int gb_operation_response_send(struct gb_operation *operation,
+ int errno);
+
/*
* Set an operation's result.
*
@@ -649,7 +652,8 @@ EXPORT_SYMBOL_GPL(gb_operation_request_send_sync);
* it can simply supply the result errno; this function will
* allocate the response message if necessary.
*/
-int gb_operation_response_send(struct gb_operation *operation, int errno)
+static int gb_operation_response_send(struct gb_operation *operation,
+ int errno)
{
struct gb_connection *connection = operation->connection;
int ret;
@@ -685,7 +689,6 @@ int gb_operation_response_send(struct gb_operation *operation, int errno)
return ret;
}
-EXPORT_SYMBOL_GPL(gb_operation_response_send);
/*
* This function is called when a message send request has completed.
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h
index 4063223..3bf7571 100644
--- a/drivers/staging/greybus/operation.h
+++ b/drivers/staging/greybus/operation.h
@@ -150,7 +150,6 @@ int gb_operation_request_send(struct gb_operation *operation,
gb_operation_callback callback,
gfp_t gfp);
int gb_operation_request_send_sync(struct gb_operation *operation);
-int gb_operation_response_send(struct gb_operation *operation, int errno);
void gb_operation_cancel(struct gb_operation *operation, int errno);
OpenPOWER on IntegriCloud