From patchwork Sun Sep 9 20:32:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10593435 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-2.web.codeaurora.org (Postfix) with ESMTP id 753103E9D for ; Sun, 9 Sep 2018 20:33:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66C2428528 for ; Sun, 9 Sep 2018 20:33:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B80228562; Sun, 9 Sep 2018 20:33:07 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 B3F9928528 for ; Sun, 9 Sep 2018 20:33:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726862AbeIJBX6 (ORCPT ); Sun, 9 Sep 2018 21:23:58 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43266 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726688AbeIJBX5 (ORCPT ); Sun, 9 Sep 2018 21:23:57 -0400 Received: by mail-wr1-f68.google.com with SMTP id k5-v6so19741575wre.10 for ; Sun, 09 Sep 2018 13:33:04 -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; bh=v0VgowobTDOFye5U27yijs5BGYYH9W0MtqpB3GSluVE=; b=T0lytWqXU5mBeifJ1DJW6MoLtfDZcumbmYxqZ4dpnnFSP2OYKzcP9bh4JjWXkOEJaG pqAEs7Sr16DWfwmPVs8C02rlAwOhh6qx9LPU8WfW4zqMmwgI9NvTg1e6ZxkN227T7vkD s7PpSXxVVpWj06wpVViPSDtrAUOXvZt4Wq1VPQJiQE2DXjjL/sYzIJEGKRSYGE+8ycwK jPEdep2SK8vzzoRqcpH9JBDs5X/sNUoypGzfwet9Wq6j1gmjVidYYUf/kWloqj5h6XCP MwrSYBhRMcvqxhMWdA/IjzS19MYKPyAS+Y0V3ok/OX/FajendzhUL54i5ZQyG7f+pkt+ u3OQ== X-Gm-Message-State: APzg51A8pgIWJdg1PHlNGxwgBqq6e+DnfwOsfEE8NMgpGoGXxsS2LnQW DNQjCVCKWtisqMbHAek5if7eWw== X-Google-Smtp-Source: ANB0VdZ7vXtyjihgfKbkgTQsB5hrcj8WFDDO13o1XGTGguqSzZoYD2VfzGRbwqwbRQybORzRH5l33A== X-Received: by 2002:adf:a196:: with SMTP id u22-v6mr12904451wru.50.1536525183959; Sun, 09 Sep 2018 13:33:03 -0700 (PDT) Received: from localhost.localdomain ([151.66.53.29]) by smtp.gmail.com with ESMTPSA id y184-v6sm13652006wmg.17.2018.09.09.13.33.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Sep 2018 13:33:03 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 09/11] mt76x02: add static qualifier to mt76x02_remove_dma_hdr Date: Sun, 9 Sep 2018 22:32:44 +0200 Message-Id: <20180909203246.21608-10-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.18.0 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 mt76x02_remove_dma_hdr routine and do not export the symbol since it is only used in mt76x02_util.c Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 3 +-- drivers/net/wireless/mediatek/mt76/mt76x02_util.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_util.c b/drivers/net/wireless/mediatek/mt76/mt76x02_util.c index a14d7dba628b..3a3d355b9e61 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_util.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_util.c @@ -407,7 +407,7 @@ void mt76x02_remove_hdr_pad(struct sk_buff *skb, int len) } EXPORT_SYMBOL_GPL(mt76x02_remove_hdr_pad); -void mt76x02_remove_dma_hdr(struct sk_buff *skb) +static void mt76x02_remove_dma_hdr(struct sk_buff *skb) { int hdr_len; @@ -416,7 +416,6 @@ void mt76x02_remove_dma_hdr(struct sk_buff *skb) if (hdr_len % 4) mt76x02_remove_hdr_pad(skb, 2); } -EXPORT_SYMBOL_GPL(mt76x02_remove_dma_hdr); void mt76x02_tx_complete(struct mt76_dev *dev, struct sk_buff *skb) { diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_util.h b/drivers/net/wireless/mediatek/mt76/mt76x02_util.h index 48307ef2c380..2ea9e68bfa3f 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_util.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_util.h @@ -48,7 +48,6 @@ void mt76x02_sta_rate_tbl_update(struct ieee80211_hw *hw, int mt76x02_insert_hdr_pad(struct sk_buff *skb); void mt76x02_remove_hdr_pad(struct sk_buff *skb, int len); void mt76x02_tx_complete(struct mt76_dev *dev, struct sk_buff *skb); -void mt76x02_remove_dma_hdr(struct sk_buff *skb); void mt76x02_tx_complete_skb(struct mt76_dev *mdev, struct mt76_queue *q, struct mt76_queue_entry *e, bool flush); bool mt76x02_tx_status_data(struct mt76_dev *dev, u8 *update);