From patchwork Sat Sep 24 05:21:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76917 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp197604qgf; Fri, 23 Sep 2016 22:22:14 -0700 (PDT) X-Received: by 10.98.137.145 with SMTP id n17mr18645419pfk.170.1474694534233; Fri, 23 Sep 2016 22:22:14 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h22si11636021pfa.22.2016.09.23.22.22.13; Fri, 23 Sep 2016 22:22:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934325AbcIXFWL (ORCPT + 27 others); Sat, 24 Sep 2016 01:22:11 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33162 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751324AbcIXFWJ (ORCPT ); Sat, 24 Sep 2016 01:22:09 -0400 Received: by mail-pf0-f169.google.com with SMTP id 21so48313865pfy.0 for ; Fri, 23 Sep 2016 22:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=NQJKqrzz0CFFQsU/ZyhFE0pdzvfBp+2+OV2S5YWmYBg=; b=djE++CMvMy26JCHvX0VYPC4y4JwxkEX91wXXJIPU8/4FflQRa44tNYuLrK2xuWklyy df5/tj83GjGqa1Rp/nVEZR9yo7yqnr7zs2MJsP5BtLQPHd0Wt2SEjoYnQxMZKvhJD6o1 7BP+02z6lHUsXOe3xNHeMaNeCeFsPPtpBam/4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NQJKqrzz0CFFQsU/ZyhFE0pdzvfBp+2+OV2S5YWmYBg=; b=WjDZW6cDw19+qz1sxf+ptAioskYlbrIONb+GVH7Pf+qeqitZet3XoiiWvjmzX9309v NoEeBTHMxMYPDLNlcl1kYgI6CCWDJzq54pQ4fFdCVNpVXrCf5waAcU/Yzp5va3TQkSOh MaZug0K+CqNO7HUF+Zdc5k31NRHG6Y5tnIqLDJqq6fW0SL89PQE+/mdENsp9ztoRVM65 VlVHOeHFqsCahBqsNaMUIisDGh7qkpBPdpT00eIsWOybO/2d2PrgVTl41si20ZiZ6jtm FslLOIE3h/SHVngs24pucYSrqnrs/NqxalBHV+zgMzuQhglxbdbWo/MhEUM7xlCIAtjM ItOw== X-Gm-Message-State: AE9vXwPLxALFZaDUeCaMd7/0RDUoFs4GScnSoH5yvywNgqFwLPtT8kfm1MB3gIqSU3QjsDle X-Received: by 10.98.194.133 with SMTP id w5mr18655985pfk.42.1474694528784; Fri, 23 Sep 2016 22:22:08 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id c26sm7937604pfe.20.2016.09.23.22.22.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 22:22:08 -0700 (PDT) From: Baoyou Xie To: isdn@linux-pingi.de, linux-kernel.bfrz@manchmal.in-ulm.de, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH 3/6] isdn/hisax: add function declarations Date: Sat, 24 Sep 2016 13:21:47 +0800 Message-Id: <1474694507-7379-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get a few warnings when building kernel with W=1: drivers/isdn/hisax/teles3.c:273:5: warning: no previous prototype for 'setup_teles3' [-Wmissing-prototypes] drivers/isdn/hisax/s0box.c:213:5: warning: no previous prototype for 'setup_s0box' [-Wmissing-prototypes] drivers/isdn/hisax/bkm_a4t.c:325:5: warning: no previous prototype for 'setup_bkm_a4t' [-Wmissing-prototypes] drivers/isdn/hisax/w6692.c:996:5: warning: no previous prototype for 'setup_w6692' [-Wmissing-prototypes] .... In fact, these functions need be declared in some header files. So this patch adds function declarations in drivers/isdn/hisax/hisax.h. Signed-off-by: Baoyou Xie --- drivers/isdn/hisax/config.c | 60 --------------------------------------------- drivers/isdn/hisax/hisax.h | 60 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 60 deletions(-) -- 2.7.4 diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index bf04d2a..5335c8b 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn/hisax/config.c @@ -460,42 +460,14 @@ __setup("hisax=", HiSax_setup); extern int setup_teles0(struct IsdnCard *card); #endif -#if CARD_TELES3 -extern int setup_teles3(struct IsdnCard *card); -#endif - -#if CARD_S0BOX -extern int setup_s0box(struct IsdnCard *card); -#endif - -#if CARD_TELESPCI -extern int setup_telespci(struct IsdnCard *card); -#endif - #if CARD_AVM_A1 extern int setup_avm_a1(struct IsdnCard *card); #endif -#if CARD_AVM_A1_PCMCIA -extern int setup_avm_a1_pcmcia(struct IsdnCard *card); -#endif - -#if CARD_FRITZPCI -extern int setup_avm_pcipnp(struct IsdnCard *card); -#endif - -#if CARD_ELSA -extern int setup_elsa(struct IsdnCard *card); -#endif - #if CARD_IX1MICROR2 extern int setup_ix1micro(struct IsdnCard *card); #endif -#if CARD_DIEHLDIVA -extern int setup_diva(struct IsdnCard *card); -#endif - #if CARD_ASUSCOM extern int setup_asuscom(struct IsdnCard *card); #endif @@ -504,10 +476,6 @@ extern int setup_asuscom(struct IsdnCard *card); extern int setup_TeleInt(struct IsdnCard *card); #endif -#if CARD_SEDLBAUER -extern int setup_sedlbauer(struct IsdnCard *card); -#endif - #if CARD_SPORTSTER extern int setup_sportster(struct IsdnCard *card); #endif @@ -524,18 +492,6 @@ extern int setup_netjet_s(struct IsdnCard *card); extern int setup_hfcs(struct IsdnCard *card); #endif -#if CARD_HFC_PCI -extern int setup_hfcpci(struct IsdnCard *card); -#endif - -#if CARD_HFC_SX -extern int setup_hfcsx(struct IsdnCard *card); -#endif - -#if CARD_NICCY -extern int setup_niccy(struct IsdnCard *card); -#endif - #if CARD_ISURF extern int setup_isurf(struct IsdnCard *card); #endif @@ -544,22 +500,6 @@ extern int setup_isurf(struct IsdnCard *card); extern int setup_saphir(struct IsdnCard *card); #endif -#if CARD_BKM_A4T -extern int setup_bkm_a4t(struct IsdnCard *card); -#endif - -#if CARD_SCT_QUADRO -extern int setup_sct_quadro(struct IsdnCard *card); -#endif - -#if CARD_GAZEL -extern int setup_gazel(struct IsdnCard *card); -#endif - -#if CARD_W6692 -extern int setup_w6692(struct IsdnCard *card); -#endif - #if CARD_NETJET_U extern int setup_netjet_u(struct IsdnCard *card); #endif diff --git a/drivers/isdn/hisax/hisax.h b/drivers/isdn/hisax/hisax.h index 6ead6314..7e1d2a6 100644 --- a/drivers/isdn/hisax/hisax.h +++ b/drivers/isdn/hisax/hisax.h @@ -1350,3 +1350,63 @@ static inline struct pci_dev *hisax_find_pci_device(unsigned int vendor, } #endif + +#if CARD_TELES3 +int setup_teles3(struct IsdnCard *card); +#endif + +#if CARD_TELESPCI +int setup_telespci(struct IsdnCard *card); +#endif + +#if CARD_S0BOX +int setup_s0box(struct IsdnCard *card); +#endif + +#if CARD_AVM_A1_PCMCIA +int setup_avm_a1_pcmcia(struct IsdnCard *card); +#endif + +#if CARD_FRITZPCI +int setup_avm_pcipnp(struct IsdnCard *card); +#endif + +#if CARD_ELSA +int setup_elsa(struct IsdnCard *card); +#endif + +#if CARD_DIEHLDIVA +int setup_diva(struct IsdnCard *card); +#endif + +#if CARD_SEDLBAUER +int setup_sedlbauer(struct IsdnCard *card); +#endif + +#if CARD_HFC_PCI +int setup_hfcpci(struct IsdnCard *card); +#endif + +#if CARD_HFC_SX +int setup_hfcsx(struct IsdnCard *card); +#endif + +#if CARD_NICCY +int setup_niccy(struct IsdnCard *card); +#endif + +#if CARD_BKM_A4T +int setup_bkm_a4t(struct IsdnCard *card); +#endif + +#if CARD_SCT_QUADRO +int setup_sct_quadro(struct IsdnCard *card); +#endif + +#if CARD_GAZEL +int setup_gazel(struct IsdnCard *card); +#endif + +#if CARD_W6692 +int setup_w6692(struct IsdnCard *card); +#endif