Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp228072pxk; Tue, 1 Sep 2020 22:35:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy632lDmL6faFScaR/fZRF1xFxJ7W0lKlLohpaVmsjBeDyR23LnQuzMRuxSyAFh6kXp8/P4 X-Received: by 2002:a50:fc83:: with SMTP id f3mr5141386edq.102.1599024934648; Tue, 01 Sep 2020 22:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599024934; cv=none; d=google.com; s=arc-20160816; b=VmxH6bA3YX7WGjqrWtIotDBup6J9QOgM9F/f4HM3GkVUAZWtEVQXfRAbUAJ7wh5gKI Z5futanTqWwJdhVvwnl0QyYW9P9EHcS5zDEXSDkGOKbzXiUiU6Vq/m23ZAYV+kAxhkOE pI6N+Yx7w9EobbY4CjXUdQu0E/Lr82UhJRm92YXhnb/hTP8wp5BZtmkdUOeNq7Te4w0Q DxA/8UVXBUdzTteMTj0NWwcjgWwouvFpJFyzE0dIgHbwwx2YX1pFpwXY6A1JueWidDj7 4nOFOmkDVDetjDKloFRPDtGCmYfEin4vrEGmUDxGfSF+OyVduMERetRa1CNJ7Mx6fpWN moqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:authenticated-by; bh=E9brPPRJ/Lh0sBDADAf2wUJYWSzpaFjVhcneCWpMokI=; b=nYXAiMe3bTbv4p2AjWrel0wd8RAOuIciLz3pS3Mml5fptFnsAAse9wTUzG4eGKXOVI 2YWDm8symUGfVR2T/cViQ/QFC+8yLCXz9Lk3Eg0XFstwLn5Z4JVCilUtXb6uk0L4BOI5 1GcOGaM+94Y5rq/BGq+nbuiWIrXArBQ4nZZfniNA/3h/mwgyNu4j8XaL7iCrwHPEJwRj ZxMxHAd9RHMorguIaVwFJqvcITQkMFiYa6UkEWOGPIaxCWQXJN5dkYGghlDCthprek7G EKFP/y11Rs++AfRvXCx9Ptf1JfVD9uZPvIQIDs9sBcXxIxAEbyhB0jU4i/y1SxtGvs0D rupA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si1940878edt.534.2020.09.01.22.34.55; Tue, 01 Sep 2020 22:35:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726144AbgIBFeM (ORCPT + 99 others); Wed, 2 Sep 2020 01:34:12 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:40280 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgIBFeL (ORCPT ); Wed, 2 Sep 2020 01:34:11 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.69 with qID 0825Y4Z80018092, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmb06.realtek.com.tw[172.21.6.99]) by rtits2.realtek.com.tw (8.15.2/2.66/5.86) with ESMTPS id 0825Y4Z80018092 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 2 Sep 2020 13:34:05 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXMB06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Wed, 2 Sep 2020 13:34:04 +0800 Received: from localhost.localdomain (172.21.68.128) by RTEXMB04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Wed, 2 Sep 2020 13:34:04 +0800 From: To: CC: , Subject: [PATCH] rtw88: fix compile warning: [-Wignored-qualifiers] Date: Wed, 2 Sep 2020 13:34:02 +0800 Message-ID: <20200902053402.12839-1-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.128] X-ClientProxiedBy: RTEXMB04.realtek.com.tw (172.21.6.97) To RTEXMB04.realtek.com.tw (172.21.6.97) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Tzu-En Huang Remove function return type const in rtw8821c_get_swing_index(). This is unused, and unnecessary to be const. All warnings (new ones prefixed by >>): >> drivers/net/wireless/realtek/rtw88/rtw8821c.c:71:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] 71 | static const u8 rtw8821c_get_swing_index(struct rtw_dev *rtwdev) | ^~~~~ Fixes: f745eb9ca5bf ("rtw88: 8821c: Add 8821CE to Kconfig and Makefile") Reported-by: kernel test robot Signed-off-by: Tzu-En Huang Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/rtw8821c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8821c.c b/drivers/net/wireless/realtek/rtw88/rtw8821c.c index d8863d8a5468..da2e7415be8f 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8821c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8821c.c @@ -68,7 +68,7 @@ static const u32 rtw8821c_txscale_tbl[] = { 0x2d3, 0x2fe, 0x32b, 0x35c, 0x38e, 0x3c4, 0x3fe }; -static const u8 rtw8821c_get_swing_index(struct rtw_dev *rtwdev) +static u8 rtw8821c_get_swing_index(struct rtw_dev *rtwdev) { u8 i = 0; u32 swing, table_value; -- 2.17.1