public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v1 1/1] net: selftest: provide option to disable generic selftests
@ 2021-04-30  9:53 Oleksij Rempel
  2021-04-30 15:13 ` Randy Dunlap
  0 siblings, 1 reply; 7+ messages in thread
From: Oleksij Rempel @ 2021-04-30  9:53 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer, Andrew Lunn, Florian Fainelli,
	Heiner Kallweit, Fugang Duan
  Cc: Oleksij Rempel, Geert Uytterhoeven, kernel, netdev,
	linux-arm-kernel, linux-kernel, linux-imx, Fabio Estevam,
	David Jander, Russell King, Philippe Schenker

Some systems may need to disable selftests to reduce kernel size or for
some policy reasons. This patch provide option to disable generic selftests.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 3e1e58d64c3d ("net: add generic selftest support")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 net/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/net/Kconfig b/net/Kconfig
index f5ee7c65e6b4..dac98c73fcd8 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -431,7 +431,12 @@ config SOCK_VALIDATE_XMIT
 
 config NET_SELFTESTS
 	def_tristate PHYLIB
+	prompt "Support for generic selftests"
 	depends on PHYLIB && INET
+	help
+	  These selftests are build automatically if any driver with generic
+	  selftests support is enabled. This option can be used to disable
+	  selftests to reduce kernel size.
 
 config NET_SOCK_MSG
 	bool
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-04-30 16:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-30  9:53 [PATCH net-next v1 1/1] net: selftest: provide option to disable generic selftests Oleksij Rempel
2021-04-30 15:13 ` Randy Dunlap
2021-04-30 15:41   ` Oleksij Rempel
2021-04-30 16:23     ` Andrew Lunn
2021-04-30 16:33       ` Randy Dunlap
2021-04-30 16:56         ` Andrew Lunn
2021-04-30 16:25     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox