From patchwork Mon Nov 2 11:24:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320223 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp3644219ilc; Mon, 2 Nov 2020 03:26:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtsougj/tTPnZ/5KnijoxEsUA+qG5wNLLkScrV0CVZXJHQnr5C1MoQ/Ek3/OI29smMoS8/ X-Received: by 2002:a05:6402:17b4:: with SMTP id j20mr4144822edy.24.1604316362651; Mon, 02 Nov 2020 03:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604316362; cv=none; d=google.com; s=arc-20160816; b=0DjAh9Nyg5lKMc+FaLOqj9PkB5GXjrTwMCwd5b/8oJkOYuJ2TV3dCd/jNVfnBPYCOL x2sA79L+W/DVs0KWEtrd6loL3kRYSLSdt46td9cnq4KOUl375Ey1vyzGOo3WEacvc6hE RdTF9whgp0ILVlBndqZek0GQ5acFTd1y6pTxLDQzNMrbwF9QbrMVGymp65Imk1zUySqg C1bvu6oVDvCPJWJngzPYNApMWTRQ5d7pGAhsubaFlLiJ9UE2Tnyrz3L8/AniW6E6moTt EBOOgRo/6suAU0QtzhNNSgTVYRcrhwGqVClToiY505la5XOQZEF1jt3zFRLd8dX5hmSl b0Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LpWKESLTGBe7YeMGrN5FmJYCFJcGpFNookfaDX/IDGg=; b=jKZQycnE7WlQAxrjvKcKSsIjT8O9Dpo4Mz2E50y4iusEfk2rXirm2PMx34l9rBbaHh y+UzyyljGFBbd++RVCi6LfL6EdVXy3BJdh3kpGTPzUD1seP6CmtSFKnfaCdbartCaF4l ADXVv+Vpx9ZYIEWhfyzo5OZrmYLT5YdeA0SHixYnQ9+DShWDCHW1+A67Nytgf1JU9kF4 cJJ8GQ2kNIOs+m1D3QL2Qk4ZzI8MfogfJiGaJ8lnpv773c0W+UtJUpMmWHFvSTubO1a/ EE0+/49XCdavymgyJ3RFH1LC77RyxWLIple1rIOlK/LnWxKtf2zX4rYOQdf3ifnJbhxF 4Qqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r5dRwCOB; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si11979676ejk.22.2020.11.02.03.26.02; Mon, 02 Nov 2020 03:26:02 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=@linaro.org header.s=google header.b=r5dRwCOB; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728873AbgKBLZz (ORCPT + 8 others); Mon, 2 Nov 2020 06:25:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728877AbgKBLZJ (ORCPT ); Mon, 2 Nov 2020 06:25:09 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08781C061A4E for ; Mon, 2 Nov 2020 03:25:07 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id h22so9152260wmb.0 for ; Mon, 02 Nov 2020 03:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LpWKESLTGBe7YeMGrN5FmJYCFJcGpFNookfaDX/IDGg=; b=r5dRwCOBEnNkEhSvcu8ebuTtLZMpAlfj59ZOipi6qoNBtJVyZFxR/ENjeGQ7/AcNso cqOfRNxCPcTLrEYICbEKEu1tydiDfltsD/8KVFTImadOsSiZqCbZmEKrKyE6koP3ttbO 0SHnXVSM/w+uWw11b9MM5F4CtPo/MirlBPwz7VCzzrtBkxS5js9Z2k5TFRcwhD5Dwza2 FeVKfh8hLHloz3hOKbA5m7Sp/Pj8qsWYVD9NFrWSC8ousDTAwYhIV0OXx9QqYTchAsxZ qnsEq8fgZrn8ElXazGnLAaVRbnI+UOgpNPqS6xWE/ermyTsylsJ0TlRi2kSvC/lrfLEh 9EWw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=LpWKESLTGBe7YeMGrN5FmJYCFJcGpFNookfaDX/IDGg=; b=MFpNab1UxuA9NWseEb7EfRcZAJOBmOrnMrNtY25m38gRUWEbs16d0Y/NKQZOrIAVpK 5HxE6viR1/+kec5n5RttqaOAlXsRYfg7N7Uxp9j8Vlw5ZqjXCdCmOq0kbuDFi6TMRikx N14RNnxiSC/k9izZqKjQwFDaBNZmvfOyTzcryuQGKhRkhTsAYmj0vhySal6YfoBNxzFQ rUKTx801O7JU/Bc71N0vC3ZnFDJdBMgT8teEqg1Bl1sUVG8o3ZbqZh8Y3qHFcjpFhMvX 3vBpwoXk/RTR+MrSCjT8OkvwenzG+//hBWN2nHdFfUlaHFagMwbsoYyYLXgEoLu/0qeL 9Pfg== X-Gm-Message-State: AOAM530RXLvGWRvztOyYuAQdQQglUYr2+cks6LjIenmNoD19trSl3wIw jrYrSZY303cW4jPQ437lSll9nw== X-Received: by 2002:a1c:2901:: with SMTP id p1mr17665790wmp.170.1604316305760; Mon, 02 Nov 2020 03:25:05 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id m14sm21867354wro.43.2020.11.02.03.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 03:25:05 -0800 (PST) From: Lee Jones To: kvalo@codeaurora.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Yan-Hsuan Chuang , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 36/41] rtw8822b: Return type is not const Date: Mon, 2 Nov 2020 11:24:05 +0000 Message-Id: <20201102112410.1049272-37-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102112410.1049272-1-lee.jones@linaro.org> References: <20201102112410.1049272-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/net/wireless/realtek/rtw88/rtw8822b.c:90:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] Cc: Yan-Hsuan Chuang Cc: Kalle Valo Cc: "David S. Miller" Cc: Jakub Kicinski Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/wireless/realtek/rtw88/rtw8822b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822b.c b/drivers/net/wireless/realtek/rtw88/rtw8822b.c index 22d0dd640ac94..b420eb9148796 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822b.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822b.c @@ -87,7 +87,7 @@ static const u32 rtw8822b_txscale_tbl[RTW_TXSCALE_SIZE] = { 0x2d3, 0x2fe, 0x32b, 0x35c, 0x38e, 0x3c4, 0x3fe }; -static const u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev) +static u8 rtw8822b_get_swing_index(struct rtw_dev *rtwdev) { u8 i = 0; u32 swing, table_value;