From patchwork Fri Feb 7 12:44:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rashika Kheria X-Patchwork-Id: 318018 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4A32D2C00A0 for ; Fri, 7 Feb 2014 23:44:58 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756017AbaBGMoi (ORCPT ); Fri, 7 Feb 2014 07:44:38 -0500 Received: from mail-pb0-f44.google.com ([209.85.160.44]:51959 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753450AbaBGMog (ORCPT ); Fri, 7 Feb 2014 07:44:36 -0500 Received: by mail-pb0-f44.google.com with SMTP id rq2so3213845pbb.3 for ; Fri, 07 Feb 2014 04:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=BKmkmjE1Rorv0FrKEfCJIZ9U25sFbTySklt37UFBbZU=; b=k4KiU3QBniJgnumVA9zXlUyAEy1N0QKLdtxUr5mRaNcixbYAnUspAA1luB5wbBuKQP 5itre8k+1UbO2VF5U83U8M++DiGst7GJZjC0UsAZeW/7+Sa9eFH30U2MpkrMd55u9N9j m1A/eW7e0V0pYg9agDE0IqxO+acJEAtkcnoN+Q+4ZscrWbFypGWRKwzE1QULMV1Yuejm u21ePY/Sja/rsFBU7MrxZHV52LqV3ncIs3gIIiUFI3EAGfFonEXJbPvJfTXXXqJ/vTrL YJl3tm6ceiKNT57zewVWyauI83LNVXGw0QTDnCt0XyXboW100yhN4ktwFYqfh9saf/tU 2KIg== X-Received: by 10.66.194.2 with SMTP id hs2mr7513579pac.79.1391777076053; Fri, 07 Feb 2014 04:44:36 -0800 (PST) Received: from rashika ([14.139.82.6]) by mx.google.com with ESMTPSA id tu3sm32777232pab.1.2014.02.07.04.44.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 04:44:34 -0800 (PST) Date: Fri, 7 Feb 2014 18:14:29 +0530 From: Rashika Kheria To: linux-kernel@vger.kernel.org Cc: Armin Schindler , Karsten Keil , netdev@vger.kernel.org, josh@joshtriplett.org Subject: [PATCH 21/26] drivers: isdn: Move prototype declaration to header file platform.h from os_4bri.c Message-ID: References: <3cb4d7892ba5a0c0936b3a1e2c9c991a6dbc3229.1390408513.git.rashika.kheria@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3cb4d7892ba5a0c0936b3a1e2c9c991a6dbc3229.1390408513.git.rashika.kheria@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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 eliminates the following warnings in hardware/eicon/s_4bri.c: drivers/isdn/hardware/eicon/s_4bri.c:128:6: warning: no previous prototype for ‘start_qBri_hardware’ [-Wmissing-prototypes] drivers/isdn/hardware/eicon/s_4bri.c:275:5: warning: no previous prototype for ‘qBri_FPGA_download’ [-Wmissing-prototypes] drivers/isdn/hardware/eicon/s_4bri.c:487:6: warning: no previous prototype for ‘prepare_qBri_functions’ [-Wmissing-prototypes] drivers/isdn/hardware/eicon/s_4bri.c:496:6: warning: no previous prototype for ‘prepare_qBri2_functions’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett --- drivers/isdn/hardware/eicon/os_4bri.c | 9 --------- drivers/isdn/hardware/eicon/platform.h | 5 +++++ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/isdn/hardware/eicon/os_4bri.c b/drivers/isdn/hardware/eicon/os_4bri.c index 54f7033..287ceee 100644 --- a/drivers/isdn/hardware/eicon/os_4bri.c +++ b/drivers/isdn/hardware/eicon/os_4bri.c @@ -23,15 +23,6 @@ static void *diva_xdiLoadFileFile = NULL; static dword diva_xdiLoadFileLength = 0; /* -** IMPORTS -*/ -extern void prepare_qBri_functions(PISDN_ADAPTER IoAdapter); -extern void prepare_qBri2_functions(PISDN_ADAPTER IoAdapter); - -extern int qBri_FPGA_download(PISDN_ADAPTER IoAdapter); -extern void start_qBri_hardware(PISDN_ADAPTER IoAdapter); - -/* ** LOCALS */ static unsigned long _4bri_bar_length[4] = { diff --git a/drivers/isdn/hardware/eicon/platform.h b/drivers/isdn/hardware/eicon/platform.h index a507cea..af3d0a6 100644 --- a/drivers/isdn/hardware/eicon/platform.h +++ b/drivers/isdn/hardware/eicon/platform.h @@ -187,6 +187,11 @@ void diddfunc_finit(void); void prepare_maestra_functions(PISDN_ADAPTER IoAdapter); +void start_qBri_hardware(PISDN_ADAPTER IoAdapter); +void prepare_qBri_functions(PISDN_ADAPTER IoAdapter); +void prepare_qBri2_functions(PISDN_ADAPTER IoAdapter); +int qBri_FPGA_download(PISDN_ADAPTER IoAdapter); + /* ** use skbuffs for message buffer */