Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3440308pxb; Sun, 26 Sep 2021 15:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZLzs20omXrCoSGCVkZm1BvmYZHerIP/aHLz9g2Pd7MYxGSih4cg2vfRIthLUj6QdNcbei X-Received: by 2002:a17:902:da82:b0:13e:2e1e:aafa with SMTP id j2-20020a170902da8200b0013e2e1eaafamr1112398plx.49.1632695852024; Sun, 26 Sep 2021 15:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632695852; cv=none; d=google.com; s=arc-20160816; b=p4dLgHYDU5e5V3Uj4LElpSbnqTjGCkBbjoXMAIaTV7qK5+apY9tZufDcWhD+eviGTt GsbUPGZ8gt9+uEfljuDDu3fwRntfYbH7I1lxAqH6m+Q9dvXWcRs+ZIlKMhLUs4JQQSDT TcEkbY5OLNtXLyn25gCn3rTbrAyoAZ6Xu4KtCsxWblmRGsgL/CEBWmAAaBVHT7Zax2O2 FLD2WejLDpTzTp8QJNGsqyrwMmDrgm0gnYlZJ1uF7n5W0HoISfKqPkY5CJtrr22UyWQN SgoVjUu9ArPCpINOqioI3sCdmdn/ZB4JaOxJEUuuqi0zoEp69Yql+LsHBwo4DMvc0rGP QOvg== 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=tzBIb9Rrkx8NbszjPdEpu16O5Mah570+vhSFzL6iVU4=; b=aWWDW+ZB7/uXo2kWkTFwpZPw5ZmMrIg9YEoX0xn84a0JwDG7Hdldy+NWwgM97pJpIj Ls7ExHcDcInErDSLu0zHqInaZ9i5o1o9j+ovuUcAN+mqzk8BS5y57f4vX0aLhNr/yAxq qvyw88PNYQsMGzl6rp2nek5tHQW4oqnvQWWgS0BudJJb1c5igHo7/4fcBEnSAb5muCx6 iATR5jBxgCxVYhkqEebcX+wpD7xXgz7pmNDRgJ26CrBancI2Xg/cfnkLNjLeS3N/ngY/ /BpqVYic59Z6n67cwrHyaN5/uwBJU5va/dN+qJ+HbNdUzxio1de9cQ8QqWvMXKeTslu6 8PWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@usp.br header.s=usp-google header.b="Y/0/o41P"; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si19794279pfr.218.2021.09.26.15.37.19; Sun, 26 Sep 2021 15:37:32 -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=@usp.br header.s=usp-google header.b="Y/0/o41P"; 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=QUARANTINE sp=NONE dis=NONE) header.from=usp.br Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230509AbhIZWfX (ORCPT + 99 others); Sun, 26 Sep 2021 18:35:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231146AbhIZWfT (ORCPT ); Sun, 26 Sep 2021 18:35:19 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87BDEC061575 for ; Sun, 26 Sep 2021 15:33:42 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id a9so10089756qvf.0 for ; Sun, 26 Sep 2021 15:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp.br; s=usp-google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tzBIb9Rrkx8NbszjPdEpu16O5Mah570+vhSFzL6iVU4=; b=Y/0/o41Pe70qQK42UBfSUxuIpnjC4YEfaSZ/UYMWHES/flFLEToveab17WLhcNVcKB GR2F9mdNeqemVHENgXeRLl98XUkl4rtguI3a5jtFz3zCCuYuY9pJ9Gvy0wt1GAhUP+q0 rdaiVhkJFcw01gjL4qcsMlb61PTmjKusbosQlMh5lxIuiyOa64qAt0XspObUdCBxeeqX gLR1jOiUqRw5ZQzl22QVvN0CsihS65sr8SXn0PzPs3OkPuX0/oknbIyASrG3LH2Mujj7 paWWhUeJl8It37sOsLi16y03iYg1NANggXlqw17e9G/rcHcGaN/eL9CkV7Br7hkU9ar8 AJtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tzBIb9Rrkx8NbszjPdEpu16O5Mah570+vhSFzL6iVU4=; b=gAAGAMCON7pjnJzWNHRyLub7+unfNvtfKcGLhT9TrVbs2nkllZaT3xglfCWFBZfLay UxQPxcx37kpT3EzDQCncMuYPT/BGkajvzbhCnf/7dqOfUpO4T32aIMs2ykyOh0axSXRo d627igLWZIZSQNP4aGlMM3x/KWhl4pZqUf1wf26IdCTWbm7UEG1l1ju/WElhO7it0eVR ce4FHurM49TV5gSOALUwURS+LRvswuMVjzaAFUZauzhrwld4QjjUnYEQyRq00e7C9LBL zO9CDM1fAE/ieWlF3V2JKT17FUPEBzcQlPH/P0BAA9I+z/GMDuoAOzPxgBnV6nfDqEax DrWg== X-Gm-Message-State: AOAM532GECZmwuduAVM8XZ+JtxBIAJgmWBe254NCelC43w2fCt7WYXKw i3j02iISxdyXvHQRcYi4gnVdpQ== X-Received: by 2002:ad4:4531:: with SMTP id l17mr2839310qvu.18.1632695621723; Sun, 26 Sep 2021 15:33:41 -0700 (PDT) Received: from aehse.localdomain ([2804:d41:bd1c:9100:f2e1:f671:7a83:1eb8]) by smtp.gmail.com with ESMTPSA id x6sm7244151qts.79.2021.09.26.15.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 15:33:41 -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, Isabella Basso Subject: [PATCH v2 4/5] lib/Kconfig.debug: properly split hash test kernel entries Date: Sun, 26 Sep 2021 19:33:21 -0300 Message-Id: <20210926223322.848641-5-isabellabdoamaral@usp.br> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210926223322.848641-1-isabellabdoamaral@usp.br> References: <20210926223322.848641-1-isabellabdoamaral@usp.br> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 5efd1b435a37..c2e81d0eb31c 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.0