Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2921349ybk; Mon, 18 May 2020 11:10:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWeDYEuwNQFUoGK0CMz6dv7V7E7UqBfwtHEHZ6wb7TTdqN6QiYYiK6ks+2m8G52WCNMv0M X-Received: by 2002:a17:906:a29a:: with SMTP id i26mr15364556ejz.199.1589825402957; Mon, 18 May 2020 11:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589825402; cv=none; d=google.com; s=arc-20160816; b=S2v8oRJdSpdcuCDBq/rI+yA54DrsdzkSnzgZ2dOcLmMxUrj47B2LbAVzqbQen037+V uQXvKEazZTNUbny7QkkIHSHp2LqulxmBzWvC4Viv2mjQ+RPXSSMsjVXG6jScG0xye/Kd ZbtzikNfbTwUWj6j9sP0YrMCmrI+ecT8F3nycAcIvRarnfYM/WoPuUFxeYNq5+wWDuw1 sPPg/dOOkmQoAPw+1uQ9fSHYd9sRdvJIdgp5ihOJt4k1hMYoQCWB1GSUXOKlBvkMa+De OJpzTXRZbkJ6Is7EVVoyTAhWUIjM0VRvihlSzrN3w63f3prOh6pTxp7JVLkthGPSeF2d 8kow== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=QI/loMP2VToOSyHyl11M4kud5QzGX96YAIJFStf1DNc=; b=L39jcrAXGcIhsFhfEofHnPqSWPGPrzCxfz9WuI0ZvsnL2W8Yhg/DXWf7e64xED+ysq LgtpnYmpBo9Fl+78Y7hA4GjMEL03eBmHcBc2dC99NGGRhPZ7SgsHG+YYN1+0nbjWMmuM QK4DqfmQkSCq7gh8T341cDjpbOqdFgkiRYoVhNdwEMJ8dv3LsQeflQ0rKNiXbBhs8ccB zBl7w4AVV7lCifRRD4sRHyx36JfvZ3Kf3YBCTVadDozU6vhLjLarsnFMMCXZYJWW/lM/ dv/6EUo6ElNmGoUiE+pJAn2aeo/Xpa3r5J8Xb5GnlY9hrvhW9LxsJh1fc61An1CJbHMB wl5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=dOr7V5ps; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si6734862ejr.394.2020.05.18.11.09.23; Mon, 18 May 2020 11:10:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=dOr7V5ps; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732871AbgERSIQ (ORCPT + 99 others); Mon, 18 May 2020 14:08:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47794 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1732674AbgERSIP (ORCPT ); Mon, 18 May 2020 14:08:15 -0400 X-UUID: 0523c6f9e2b140f3a3e14b5d3b805287-20200519 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=QI/loMP2VToOSyHyl11M4kud5QzGX96YAIJFStf1DNc=; b=dOr7V5psWni+BxA76oDJhValHXXEXbnKzsCXcSSs5/wwZR8nN7DlaKcy0h37MBQCdG3r1bqwBy2pFS6mR+NTjqgq4Bs8kW71aw0ZZajPRWP+VzcRCzBfRjbohiWfc+I74SuC9lb4eMorB06SdX+oeUhRnp+aoZX/23J1tDPJLtA=; X-UUID: 0523c6f9e2b140f3a3e14b5d3b805287-20200519 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1683445034; Tue, 19 May 2020 02:08:10 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 19 May 2020 02:07:47 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 19 May 2020 02:07:47 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH] mt76: mt7915: fix some sparse warnings Date: Tue, 19 May 2020 02:07:38 +0800 Message-ID: <6efa759a84f6662443fbb52362f0d803796d8cdd.1589824684.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: EF4C687C787AE45E9FF14781D1D65BDC6408EDA5EB491AF174DE1B3E532485062000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org ZHJpdmVycy9uZXQvd2lyZWxlc3MvbWVkaWF0ZWsvbXQ3Ni9tdDc5MTUvbWFpbi5jOjY5NDoxOiBz cGFyc2U6DQpzcGFyc2U6IGNvbnRleHQgaW1iYWxhbmNlIGluICdtdDc5MTVfc3RhX3JjX3VwZGF0 ZScgLSB3cm9uZyBjb3VudCBhdCBleGl0DQpkcml2ZXJzL25ldC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