]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: export needed symbols for protocols
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 23 Dec 2014 23:16:52 +0000 (15:16 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Dec 2014 05:03:35 +0000 (21:03 -0800)
Protocol handlers need some greybus symbols, so export them so that they
can be built outside of the greybus core.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/operation.c
drivers/staging/greybus/protocol.c

index 3f786bf53798182ff3c4ccf2f1f058de88d0796d..191df5377bc3001f7e7e1d5af9d94bf030bfe03d 100644 (file)
@@ -243,6 +243,7 @@ void gb_connection_err(struct gb_connection *connection, const char *fmt, ...)
 
        va_end(args);
 }
+EXPORT_SYMBOL_GPL(gb_connection_err);
 
 int gb_connection_init(struct gb_connection *connection)
 {
index a057c83c90f8f361f00bee2039943206f1e5c077..087e0cc14a13b0e765ddcaff45214c98c2a02d14 100644 (file)
@@ -567,6 +567,7 @@ struct gb_operation *gb_operation_create(struct gb_connection *connection,
        return gb_operation_create_common(connection, type,
                                        request_size, response_size);
 }
+EXPORT_SYMBOL_GPL(gb_operation_create);
 
 static struct gb_operation *
 gb_operation_create_incoming(struct gb_connection *connection, u16 id,
@@ -623,6 +624,7 @@ void gb_operation_put(struct gb_operation *operation)
        if (!WARN_ON(!operation))
                kref_put(&operation->kref, _gb_operation_destroy);
 }
+EXPORT_SYMBOL_GPL(gb_operation_put);
 
 /* Tell the requester we're done */
 static void gb_operation_sync_callback(struct gb_operation *operation)
@@ -710,6 +712,7 @@ int gb_operation_request_send_sync(struct gb_operation *operation)
 
        return gb_operation_result(operation);
 }
+EXPORT_SYMBOL_GPL(gb_operation_request_send_sync);
 
 /*
  * Send a response for an incoming operation request.  A non-zero
@@ -958,6 +961,7 @@ int gb_operation_sync(struct gb_connection *connection, int type,
 
        return ret;
 }
+EXPORT_SYMBOL_GPL(gb_operation_sync);
 
 int gb_operation_init(void)
 {
index 227c531fa903b92dfdcb15aec1f4fd42366bd80d..7536a30e5b90aa4c5153fb95436b10d47e4ba767 100644 (file)
@@ -86,6 +86,7 @@ int gb_protocol_register(struct gb_protocol *protocol)
 
        return 0;
 }
+EXPORT_SYMBOL_GPL(gb_protocol_register);
 
 /*
  * De-register a previously registered protocol.
@@ -117,6 +118,7 @@ int gb_protocol_deregister(struct gb_protocol *protocol)
 
        return protocol && !protocol_count;
 }
+EXPORT_SYMBOL_GPL(gb_protocol_deregister);
 
 /* Returns the requested protocol if available, or a null pointer */
 struct gb_protocol *gb_protocol_get(u8 id, u8 major, u8 minor)