From patchwork Fri Apr 30 09:53:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 12232897 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B426FC433ED for ; Fri, 30 Apr 2021 09:54:54 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6F4BA6141C for ; Fri, 30 Apr 2021 09:54:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F4BA6141C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=HUY3QDkXPBFsf7PnziHo94AdGC7bGY9mfUDZsNAqsto=; b=HZ/6235/feOyRfM+d6Nxhjf2c1 IPIQ8i6g57DZVYh+SYuQj3VmokbOmZyBA0lzShxSAgju3GsoDq7HTvRvvl3/L0MJ84MTHpc/FG378 p1imd7oMhGwO2EkGWvZb694L2LiSMhbthu3s+cxkRIdFSpIXZlcvkt/Fz/+iRnUIwpYvgZzdmD/jj JKFS9Vo/hP9Qhb5X1bJnBzkOD7XOZTQow7AJF3Qm7m5cWODxlMe45q1dAG5E2GgBJZHqyoA5B5gkH oOhfYIdNamX7BJ+1yzp5fYBgSDklwewZLCXTvMkrzgKXN+kLd/26OnvcrHNYTyBvCu03xoVGIo1U/ Kfx4zX6g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lcPpm-007cVb-3W; Fri, 30 Apr 2021 09:53:18 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcPpk-007cVH-AG for linux-arm-kernel@desiato.infradead.org; Fri, 30 Apr 2021 09:53:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=rWYVkyjNGSDXaBdTb5uOB23Y8///uHEY/H6SPxSzUUA=; b=giC14phsfNA9voleVzC9uVa7SQ od375FT2Lm6WT3Z+uYCMKMi35M7PbmeGvgWdwTH7TMzzYK0WuMfAXmTLBd6ZEFO/TqAiHnNcnhe3P RI6+GNUgL2Sea1j0ah2f5P/ur0bcNlm5QPAn8FzHPPDAvSQBhMYNd3fKIQUKz1s6ffvNgvNr9Zvw7 44WhRqVrhZ8s7eCRPZpwpsDIqZNc3i76VsU5sSRF6ip0PQ/j/8SU8L9TjxbnHMZzKpkafcMMj+Q4J 09ftorWTf1FYgOFwlvAo6jhAJwr3LczfaDohJRM+b2Ij+HaG5jqtjmkdqTu2w53fIlxb4iXqzk2dR DmSz5K/A==; Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcPph-001Hku-TR for linux-arm-kernel@lists.infradead.org; Fri, 30 Apr 2021 09:53:15 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcPpe-0000x1-LB; Fri, 30 Apr 2021 11:53:10 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lcPpd-0003mC-26; Fri, 30 Apr 2021 11:53:09 +0200 From: Oleksij Rempel To: Shawn Guo , Sascha Hauer , Andrew Lunn , Florian Fainelli , Heiner Kallweit , Fugang Duan Cc: Oleksij Rempel , Geert Uytterhoeven , kernel@pengutronix.de, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, Fabio Estevam , David Jander , Russell King , Philippe Schenker Subject: [PATCH net-next v1 1/1] net: selftest: provide option to disable generic selftests Date: Fri, 30 Apr 2021 11:53:08 +0200 Message-Id: <20210430095308.14465-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210430_025313_971134_0FEBDAF2 X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Fixes: 3e1e58d64c3d ("net: add generic selftest support") Signed-off-by: Oleksij Rempel --- 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