From 55edca5dd3c13ff623c078eaea2dfb9a7f444eb7 Mon Sep 17 00:00:00 2001 From: Zhiqi Song Date: Sat, 23 Jul 2022 17:06:29 +0800 Subject: [PATCH 49/57] uadk_engine: remove redundant extern Remove the "extern" keyword before function declaration in the header file. Because the function in header file is 'extern' by default, there is no need to specify explicitly. Signed-off-by: Zhiqi Song --- src/uadk.h | 24 ++++++++++++------------ src/uadk_async.h | 16 ++++++++-------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/uadk.h b/src/uadk.h index e2635d4..0188f0b 100644 --- a/src/uadk.h +++ b/src/uadk.h @@ -32,16 +32,16 @@ enum { }; extern const char *engine_uadk_id; -extern int uadk_e_bind_cipher(ENGINE *e); -extern void uadk_e_destroy_cipher(void); -extern int uadk_e_bind_digest(ENGINE *e); -extern void uadk_e_destroy_digest(void); -extern int uadk_e_bind_rsa(ENGINE *e); -extern void uadk_e_destroy_rsa(void); -extern int uadk_e_bind_dh(ENGINE *e); -extern void uadk_e_destroy_dh(void); -extern int uadk_e_bind_ecc(ENGINE *e); -extern void uadk_e_destroy_ecc(void); -extern int uadk_e_is_env_enabled(const char *alg_name); -extern int uadk_e_set_env(const char *var_name, int numa_id); +int uadk_e_bind_cipher(ENGINE *e); +void uadk_e_destroy_cipher(void); +int uadk_e_bind_digest(ENGINE *e); +void uadk_e_destroy_digest(void); +int uadk_e_bind_rsa(ENGINE *e); +void uadk_e_destroy_rsa(void); +int uadk_e_bind_dh(ENGINE *e); +void uadk_e_destroy_dh(void); +int uadk_e_bind_ecc(ENGINE *e); +void uadk_e_destroy_ecc(void); +int uadk_e_is_env_enabled(const char *alg_name); +int uadk_e_set_env(const char *var_name, int numa_id); #endif diff --git a/src/uadk_async.h b/src/uadk_async.h index d2a7e16..78f7a21 100644 --- a/src/uadk_async.h +++ b/src/uadk_async.h @@ -65,12 +65,12 @@ struct async_poll_queue { pthread_t thread_id; }; -extern int async_setup_async_event_notification(struct async_op *op); -extern int async_clear_async_event_notification(void); -extern int async_pause_job(void *ctx, struct async_op *op, enum task_type type, int id); -extern void async_register_poll_fn(int type, async_recv_t func); -extern void async_module_init(void); -extern int async_wake_job(ASYNC_JOB *job); -extern void async_free_poll_task(int id, bool is_cb); -extern int async_get_free_task(int *id); +int async_setup_async_event_notification(struct async_op *op); +int async_clear_async_event_notification(void); +int async_pause_job(void *ctx, struct async_op *op, enum task_type type, int id); +void async_register_poll_fn(int type, async_recv_t func); +void async_module_init(void); +int async_wake_job(ASYNC_JOB *job); +void async_free_poll_task(int id, bool is_cb); +int async_get_free_task(int *id); #endif -- 2.27.0