net: kcov: don't select SKB_EXTENSIONS when there is no NET
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 10 Nov 2020 17:57:46 +0000 (09:57 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Sep 2021 06:58:26 +0000 (08:58 +0200)
commit7ff0b71b6826ab93313af2c2a3e00c9dd93fb1b6
tree758f72ba5d3e6f8a3354949c065b924e70af9f6e
parentc4225992060bb9a851f0dcb3814f319ab90cfa3e
net: kcov: don't select SKB_EXTENSIONS when there is no NET

commit 85ce50d337d10a6fd328fa70b0a15543bf5c0f64 upstream.

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 <rdunlap@infradead.org>
Cc: Aleksandr Nogikh <nogikh@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20201110175746.11437-1-rdunlap@infradead.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/Kconfig.debug