From patchwork Tue Jul 12 11:32:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 9225147 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 337B460868 for ; Tue, 12 Jul 2016 11:34:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24E862756B for ; Tue, 12 Jul 2016 11:34:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1954A27F7F; Tue, 12 Jul 2016 11:34:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B02302756B for ; Tue, 12 Jul 2016 11:34:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932926AbcGLLdu (ORCPT ); Tue, 12 Jul 2016 07:33:50 -0400 Received: from m12-15.163.com ([220.181.12.15]:48290 "EHLO m12-15.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752554AbcGLLds (ORCPT ); Tue, 12 Jul 2016 07:33:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=cmIEC vJEH6SQ4ejkGjuc/rw9f0wobRjNQB7DIb+kEgA=; b=Ig92NQm3jrWVSvsuXTvFG nI3qgqOLuK/JkiETrGwYYc0H9tUATpUn4n60B6r+c2jJG78bzgtg6IcXcaGLGfrX e7itzt86L4otfv4rNCRiTU7hEJ3HOsXG+MnBZyfaMpjjfpm3clUPBV2Rn5Iy5mUc X+3JDgtVwIQX4uzN1us3iA= Received: from localhost.localdomain.localdomain (unknown [180.110.253.144]) by smtp11 (Coremail) with SMTP id D8CowABHOchD1YRXqkDvCw--.31582S2; Tue, 12 Jul 2016 19:32:20 +0800 (CST) From: weiyj_lk@163.com To: Kalle Valo , sudip , Andreas Kemnade Cc: Wei Yongjun , libertas-dev@lists.infradead.org, linux-wireless@vger.kernel.org Subject: [PATCH -next] libertas: fix non static symbol warning Date: Tue, 12 Jul 2016 11:32:19 +0000 Message-Id: <1468323139-1756-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CM-TRANSID: D8CowABHOchD1YRXqkDvCw--.31582S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUXr1UKF1DAr1kWrWruFg_yoWDZFc_uw 1fXr17Krnxuws29a1j939xJ39aka1qvFykKr4IqrZ3G34DJ3yYyrWFvF17Ary5uw4YvasI ywnrAr15AasFyjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnj0PDUUUUU== X-Originating-IP: [180.110.253.144] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbivwSk1lWBS6aZtgAAsf Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/net/wireless/marvell/libertas/cfg.c:2047:5: warning: symbol 'lbs_set_power_mgmt' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/net/wireless/marvell/libertas/cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/marvell/libertas/cfg.c b/drivers/net/wireless/marvell/libertas/cfg.c index ea48024..7ff2efa 100644 --- a/drivers/net/wireless/marvell/libertas/cfg.c +++ b/drivers/net/wireless/marvell/libertas/cfg.c @@ -2044,8 +2044,8 @@ static int lbs_leave_ibss(struct wiphy *wiphy, struct net_device *dev) -int lbs_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, - bool enabled, int timeout) +static int lbs_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, + bool enabled, int timeout) { struct lbs_private *priv = wiphy_priv(wiphy);