Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755333AbaBGMTV (ORCPT ); Fri, 7 Feb 2014 07:19:21 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:38409 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754179AbaBGMTO (ORCPT ); Fri, 7 Feb 2014 07:19:14 -0500 Date: Fri, 7 Feb 2014 17:49:09 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Cc: Armin Schindler , Karsten Keil , netdev@vger.kernel.org, josh@joshtriplett.org Subject: [PATCH 02/26] drivers: isdn: Move prototype declaration to header file um_idi.h from um_idi.c Message-ID: 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/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 Reviewed-by: Josh Triplett --- drivers/isdn/hardware/eicon/um_idi.c | 5 ----- drivers/isdn/hardware/eicon/um_idi.h | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/isdn/hardware/eicon/um_idi.c b/drivers/isdn/hardware/eicon/um_idi.c index e151971..676663a 100644 --- a/drivers/isdn/hardware/eicon/um_idi.c +++ b/drivers/isdn/hardware/eicon/um_idi.c @@ -14,11 +14,6 @@ #define DIVAS_MAX_XDI_ADAPTERS 64 /* -------------------------------------------------------------------------- - IMPORTS - -------------------------------------------------------------------------- */ -extern void diva_os_wakeup_read(void *os_context); -extern void diva_os_wakeup_close(void *os_context); -/* -------------------------------------------------------------------------- LOCALS -------------------------------------------------------------------------- */ static LIST_HEAD(adapter_q); diff --git a/drivers/isdn/hardware/eicon/um_idi.h b/drivers/isdn/hardware/eicon/um_idi.h index ffb88f7..00ca1e7 100644 --- a/drivers/isdn/hardware/eicon/um_idi.h +++ b/drivers/isdn/hardware/eicon/um_idi.h @@ -34,6 +34,8 @@ int diva_um_idi_write(void *entity, int diva_user_mode_idi_ind_ready(void *entity, void *os_handle); void *diva_um_id_get_os_context(void *entity); int diva_os_get_context_size(void); +void diva_os_wakeup_read(void *os_context); +void diva_os_wakeup_close(void *os_context); int divas_um_idi_entity_assigned(void *entity); int divas_um_idi_entity_start_remove(void *entity); -- 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/