提交 9393b3bb 编写于 作者: G Gaston Gonzalez 提交者: Greg Kroah-Hartman

staging: vchiq_core: drop extern prefix in function declarations

Remove unnecessary extern prefix in function declarations.

While at it, remove a now outdated comment and realign the function
declarations in order to improve readability.
Signed-off-by: NGaston Gonzalez <gascoar@gmail.com>
Link: https://lore.kernel.org/r/20211024212524.370078-7-gascoar@gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8dd56723
...@@ -559,79 +559,53 @@ vchiq_queue_message(unsigned int handle, ...@@ -559,79 +559,53 @@ vchiq_queue_message(unsigned int handle,
void *context, void *context,
size_t size); size_t size);
/* int vchiq_prepare_bulk_data(struct vchiq_bulk *bulk, void *offset, void __user *uoffset,
* The following functions are called from vchiq_core, and external int size, int dir);
* implementations must be provided.
*/
extern int void vchiq_complete_bulk(struct vchiq_bulk *bulk);
vchiq_prepare_bulk_data(struct vchiq_bulk *bulk, void *offset,
void __user *uoffset, int size, int dir);
extern void void remote_event_signal(struct remote_event *event);
vchiq_complete_bulk(struct vchiq_bulk *bulk);
extern void int vchiq_dump(void *dump_context, const char *str, int len);
remote_event_signal(struct remote_event *event);
extern int int vchiq_dump_platform_state(void *dump_context);
vchiq_dump(void *dump_context, const char *str, int len);
extern int int vchiq_dump_platform_instances(void *dump_context);
vchiq_dump_platform_state(void *dump_context);
extern int int vchiq_dump_platform_service_state(void *dump_context, struct vchiq_service *service);
vchiq_dump_platform_instances(void *dump_context);
extern int int vchiq_use_service_internal(struct vchiq_service *service);
vchiq_dump_platform_service_state(void *dump_context, struct vchiq_service *service);
extern int int vchiq_release_service_internal(struct vchiq_service *service);
vchiq_use_service_internal(struct vchiq_service *service);
extern int void vchiq_on_remote_use(struct vchiq_state *state);
vchiq_release_service_internal(struct vchiq_service *service);
extern void void vchiq_on_remote_release(struct vchiq_state *state);
vchiq_on_remote_use(struct vchiq_state *state);
extern void int vchiq_platform_init_state(struct vchiq_state *state);
vchiq_on_remote_release(struct vchiq_state *state);
extern int enum vchiq_status vchiq_check_service(struct vchiq_service *service);
vchiq_platform_init_state(struct vchiq_state *state);
extern enum vchiq_status void vchiq_on_remote_use_active(struct vchiq_state *state);
vchiq_check_service(struct vchiq_service *service);
extern void enum vchiq_status vchiq_send_remote_use(struct vchiq_state *state);
vchiq_on_remote_use_active(struct vchiq_state *state);
extern enum vchiq_status enum vchiq_status vchiq_send_remote_use_active(struct vchiq_state *state);
vchiq_send_remote_use(struct vchiq_state *state);
extern enum vchiq_status void vchiq_platform_conn_state_changed(struct vchiq_state *state,
vchiq_send_remote_use_active(struct vchiq_state *state); enum vchiq_connstate oldstate,
extern void
vchiq_platform_conn_state_changed(struct vchiq_state *state,
enum vchiq_connstate oldstate,
enum vchiq_connstate newstate); enum vchiq_connstate newstate);
extern void void vchiq_set_conn_state(struct vchiq_state *state, enum vchiq_connstate newstate);
vchiq_set_conn_state(struct vchiq_state *state, enum vchiq_connstate newstate);
extern void void vchiq_log_dump_mem(const char *label, u32 addr, const void *void_mem, size_t num_bytes);
vchiq_log_dump_mem(const char *label, u32 addr, const void *void_mem, size_t num_bytes);
extern enum vchiq_status vchiq_remove_service(unsigned int service); enum vchiq_status vchiq_remove_service(unsigned int service);
extern int vchiq_get_client_id(unsigned int service); int vchiq_get_client_id(unsigned int service);
extern void vchiq_get_config(struct vchiq_config *config); void vchiq_get_config(struct vchiq_config *config);
extern int int vchiq_set_service_option(unsigned int service, enum vchiq_service_option option, int value);
vchiq_set_service_option(unsigned int service, enum vchiq_service_option option,
int value);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册