From patchwork Sun Sep 18 11:18:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76460 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp486509qgf; Sun, 18 Sep 2016 04:18:53 -0700 (PDT) X-Received: by 10.66.7.8 with SMTP id f8mr37902528paa.91.1474197533372; Sun, 18 Sep 2016 04:18:53 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si22388900paa.258.2016.09.18.04.18.53; Sun, 18 Sep 2016 04:18:53 -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 S1760087AbcIRLSv (ORCPT + 27 others); Sun, 18 Sep 2016 07:18:51 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:35775 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754693AbcIRLSl (ORCPT ); Sun, 18 Sep 2016 07:18:41 -0400 Received: by mail-pa0-f47.google.com with SMTP id oz2so34932469pac.2 for ; Sun, 18 Sep 2016 04:18:41 -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=VTv72v+71fUSn5hhzkjLzUdJjfO/Xwtrwct5TSGex+Q=; b=I5t6aJSVXFY0XTV+aV1XNg0AKYtyqCfslLRnBgc5/2dDEzn0qVaotrwOMxE9HVoYu4 LbuGsoSMq7EgS3Fq2ORhDGv0yXRsqkXL+SAU6evIVpgRpQvDo5AT4aRpRbVt1/QxxRDt LLkVNbgChkprWn0LbT+NG01v/iRsCd3l4N3RA= 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=VTv72v+71fUSn5hhzkjLzUdJjfO/Xwtrwct5TSGex+Q=; b=XcXtHWGJ+2E/CaMum67aslSsRq2eN49dx3eYRRr5YGz6iTIDqk06fsfJVRmjDte8Ju qxBPD4Ix/2fXcYue9trNyCAzd8acDXQldpWv1aJs0B7+S4xC/BGzxBNdBXD7ix5Z+i5L 3UWAUe3hYsW4QtH6zQa9dRxMNvBCthzbRDfOxKYpGFa9u66dFG8fkVGg3syCdFMORJDY 5IE7qTSp9vlfGejqrC02dFq42CvDV98DDHAWd8+fNoqykfv5/8KQL69eBaguFzpIuBKH OwXQp7hRWs14vDypXsHiZ6VmXsBdbiMZrDtO2fO1ufwv8r292fX58gbvJoCyCiM3gFsR m2cA== X-Gm-Message-State: AE9vXwMuuuFv/RQso0IMbRXgTo+DRICbJ9KXjAccS/+RP1mjTNme8bvZ4EdJQYESZfDQS1V5 X-Received: by 10.66.253.7 with SMTP id zw7mr37973942pac.25.1474197520557; Sun, 18 Sep 2016 04:18:40 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.27]) by smtp.gmail.com with ESMTPSA id tq5sm23964657pac.42.2016.09.18.04.18.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 04:18:40 -0700 (PDT) From: Baoyou Xie To: gregkh@linuxfoundation.org, wsa+renesas@sang-engineering.com, colin.king@canonical.com, hofrat@osadl.org, karniksayli1995@gmail.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] staging: ks7010: clean function declarations in ks_hostif.c up Date: Sun, 18 Sep 2016 19:18:24 +0800 Message-Id: <1474197504-10336-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 2 warnings when building kernel with W=1: drivers/staging/ks7010/ks7010_sdio.c:152:6: warning: no previous prototype for 'ks_wlan_hw_wakeup_request' [-Wmissing-prototypes] drivers/staging/ks7010/ks7010_sdio.c:255:5: warning: no previous prototype for 'ks_wlan_hw_power_save' [-Wmissing-prototypes] In fact, both functions are declared in drivers/staging/ks7010/ks_hostif.c, but should be declared in a header file, thus can be recognized in other file. So this patch adds the declarations into drivers/staging/ks7010/ks_wlan.h. Signed-off-by: Baoyou Xie --- drivers/staging/ks7010/ks_hostif.c | 3 --- drivers/staging/ks7010/ks_wlan.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index aacb93e..49a81d2 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -25,9 +25,6 @@ extern int ks_wlan_hw_tx(struct ks_wlan_private *priv, void *p, void (*complete_handler) (void *arg1, void *arg2), void *arg1, void *arg2); -extern void ks_wlan_hw_wakeup_request(struct ks_wlan_private *priv); -extern int ks_wlan_hw_power_save(struct ks_wlan_private *priv); - /* macro */ #define inc_smeqhead(priv) \ ( priv->sme_i.qhead = (priv->sme_i.qhead + 1) % SME_EVENT_BUFF_SIZE ) diff --git a/drivers/staging/ks7010/ks_wlan.h b/drivers/staging/ks7010/ks_wlan.h index 936222b..54a1531 100644 --- a/drivers/staging/ks7010/ks_wlan.h +++ b/drivers/staging/ks7010/ks_wlan.h @@ -501,6 +501,8 @@ struct ks_wlan_private { extern int ks_wlan_net_start(struct net_device *dev); extern int ks_wlan_net_stop(struct net_device *dev); +void ks_wlan_hw_wakeup_request(struct ks_wlan_private *priv); +int ks_wlan_hw_power_save(struct ks_wlan_private *priv); void send_packet_complete(void *, void *);