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 songzhiqi1@huawei.com --- src/uadk.h | 34 +++++++++++++++++----------------- src/uadk_async.h | 16 ++++++++-------- 2 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/src/uadk.h b/src/uadk.h index 267da89..a00f6ac 100644 --- a/src/uadk.h +++ b/src/uadk.h @@ -31,21 +31,21 @@ 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); -extern void uadk_e_ecc_lock_init(void); -extern void uadk_e_rsa_lock_init(void); -extern void uadk_e_dh_lock_init(void); -extern void uadk_e_cipher_lock_init(void); -extern void uadk_e_digest_lock_init(void); +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); +void uadk_e_ecc_lock_init(void); +void uadk_e_rsa_lock_init(void); +void uadk_e_dh_lock_init(void); +void uadk_e_cipher_lock_init(void); +void uadk_e_digest_lock_init(void); #endif diff --git a/src/uadk_async.h b/src/uadk_async.h index 97b7d15..dbcd142 100644 --- a/src/uadk_async.h +++ b/src/uadk_async.h @@ -64,12 +64,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 int 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); +int 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