Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1135638ybk; Sat, 16 May 2020 02:07:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeafAwmbJPjTGSSnQv/oMEIR50xJZA1OaG006vG7xYHOu/O+T9mdgNFoEGAvixFzK15RG5 X-Received: by 2002:aa7:c3d3:: with SMTP id l19mr6065305edr.14.1589620038147; Sat, 16 May 2020 02:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589620038; cv=none; d=google.com; s=arc-20160816; b=AKBOW7zImbjEaJqoFV608cbPAhcz2bGDDHs+4TJJWFdFNr61Lx3N1ykS6IRV3dfn8U NBPlxJd1H9gqwWXwU8itCmmsbyU8BfYSHr89GwoTdLI1KpVn9UQgMjFFzrF1YypXegVY FgU5h1u0y4NAbx+gVk/oId1e8spfd5AICZ9Dq5OLBzhN8QfytKJJe1QqpWOY2VFuxxd+ dv9f1fKB/AO/MEJl2h36mZIt5rWcPL9kMfOmpfG77RraZ80EnNgdvrB/Aqz+kUmQ0+Jg 4tT9HtUfQk5H4uWAKMjAwiPdzCpiMfMhAeWtD041TTrwvF9IjPuZPjZgnjruK6IzYCjG gqbg== 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=URhBg4iwpLNmGiEViy9OZtcCU3PfdFl2K8XTBaEHd50=; b=KtFt8sZ64/hpCpVn+aORRvqhX7aB1xE0VkBIKqtRDTbI306RNMfXtPlOYaaAsbJBr8 jlQ4F7GKHIqfsSboI9yVL5rf2G2qIX+N15ITQ4iaEPgcGEeKmG/H1ZXl8ZnjI5KmK7OO eHhv6d9PVqSseK0U1g2xm5uCh8CAeiuxq/T+xBfZ7ns5u88UTl7YwtRm0LYXrHl9d8sA ey3LOCvEdxVihTH4fRhT1Noucoifk8BJXu2t9yIjIzrvDq+cSRMx9+mnZsD0FAyB9CMf /T+GiF5MhgM0O0A65vmBYang4+Hpa6q82VDJA7dgb4On7c1zGlh0w6KroXhwZoQJs6aM 7GOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WSBMjWvh; 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 z8si2756145edl.471.2020.05.16.02.06.53; Sat, 16 May 2020 02:07:18 -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=WSBMjWvh; 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 S1726296AbgEPJFc (ORCPT + 99 others); Sat, 16 May 2020 05:05:32 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:55642 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726202AbgEPJFb (ORCPT ); Sat, 16 May 2020 05:05:31 -0400 X-UUID: f3835ecfb7aa4bf693c5896f8486d2da-20200516 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=URhBg4iwpLNmGiEViy9OZtcCU3PfdFl2K8XTBaEHd50=; b=WSBMjWvhsJy7MZiUv1+1tyhqREgsEEl+lcMMhbAZuaWagX4s/oU/nKnd1FQLM5BtMExeVgLZWP8PcxC4c4THpuQNrtMtWRog/lCBOkw2ZBzuV6oDRP+RgZ4aYigKJwbrES1JBXZ5uE0c76zoLsmdrjikQo6KB3K/dyrRso9VldY=; X-UUID: f3835ecfb7aa4bf693c5896f8486d2da-20200516 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1624334618; Sat, 16 May 2020 17:05:24 +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; Sat, 16 May 2020 17:05:20 +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; Sat, 16 May 2020 17:05:19 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 1/2] mt76: mt7915: fix some sparse warnings Date: Sat, 16 May 2020 17:05:18 +0800 Message-ID: <828924b331eb9524f851d0fb233904a45219b25d.1589619627.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: B3065C127174FA7B057436D113CA35D79116B575A965D933B756D9CA975C11D12000: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 VGhpcyBmaXhlcyB0aGUgZm9sbG93aW5nIHNwYXJzZSB3YXJuaW5nOg0KDQpkcml2ZXJzL25ldC93 aXJlbGVzcy9tZWRpYXRlay9tdDc2L210NzkxNS9tY3UuYzoyNTM6MTY6IHNwYXJzZTogc3BhcnNl OiBtaXhpbmcgZGlmZmVyZW50IGVudW0gdHlwZXM6DQpkcml2ZXJzL25ldC93aXJlb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