From patchwork Sat Sep 24 05:24:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76918 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp198296qgf; Fri, 23 Sep 2016 22:24:44 -0700 (PDT) X-Received: by 10.66.5.4 with SMTP id o4mr18839162pao.177.1474694684600; Fri, 23 Sep 2016 22:24:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yi8si11606384pac.65.2016.09.23.22.24.43; Fri, 23 Sep 2016 22:24:44 -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 S935248AbcIXFYk (ORCPT + 27 others); Sat, 24 Sep 2016 01:24:40 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:32849 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932187AbcIXFYi (ORCPT ); Sat, 24 Sep 2016 01:24:38 -0400 Received: by mail-pa0-f47.google.com with SMTP id hm5so46289375pac.0 for ; Fri, 23 Sep 2016 22:24:38 -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=PP5O48jbvNwfwvfg5ReLIZCrAoT43Ez64YcAPmN4WMo=; b=Vyvpt0xwqqnlBAitBgWSu+VMhxCF27kk8OdevPsGBMl4qwfRqhAMDRQ0vglmTc5zkW Qtz0JcgQgJYAvnXsrdgUOq8mpFVdR15bTcxciO0gUSBbeJdUqMs27naM0i+j0nBBH6h1 GONCsnq60FnlThz1Zf4QrPBYBn9Oqa6+IkeGQ= 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=PP5O48jbvNwfwvfg5ReLIZCrAoT43Ez64YcAPmN4WMo=; b=AXIOcv8Y3HKfYZyDOv1ZhvCYTKE/qM2PqTfizMjYUIBsp1Ojw5rOeGcvwD/dgm/u+A tMb2cag7tiR1FIH/GHUUiE63WToxlmZFuTW/h+Q2LlLHm5uRF+gYpe/iD7AVd6Ld7+3M VeuhqC+SGM/0D7+yfoBc1uF/hyZTXYDceIN3YW2/gpa3ryFQ3sKxbwOw0hKBXZLPsw/W XrZxDKo0CflH20I7hz8WNB+MV+1aQ3FzDwMemonoC7iZi9bHYwyb4/rsi08y88OHaLbI T27bxZdQQHbgw7PuPxiU48CNVE8cVIDEhg2LgsHI9PMyGQrsf6XUmdcAONDb4eHJgDp1 anTQ== X-Gm-Message-State: AE9vXwN2cepuQNsqEdSrgEBe17t2s5aHKMxfcDCTntPwu/4kz3VmoiC5OXQlBi98UC0+PVyJ X-Received: by 10.66.254.170 with SMTP id aj10mr18948332pad.124.1474694677919; Fri, 23 Sep 2016 22:24:37 -0700 (PDT) Received: from localhost.localdomain ([45.56.152.27]) by smtp.gmail.com with ESMTPSA id e71sm15063779pfc.75.2016.09.23.22.24.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Sep 2016 22:24:37 -0700 (PDT) From: Baoyou Xie To: isdn@linux-pingi.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH 4/6] isdn/hisax: clean function declaration in hscx.c up Date: Sat, 24 Sep 2016 13:24:22 +0800 Message-Id: <1474694662-7527-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 1 warning when building kernel with W=1: drivers/isdn/hisax/hscx.c:175:1: warning: no previous prototype for 'open_hscxstate' [-Wmissing-prototypes] In fact, this function is declared in drivers/isdn/hisax/elsa_ser.c, but should be declard in a header file, thus can be recognized in other file. So this patch moves the declaration into drivers/isdn/hisax/hscx.h. Signed-off-by: Baoyou Xie --- drivers/isdn/hisax/elsa_ser.c | 2 +- drivers/isdn/hisax/hscx.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/isdn/hisax/elsa_ser.c b/drivers/isdn/hisax/elsa_ser.c index a2a358c..34ccc18 100644 --- a/drivers/isdn/hisax/elsa_ser.c +++ b/drivers/isdn/hisax/elsa_ser.c @@ -10,6 +10,7 @@ #include #include #include +#include "hscx.h" #define MAX_MODEM_BUF 256 #define WAKEUP_CHARS (MAX_MODEM_BUF / 2) @@ -419,7 +420,6 @@ static void rs_interrupt_elsa(struct IsdnCardState *cs) #endif } -extern int open_hscxstate(struct IsdnCardState *cs, struct BCState *bcs); extern void modehscx(struct BCState *bcs, int mode, int bc); extern void hscx_l2l1(struct PStack *st, int pr, void *arg); diff --git a/drivers/isdn/hisax/hscx.h b/drivers/isdn/hisax/hscx.h index 1148b4b..fa7bf16 100644 --- a/drivers/isdn/hisax/hscx.h +++ b/drivers/isdn/hisax/hscx.h @@ -39,3 +39,4 @@ extern void modehscx(struct BCState *bcs, int mode, int bc); extern void clear_pending_hscx_ints(struct IsdnCardState *cs); extern void inithscx(struct IsdnCardState *cs); extern void inithscxisac(struct IsdnCardState *cs, int part); +int open_hscxstate(struct IsdnCardState *cs, struct BCState *bcs);