]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Use cc-disable-warning to disable -Wdangling-pointer
authorNathan Chancellor <nathan@kernel.org>
Tue, 24 May 2022 14:56:55 +0000 (07:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 May 2022 18:20:01 +0000 (11:20 -0700)
commitfdfa4cf2fb9df9f44834e9ff1a257383b45903af
tree42e8dce4ab05c59add362d39641854e65c10149b
parente3c57e67b8720d0b352436c6558f04805442fe99
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: 975f44be457c ("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>
drivers/net/wireless/ath/ath6kl/Makefile