Messages in this thread Patch in this message | | | Date | Fri, 7 Feb 2014 18:03:00 +0530 | From | Rashika Kheria <> | Subject | [PATCH 11/26] drivers: isdn: Move prototype declarations to header file platform.h from mntfunc.c |
| |
Move prototype declarations of functions to header file hardware/eicon/platform.h because they are used by more than one file.
This eliminates the following warnings in hardware/eicon/divamnt.c: drivers/isdn/hardware/eicon/divamnt.c:75:5: warning: no previous prototype for ‘diva_os_copy_to_user’ [-Wmissing-prototypes] drivers/isdn/hardware/eicon/divamnt.c:80:5: warning: no previous prototype for ‘diva_os_copy_from_user’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> --- drivers/isdn/hardware/eicon/mntfunc.c | 5 ----- drivers/isdn/hardware/eicon/platform.h | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/drivers/isdn/hardware/eicon/mntfunc.c b/drivers/isdn/hardware/eicon/mntfunc.c index 1cd9aff..e304a1d 100644 --- a/drivers/isdn/hardware/eicon/mntfunc.c +++ b/drivers/isdn/hardware/eicon/mntfunc.c @@ -29,11 +29,6 @@ static DESCRIPTOR MAdapter; static DESCRIPTOR MaintDescriptor = { IDI_DIMAINT, 0, 0, (IDI_CALL) diva_maint_prtComp }; -extern int diva_os_copy_to_user(void *os_handle, void __user *dst, - const void *src, int length); -extern int diva_os_copy_from_user(void *os_handle, void *dst, - const void __user *src, int length); - static void no_printf(unsigned char *x, ...) { /* dummy debug function */ diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h index ef329e0..f170e21 100644 --- a/drivers/isdn/hardware/eicon/platform.h +++ b/drivers/isdn/hardware/eicon/platform.h @@ -277,6 +277,15 @@ void diva_os_remove_soft_isr(diva_os_soft_isr_t *psoft_isr); void diva_os_get_time(dword *sec, dword *usec); /* + * kernel/user space copy functions + */ +int diva_os_copy_to_user(void *os_handle, void __user *dst, + const void *src, int length); +int diva_os_copy_from_user(void *os_handle, void *dst, + const void __user *src, int length); + + +/* ** atomic operation, fake because we use threads */ typedef int diva_os_atomic_t; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |