Move prototype declaration of functions to header file hardware/eicon/um_idi.h because they are used by more than one file.
This eliminates the following warnings in hardware/eicon/divasi.c: drivers/isdn/hardware/eicon/divasi.c:446:6: warning: no previous prototype for ‘diva_os_wakeup_read’ [-Wmissing-prototypes] drivers/isdn/hardware/eicon/divasi.c:453:6: warning: no previous prototype for ‘diva_os_wakeup_close’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.khe...@gmail.com> Reviewed-by: Josh Triplett <j...@joshtriplett.org> --- drivers/isdn/hardware/eicon/idifunc.c | 2 -- drivers/isdn/hardware/eicon/um_idi.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/isdn/hardware/eicon/idifunc.c b/drivers/isdn/hardware/eicon/idifunc.c index fef6586..bacab74 100644 --- a/drivers/isdn/hardware/eicon/idifunc.c +++ b/drivers/isdn/hardware/eicon/idifunc.c @@ -22,8 +22,6 @@ extern char *DRIVERRELEASE_IDI; extern void DIVA_DIDD_Read(void *, int); -extern int diva_user_mode_idi_create_adapter(const DESCRIPTOR *, int); -extern void diva_user_mode_idi_remove_adapter(int); static dword notify_handle; static DESCRIPTOR DAdapter; diff --git a/drivers/isdn/hardware/eicon/um_idi.h b/drivers/isdn/hardware/eicon/um_idi.h index 00ca1e7..e973809 100644 --- a/drivers/isdn/hardware/eicon/um_idi.h +++ b/drivers/isdn/hardware/eicon/um_idi.h @@ -41,5 +41,7 @@ int divas_um_idi_entity_start_remove(void *entity); void diva_um_idi_start_wdog(void *entity); void diva_um_idi_stop_wdog(void *entity); +void diva_user_mode_idi_remove_adapter(int); +int diva_user_mode_idi_create_adapter(const DESCRIPTOR *, int); #endif -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/