Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755241AbaBGMuT (ORCPT ); Fri, 7 Feb 2014 07:50:19 -0500 Received: from mail-pd0-f176.google.com ([209.85.192.176]:55989 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754802AbaBGMt6 (ORCPT ); Fri, 7 Feb 2014 07:49:58 -0500 Date: Fri, 7 Feb 2014 18:19:53 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Cc: Armin Schindler , Karsten Keil , netdev@vger.kernel.org, josh@joshtriplett.org Subject: [PATCH 26/26] drivers: isdn: Move prototype declaration to header file platform.h from divasmain.c Message-ID: <03ee99107b3f4f0683055b6d0f0a0a6d53801dca.1390408520.git.rashika.kheria@gmail.com> References: <3cb4d7892ba5a0c0936b3a1e2c9c991a6dbc3229.1390408513.git.rashika.kheria@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3cb4d7892ba5a0c0936b3a1e2c9c991a6dbc3229.1390408513.git.rashika.kheria@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move prototype declaration of functions to header file hardware/eicon/platform.h because they are used by more than one file. This elliminates the following warnings in hardware/eicon/divasproc.c: drivers/isdn/hardware/eicon/divasproc.c:125:5: warning: no previous prototype for ‘create_divas_proc’ [-Wmissing-prototypes] drivers/isdn/hardware/eicon/divasproc.c:135:6: warning: no previous prototype for ‘remove_divas_proc’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- drivers/isdn/hardware/eicon/divasmain.c | 3 --- drivers/isdn/hardware/eicon/platform.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/isdn/hardware/eicon/divasmain.c b/drivers/isdn/hardware/eicon/divasmain.c index 6b15670..3b1e5bc 100644 --- a/drivers/isdn/hardware/eicon/divasmain.c +++ b/drivers/isdn/hardware/eicon/divasmain.c @@ -55,9 +55,6 @@ static char *DRIVERLNAME = "divas"; static char *DEVNAME = "Divas"; char *DRIVERRELEASE_DIVAS = "2.0"; -extern int create_divas_proc(void); -extern void remove_divas_proc(void); - typedef struct _diva_os_thread_dpc { struct tasklet_struct divas_task; diva_os_soft_isr_t *psoft_isr; diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h index 6bec7db..800b8bd 100644 --- a/drivers/isdn/hardware/eicon/platform.h +++ b/drivers/isdn/hardware/eicon/platform.h @@ -161,6 +161,8 @@ void diva_xdi_didd_remove_adapter(int card); void diva_get_vserial_number(PISDN_ADAPTER IoAdapter, char *buf); int divasfunc_init(int dbgmask); void divasfunc_exit(void); +int create_divas_proc(void); +void remove_divas_proc(void); /* ** memory allocation -- 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/