Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3493848yba; Tue, 7 May 2019 02:04:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxupwfYMrX2ZesyWDgKNq8fgSHkmesBjho5SXXWOU2sa6+bjOsFaogyhbHSrhealPFik3Rk X-Received: by 2002:a63:541d:: with SMTP id i29mr38068532pgb.174.1557219870720; Tue, 07 May 2019 02:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557219870; cv=none; d=google.com; s=arc-20160816; b=TqooxLcjXs6Bfkj0pYxfb0pGDXPiMStVGSoFAAr9WUm84hATiq6FNWIRqfoS95cfPA NDbH5f6GXk0yl9WopCGW56yZryQuZCCPIc5zern/xpiPsCbTX/UoiUlfOpGBJyWAe571 7yCG/KU/EvkgB4pR3Haf4Dr1K5xAFdr3Zz9pq4HXJuOUYwaB7Qv/kwfC00B/MRNKsZJ2 s1AC1nZD3kthBAx4pvBt01ZlIhhjAuubYo3iTlIP5n/fUgCyjz+g7hQ6tMmC9UgMa3hi K6wcAp1vOI7rCHgTyQ+sLtSap4J/DGhhMUkYFNyMXXmEt2efxmzPJPo/1LfXrWON+50B nibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=V3vO+s4ZTwtoABSbkA7dRgVoDsl1xHBgs8O2qqM8lbQ=; b=x6mcqKuuGd8x7RZCGdlS1s1rg0myNlMVbeyAnATpdTDSLImxqv/D34vfa87slT3xiT GtdRYRrhdyGcrV8dXvxVUuEsMJqexG9Z3rXeS4C5UNuWbKKwqy+ocMDHdcs8gM191nn6 uP8CA6nWo35IK+6zeWOS0xzIC7hU6pZpcp/oQKjwo2LOTmdDHrSS6YXX2dbZL3Qynj7A iOSAmAdz6Wfa1LmLdjtJ2/kWPJJ5K/oN2Jv82tflfnCIu1NVlyYMNT2zRnH+4n9XU5A2 R4RDkPr/iyWoz5eWjkQJRhnKJA+lMEgVYqJv9REnW3OwxDd/gjA0dig3aDxXMHvz8BrR nYqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RQnrPZGW; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si17155205pgp.564.2019.05.07.02.04.02; Tue, 07 May 2019 02:04:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@kernel.org header.s=default header.b=RQnrPZGW; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726321AbfEGJDm (ORCPT + 99 others); Tue, 7 May 2019 05:03:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:48084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbfEGJDl (ORCPT ); Tue, 7 May 2019 05:03:41 -0400 Received: from localhost.localdomain (unknown [151.66.63.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 32037204FD; Tue, 7 May 2019 09:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557219821; bh=N8MHVEG3QXhN3Il/nzkdnb1xCbPK8TonnTx9JdM7aRo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RQnrPZGW312WKZqfjJDeHN3AlS/UeiXVEKMUG1Y6yMAZmX5641RdqBiAFbD0xYLmx lWcUNmioaOEZXoRMUv6EL+EcHPS+YHH6Ej57ZoWDbHH36u6ZUIhD58ZoqdGw6vXqoT wSqmRk5EVrKo58mwshPoXmlC9yH8Deayn2TFciP4= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, ryder.lee@mediatek.com, royluo@google.com Subject: [PATCH] mt76: mt7615: add static qualifier to mt7615_rx_poll_complete Date: Tue, 7 May 2019 11:03:33 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Make mt7615_rx_poll_complete static since it is used just in pci.c to initialize rx_poll_complete function pointer Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h | 1 - drivers/net/wireless/mediatek/mt76/mt7615/pci.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h b/drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h index 895c2904d7eb..be09a6e9f15b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h @@ -180,7 +180,6 @@ void mt7615_tx_complete_skb(struct mt76_dev *mdev, enum mt76_txq_id qid, void mt7615_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q, struct sk_buff *skb); -void mt7615_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q); void mt7615_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta, bool ps); int mt7615_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif, struct ieee80211_sta *sta); diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/pci.c b/drivers/net/wireless/mediatek/mt76/mt7615/pci.c index 10a249e13a43..7a41faac997a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/pci.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/pci.c @@ -27,7 +27,8 @@ u32 mt7615_reg_map(struct mt7615_dev *dev, u32 addr) return MT_PCIE_REMAP_BASE_2 + offset; } -void mt7615_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q) +static void +mt7615_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q) { struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); -- 2.20.1