From patchwork Fri Jul 6 14:48:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10511891 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 DAB3060325 for ; Fri, 6 Jul 2018 14:50:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7079201F5 for ; Fri, 6 Jul 2018 14:50:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB17D28672; Fri, 6 Jul 2018 14:50:09 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 72482201F5 for ; Fri, 6 Jul 2018 14:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9hBMrnJYDjLECeF+BzwlPsZ6+kWU0rpQqLP3sZF7/Lc=; b=SeM06SLRnt+qO4 48XjT/blot5X7OeLvJIj4hk8XVBtwpoFhuVTXUjnm8ECpEhduNcZUJ44lZF/OoH6efHBLWSYWtFn/ ZNp2ktbjgPf3nTldNknNtN8fe/LbmBMCS8U42I4rkPt24KdC6jP6QopQQo17onlW3rP0yukuX72TQ J9hfllxC6eoP1qxubI1LKgMnPCd/mIAbaalXbU+VQDrq4n4RpntXYf3f89McFTt3Y9w4Qvyr3qSjG E+6wLfL8mUePp2Y8q4IS4UwdQb+5wHmpEdi4BYDsl2HmT/4TzpPdGZ3OWpedMFIQaO53RIVDqbJbf 0qD15EcZERiRC4xU6mkw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbS3k-0000IW-NU for patchwork-linux-mediatek@patchwork.kernel.org; Fri, 06 Jul 2018 14:50:08 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbS3i-0007gc-Gw for linux-mediatek@lists.infradead.org; Fri, 06 Jul 2018 14:50:07 +0000 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jul 2018 07:49:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,316,1526367600"; d="scan'208";a="243153178" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga005.fm.intel.com with ESMTP; 06 Jul 2018 07:49:54 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1fbS3V-000C8V-KY; Fri, 06 Jul 2018 22:49:53 +0800 Date: Fri, 6 Jul 2018 22:48:58 +0800 From: kbuild test robot To: Stanislaw Gruszka Subject: [RFC PATCH] mt76: mt76x0_burst_read_regs() can be static Message-ID: <20180706144857.GA29077@lkp-wsm-ep1> References: <1530875029-26274-13-git-send-email-sgruszka@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1530875029-26274-13-git-send-email-sgruszka@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: lkp@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180706_075006_590793_56F623A0 X-CRM114-Status: GOOD ( 15.28 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stanislaw Gruszka , Jakub Kicinski , Hans Ulli Kroll , Michal Schmidt , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, kbuild-all@01.org, Lorenzo Bianconi , Felix Fietkau Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes: c1f1ff1a3d63 ("mt76: Kconfig and Makefile for mt76x0 driver") Signed-off-by: kbuild test robot --- mcu.c | 4 ++-- phy.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c index aafa3f3..0c9da79 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/mcu.c @@ -341,8 +341,8 @@ int mt76x0_burst_write_regs(struct mt76x0_dev *dev, u32 offset, data + cnt, n - cnt); } -int mt76x0_burst_read_regs(struct mt76x0_dev *dev, u32 base, - struct mt76_reg_pair *data, int n) +static int mt76x0_burst_read_regs(struct mt76x0_dev *dev, u32 base, + struct mt76_reg_pair *data, int n) { const int max_vals_per_cmd = INBAND_PACKET_MAX_LEN / 4 - 1; struct sk_buff *skb; diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c index 0830280..e52a506 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c @@ -986,7 +986,7 @@ mt76x0_rf_init(struct mt76x0_dev *dev) rf_set(dev, MT_RF(0, 4), 0x80); } -void mt76x0_ant_select(struct mt76x0_dev *dev) +static void mt76x0_ant_select(struct mt76x0_dev *dev) { /* Single antenna mode. */ mt76_rmw(dev, MT_WLAN_FUN_CTRL, BIT(5), BIT(6));