Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2853164ybg; Thu, 24 Oct 2019 16:36:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzh5k4BriOvzEmyI/ijSf3J06f9NWdO44NYtpnBIU5NeN0BkJASVN99yPXQb6vi7nJaNhij X-Received: by 2002:a05:6402:8c9:: with SMTP id d9mr848690edz.16.1571960219847; Thu, 24 Oct 2019 16:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571960219; cv=none; d=google.com; s=arc-20160816; b=ZetevNBQfxfg20Kz9rhdyamdQ+3AAHX3W2q0R+EPJn42IrGk8ag5vc0kWmByXOUYze WT2pSKHoQn/wJjn1zHTDDEpA7rfPtmU/F6BinDcapb3pghBzwM3OCo3jxvB2xBJUV7Fk mZIpO9+3A260mD8wPluL4oHA91mq/qR1AkaKipmhJBIz1NZgHOUcnqK420tjzzVIOV1T aeZMhatlhKbRaNB1DCrnjtokiUmSfnW/aPBm592RQEJPMKajew0oaCXAeE/cTFnDNRg6 TmO3JQrTy74KSTM7JJdgyVZyy7WYnCNoR5j/2tEtVt5Jds/RgsQTq5QJgTS/rBfav/SV pg0A== 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=RoQWDHs1Ryq4zJrxSVqHuyLpHNveROskhcNczdCwtus=; b=Eag/bJH98bIWvOTBqWnyyMXgBhEFdJLiL+B7w+IuGvv5z8N2x4vkal/isWsnVqSm/Q TBcrGzZDfKIAI+oYb3qoPtRn8YhXX+uugLY119RE2SnI4m2HrXfwjv6x9+YeUfht1Ps4 oxxiYo6FuxdtVXjpTQmXP/F3vqK+7SMS1Mg3MhiAJzuZc/lehTquRLZGMREExdKJbiDS /ZJStwAxXNnxPC2usja1S35dWaLb5BcunL6uccvT2x0se0ViHosgDgdtpbH+6TIVM+sL 0mxvX8OKgfkwqBXxfaXRmJVi8Wtwnh6D0ZlmOKjyPwhvsKqOnyhiPsmq9FIXVR+c/XPM xV0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ox5si169526ejb.252.2019.10.24.16.36.34; Thu, 24 Oct 2019 16:36:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393040AbfJXJUa (ORCPT + 99 others); Thu, 24 Oct 2019 05:20:30 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:50991 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389413AbfJXJUa (ORCPT ); Thu, 24 Oct 2019 05:20:30 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x9O9KP7n031233, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x9O9KP7n031233 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 24 Oct 2019 17:20:25 +0800 Received: from localhost.localdomain (172.21.68.126) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Thu, 24 Oct 2019 17:20:24 +0800 From: To: CC: Subject: [PATCH] rtw88: fix GENMASK_ULL for u64 Date: Thu, 24 Oct 2019 17:19:48 +0800 Message-ID: <20191024091948.10569-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.126] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang This fixes compile warning: In file included from include/linux/bitops.h:5:0, from include/linux/kernel.h:12, from include/asm-generic/bug.h:19, from arch/mips/include/asm/bug.h:42, from include/linux/bug.h:5, from include/net/mac80211.h:16, from drivers/net/wireless/realtek/rtw88/main.h:8, from drivers/net/wireless/realtek/rtw88/main.c:5: drivers/net/wireless/realtek/rtw88/main.c: In function 'rtw_update_rate_mask': include/linux/bits.h:23:11: warning: right shift count is negative [-Wshift-count-negative] (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ drivers/net/wireless/realtek/rtw88/main.c:622:17: note: in expansion of macro 'GENMASK' u64 cfg_mask = GENMASK(63, 0); ^~~~~~~ Fixes: f39e9bd49a3d ("rtw88: add set_bitrate_mask support") Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index 32e7328ce126..7c1b89c4fb6c 100644 --- a/drivers/net/wireless/realtek/rtw88/main.c +++ b/drivers/net/wireless/realtek/rtw88/main.c @@ -627,7 +627,7 @@ static u64 rtw_update_rate_mask(struct rtw_dev *rtwdev, { struct rtw_hal *hal = &rtwdev->hal; const struct cfg80211_bitrate_mask *mask = si->mask; - u64 cfg_mask = GENMASK(63, 0); + u64 cfg_mask = GENMASK_ULL(63, 0); u8 rssi_level, band; if (wireless_set != WIRELESS_CCK) { -- 2.17.1