Skip to content

Commit 85ce50d

Browse files
rddunlapkuba-moo
authored andcommitted
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: 6370cc3 ("net: add kcov handle to skb extensions") Signed-off-by: Randy Dunlap <[email protected]> Cc: Aleksandr Nogikh <[email protected]> Cc: Willem de Bruijn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 255bf5e commit 85ce50d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Kconfig.debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ config KCOV
18701870
depends on CC_HAS_SANCOV_TRACE_PC || GCC_PLUGINS
18711871
select DEBUG_FS
18721872
select GCC_PLUGIN_SANCOV if !CC_HAS_SANCOV_TRACE_PC
1873-
select SKB_EXTENSIONS
1873+
select SKB_EXTENSIONS if NET
18741874
help
18751875
KCOV exposes kernel code coverage information in a form suitable
18761876
for coverage-guided fuzzing (randomized testing).

0 commit comments

Comments
 (0)