From patchwork Tue Apr 3 15:01:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10321389 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 34182602C8 for ; Tue, 3 Apr 2018 15:01:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23BD6286D4 for ; Tue, 3 Apr 2018 15:01:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18573286D9; Tue, 3 Apr 2018 15:01:59 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 A3384286D4 for ; Tue, 3 Apr 2018 15:01:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751975AbeDCPB4 (ORCPT ); Tue, 3 Apr 2018 11:01:56 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:37592 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbeDCPB4 (ORCPT ); Tue, 3 Apr 2018 11:01:56 -0400 Received: by mail-wr0-f193.google.com with SMTP id l49so19051691wrl.4 for ; Tue, 03 Apr 2018 08:01:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rVSV7GVcjD/QfluxhUZsM+D3XMklk3W+LVIfYs+yyjY=; b=I4JU27noOgJ1i2Zu7fhvdFj5SFCkMDtHxjjXP6qm8jWOrjB6T9VAWvPiQZhPa5e2sy 9dkhxFvXpNJ/ms4PozFcaFSVpBvn6uIdnV31qa0xKvjDZOHUGWjLSVIttVba4iTE6X5h IjC3pG0KwnBDhq5pkZnOciQ2SCd+rLaxuTcg1mJPJMks9ouJgm7ckaSiSRWOO5MBG3C9 4d1eC2koqJzhWwQouCkPdrNj5m+5zU2mOKGKRYgNIuRdidclKIFAPBDDdME8lhYgxP7r XnQuMk4xuGhxEQ0r7EXboj3CvZRW9RzG1DimTNdtqWgJvfvz23bDborgAACmxV0WE6dD yAoQ== X-Gm-Message-State: AElRT7GnAY6JKBTf7c5my10jiMDEPRBSbDeqSHxML7fXMRYp5r6X9Ojo RTF6qNUMGxjty72X0Lryt1lFGg== X-Google-Smtp-Source: AIpwx49BEnIQzHMKM2q08wqvq4tXt4rhfq7ih/uNbXpLE1utYyZr2i6vkxRvVwJ2921rh1BjHuApgA== X-Received: by 10.223.196.82 with SMTP id a18mr10706642wrg.164.1522767714645; Tue, 03 Apr 2018 08:01:54 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id n64sm1161802wmd.11.2018.04.03.08.01.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Apr 2018 08:01:54 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org Subject: [PATCH] mt76x2: make mt76x2_mac_reset routine static Date: Tue, 3 Apr 2018 17:01:43 +0200 Message-Id: <3ac4534e4e14515843c8cb5fbd9accecfcef40d0.1522767292.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: 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 Add static qualifier to mt76x2_mac_reset routine and remove the prototype from mt76x2_mac.h since it is used just in mt76x2_init.c Signed-off-by: Lorenzo Bianconi Acked-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt76x2_init.c | 2 +- drivers/net/wireless/mediatek/mt76/mt76x2_mac.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_init.c b/drivers/net/wireless/mediatek/mt76/mt76x2_init.c index 934c331d995e..359b105235b3 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_init.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_init.c @@ -228,7 +228,7 @@ mt76x2_init_beacon_offsets(struct mt76x2_dev *dev) mt76_wr(dev, MT_BCN_OFFSET(i), regs[i]); } -int mt76x2_mac_reset(struct mt76x2_dev *dev, bool hard) +static int mt76x2_mac_reset(struct mt76x2_dev *dev, bool hard) { static const u8 null_addr[ETH_ALEN] = {}; const u8 *macaddr = dev->mt76.macaddr; diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_mac.h b/drivers/net/wireless/mediatek/mt76/mt76x2_mac.h index 8a8a25e32d5f..c048cd06df6b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_mac.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_mac.h @@ -157,7 +157,6 @@ mt76x2_skb_tx_info(struct sk_buff *skb) return (void *) info->status.status_driver_data; } -int mt76x2_mac_reset(struct mt76x2_dev *dev, bool hard); int mt76x2_mac_start(struct mt76x2_dev *dev); void mt76x2_mac_stop(struct mt76x2_dev *dev, bool force); void mt76x2_mac_resume(struct mt76x2_dev *dev);