summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2016-10-25 15:11:43 -0700
committerDavide Garberi <dade.garberi@gmail.com>2022-07-27 18:37:11 +0200
commite344ad3e6441cf4366e010934e2cfcc73ad8f27f (patch)
treeee90d553539716081911d9e4a463b69087723fc7
parent21f26c35f69a753dedfa1a7171e4c898b641495c (diff)
qcacld-2.0: suppress bogus clang shift warnings
As the comment in regdomain.h notes, the shifts in the BM() macro are all properly range-checked, so the behavior is always defined. Silence these warnings to keep them from flooding the build log. Change-Id: I85ceb24e66bf281883104d47dcfa23765a32840c Signed-off-by: Greg Hackmann <ghackmann@google.com> Signed-off-by: mydongistiny <jaysonedson@gmail.com>
-rw-r--r--drivers/staging/qcacld-2.0/CORE/SERVICES/WMA/regdomain_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/staging/qcacld-2.0/CORE/SERVICES/WMA/regdomain_common.h b/drivers/staging/qcacld-2.0/CORE/SERVICES/WMA/regdomain_common.h
index 955284e267f6..80f6e44f17f5 100644
--- a/drivers/staging/qcacld-2.0/CORE/SERVICES/WMA/regdomain_common.h
+++ b/drivers/staging/qcacld-2.0/CORE/SERVICES/WMA/regdomain_common.h
@@ -1194,6 +1194,12 @@ static const REG_DMN_FREQ_BAND regDmn2Ghz11gTurboFreq[] = {
};
#endif /* ATH_REMOVE_2G_TURBO_RD_TABLE */
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wshift-count-negative"
+#pragma clang diagnostic ignored "-Wshift-count-overflow"
+#endif
+
static const REG_DOMAIN ahCmnRegDomains[] = {
{DEBUG_REG_DMN, FCC, DFS_FCC3, NO_PSCAN, NO_REQ,
@@ -1980,6 +1986,10 @@ static const REG_DOMAIN ahCmnRegDomains[] = {
},
};
+#ifdef __clang__
+#pragma clang diagnostic pop
+#endif
+
static const struct cmode modes[] = {
{ REGDMN_MODE_TURBO, IEEE80211_CHAN_ST}, /* TURBO means 11a Static Turbo */
{ REGDMN_MODE_11A, IEEE80211_CHAN_A},