Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2066854pxb; Thu, 28 Oct 2021 15:34:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE0EZ8ZlLhgkRa0lQOgSSMK/FEURFAe8pezRMyJajY/ba0TNHkWmFOdiR1n1MduE86WPrT X-Received: by 2002:a17:906:15d0:: with SMTP id l16mr9023552ejd.462.1635460469679; Thu, 28 Oct 2021 15:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635460469; cv=none; d=google.com; s=arc-20160816; b=tJNUW7W2rj+rvJ0C2WKV1pY6bAOMFovHyughKK/XkK+FjnTD1vG7A1mUVBo3TAN+bi U1SVnkYaHh6uWMyPL5YLrdv4nvM2qYUJk0xrGe703Q/tTktfj9kvjbucF2j6+40eK231 ecaihyf4jGwMi5b4J2Ufhhe1YCbbpLiZpQrstsJVVFA38HJafbtb0jytctnDqjRXCuFM p+V7iQYn6wtrJfm++pTgudPL0g1sD3WaonMa95xQ4SZBBxQP00M/oH3Lh7zq/P6Gtl1F z+pQ8q9XUC5q/lgnmrovYTpHg9tyvgfqqgtAyNpHYAI5gQTJhPHk/lnp4n292Q33tsO9 uC0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AAyLhrBNzSEMexhZ+Z/myrrTiePggVH/nPRAAOUuXd8=; b=wT2oAX43IBk+31yh4mWh7B4jY3ln2frQN+Vqxa+iOsAD1BTEFs7a9g3km9rFeeZUig KpK7JareoNvfYezGXFlH/T7jxR3xxuVe9yJK3vIyVo7Vv1Sn3VFnRxsEaWpFa7w4ZHiM qV6dKfWocymyQiuzmouv20xPxOHFZpPx6fDdGv8apsrpx3TQ0Wd47eXxta9FXHjgONmc 0SV0HxD4i2mN3oQMHCumOUiwsig5sN02HRf/zuCkkz+L1BF1Deu5ykpdjx1NWwz5BOAu s/+6j1+tzwspxhR7Txbx5P3JSu9cFLvNqHJblOwVyKj3+ZNrGjVnaahrFIO8kHTRipBO NOjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=qqD3XpEI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si8015244edf.607.2021.10.28.15.34.06; Thu, 28 Oct 2021 15:34:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=qqD3XpEI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231500AbhJ1Weo (ORCPT + 99 others); Thu, 28 Oct 2021 18:34:44 -0400 Received: from mx1.riseup.net ([198.252.153.129]:55060 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231360AbhJ1Wec (ORCPT ); Thu, 28 Oct 2021 18:34:32 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4HgKs22VSBzDyY5; Thu, 28 Oct 2021 15:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1635459958; bh=tkbCFKWrxjGir7rH9teJRsNvOx10l1152R9VWniiWbs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qqD3XpEIJgdniRWd7lBJWRVYuQpLYIIYON3UkqGxxI7u38+ijUVtvPdj47ZSVwseY wegLCWgdBHm8DDzKrFBBwQUHpAoptW7EaEYkQJRLuNWosXlGWypGCfgn03yt0Tm9DC FLaW4030nrdRJ2J4KNcvHWrCN0w2GrjVM1fwOJiY= X-Riseup-User-ID: FA42E503019DA0D6417FD084CED29259A0B9C9A14E5B4DF9D236072844DDB55E Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4HgKry2xMHz5wT9; Thu, 28 Oct 2021 15:25:54 -0700 (PDT) From: Isabella Basso To: geert@linux-m68k.org Cc: ferreiraenzoa@gmail.com, augusto.duraes33@gmail.com, brendanhiggins@google.com, dlatypov@google.com, davidgow@google.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, ~lkcamp/patches@lists.sr.ht, rodrigosiqueiramelo@gmail.com, akpm@linux-foundation.org, skhan@linuxfoundation.org, Isabella Basso , Isabella Basso Subject: [PATCH v3 4/5] lib/Kconfig.debug: properly split hash test kernel entries Date: Thu, 28 Oct 2021 19:25:32 -0300 Message-Id: <20211028222533.432641-5-isabbasso@riseup.net> In-Reply-To: <20211028222533.432641-1-isabbasso@riseup.net> References: <20211028222533.432641-1-isabbasso@riseup.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Isabella Basso Split TEST_HASH so that each entry only has one file. Note that there's no stringhash test file, but actually tests are performed in lib/test_hash.c. Reviewed-by: David Gow Tested-by: David Gow Signed-off-by: Isabella Basso --- lib/Kconfig.debug | 14 +++++++++++--- lib/Makefile | 3 ++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2a9b6dcdac4f..eb6c4daf5fcb 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2207,9 +2207,17 @@ config TEST_RHASHTABLE config TEST_HASH tristate "Perform selftest on hash functions" help - Enable this option to test the kernel's integer (), - string (), and siphash () - hash functions on boot (or module load). + Enable this option to test the kernel's integer (), and + string () hash functions on boot (or module load). + + This is intended to help people writing architecture-specific + optimized versions. If unsure, say N. + +config TEST_SIPHASH + tristate "Perform selftest on siphash functions" + help + Enable this option to test the kernel's siphash () hash + functions on boot (or module load). This is intended to help people writing architecture-specific optimized versions. If unsure, say N. diff --git a/lib/Makefile b/lib/Makefile index a841be5244ac..02eff11956d4 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -61,7 +61,8 @@ obj-$(CONFIG_TEST_FIRMWARE) += test_firmware.o obj-$(CONFIG_TEST_BITOPS) += test_bitops.o CFLAGS_test_bitops.o += -Werror obj-$(CONFIG_TEST_SYSCTL) += test_sysctl.o -obj-$(CONFIG_TEST_HASH) += test_hash.o test_siphash.o +obj-$(CONFIG_TEST_SIPHASH) += test_siphash.o +obj-$(CONFIG_TEST_HASH) += test_hash.o obj-$(CONFIG_TEST_IDA) += test_ida.o obj-$(CONFIG_KASAN_KUNIT_TEST) += test_kasan.o CFLAGS_test_kasan.o += -fno-builtin -- 2.33.1