mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
ath6kl: Use cc-disable-warning to disable -Wdangling-pointer
Clang does not support this option so the build fails:
error: unknown warning option '-Wno-dangling-pointer' [-Werror,-Wunknown-warning-option]
Use cc-disable-warning so that the option is only added when it is
supported.
Fixes: bd1d129daa
("wifi: ath6k: silence false positive -Wno-dangling-pointer warning on GCC 12")
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20220524145655.869822-1-nathan@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
677fb75253
commit
48a75b9799
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ ath6kl_core-y += recovery.o
|
|||
|
||||
# FIXME: temporarily silence -Wdangling-pointer on non W=1+ builds
|
||||
ifndef KBUILD_EXTRA_WARN
|
||||
CFLAGS_htc_mbox.o += -Wno-dangling-pointer
|
||||
CFLAGS_htc_mbox.o += $(call cc-disable-warning, dangling-pointer)
|
||||
endif
|
||||
|
||||
ath6kl_core-$(CONFIG_NL80211_TESTMODE) += testmode.o
|
||||
|
|
Loading…
Reference in a new issue