From 400309d015daa4efe8662ed9a75af926cc5ea28a Mon Sep 17 00:00:00 2001 From: Chaoli Zhou Date: Mon, 26 Sep 2022 10:34:00 +0800 Subject: [PATCH] qcacmn: Fix compiler warning on shift overflow in QCA vendor definitions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fx the following compiler error: qca-vendor.h:5892:54: error: result of β€˜1 << 31’ requires 33 bits to represent, but β€˜int’ only has 32 bits [-Werror=shift-overflow=] 5892 | QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31, This "1" needs to be marked unsigned for this case of MSB=1. Change-Id: I27daebd07d0cbf314459254cfc5906f5e56dd4be CRs-Fixed: 3299457 --- os_if/linux/qca_vendor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index 30d11fc5ac..c5955f87fd 100644 --- a/os_if/linux/qca_vendor.h +++ b/os_if/linux/qca_vendor.h @@ -3827,7 +3827,7 @@ enum qca_wlan_vendor_channel_prop_flags { /* HE 40 with extension channel below */ QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, /* HE 40 intolerant */ - QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1 << 31, + QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, }; /**