From: Randy Dunlap Date: Tue, 10 Nov 2020 17:57:46 +0000 (-0800) Subject: net: kcov: don't select SKB_EXTENSIONS when there is no NET X-Git-Tag: accepted/tizen/unified/20230118.172025~8321^2~272 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85ce50d337d10a6fd328fa70b0a15543bf5c0f64;p=platform%2Fkernel%2Flinux-rpi.git net: kcov: don't select SKB_EXTENSIONS when there is no NET Fix kconfig warning when CONFIG_NET is not set/enabled: WARNING: unmet direct dependencies detected for SKB_EXTENSIONS Depends on [n]: NET [=n] Selected by [y]: - KCOV [=y] && ARCH_HAS_KCOV [=y] && (CC_HAS_SANCOV_TRACE_PC [=y] || GCC_PLUGINS [=n]) Fixes: 6370cc3bbd8a ("net: add kcov handle to skb extensions") Signed-off-by: Randy Dunlap Cc: Aleksandr Nogikh Cc: Willem de Bruijn Link: https://lore.kernel.org/r/20201110175746.11437-1-rdunlap@infradead.org Signed-off-by: Jakub Kicinski --- diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index dd052a2..fc6e120 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1870,7 +1870,7 @@ config KCOV depends on CC_HAS_SANCOV_TRACE_PC || GCC_PLUGINS select DEBUG_FS select GCC_PLUGIN_SANCOV if !CC_HAS_SANCOV_TRACE_PC - select SKB_EXTENSIONS + select SKB_EXTENSIONS if NET help KCOV exposes kernel code coverage information in a form suitable for coverage-guided fuzzing (randomized testing).