From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0AB55C433F5 for ; Thu, 20 Jan 2022 02:09:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 990C36B00B1; Wed, 19 Jan 2022 21:09:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 971706B00B2; Wed, 19 Jan 2022 21:09:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 856E56B00B3; Wed, 19 Jan 2022 21:09:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0009.hostedemail.com [216.40.44.9]) by kanga.kvack.org (Postfix) with ESMTP id 772D86B00B1 for ; Wed, 19 Jan 2022 21:09:16 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 4412B180FE0ED for ; Thu, 20 Jan 2022 02:09:16 +0000 (UTC) X-FDA: 79049033112.18.EDFDC4E Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf12.hostedemail.com (Postfix) with ESMTP id B6F364003F for ; Thu, 20 Jan 2022 02:09:15 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B08C5B81911; Thu, 20 Jan 2022 02:09:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1EDCC004E1; Thu, 20 Jan 2022 02:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1642644553; bh=/C5G73PKeQcSOBBcU1X+kkrp9RH/HiRBejYiec50hi4=; h=Date:From:To:Subject:In-Reply-To:From; b=He7yJZ2SfJ8GWqgeqrvBrI3rHZeKuUket5lyoS6Gl9e7XRMXyTuXj5SOegcdJM52e knz5LWyUx+5T46u5OBT45QHDW5+VPuNnNLC9byv6LyjcEd2LJf2APRxEEiFbiVud6q PQI07uC9f+kLYLHqAxposJqZk3WMOMYX+gmwMjpc= Date: Wed, 19 Jan 2022 18:09:12 -0800 From: Andrew Morton To: akpm@linux-foundation.org, augusto.duraes33@gmail.com, brendanhiggins@google.com, davidgow@google.com, dlatypov@google.com, ferreiraenzoa@gmail.com, geert@linux-m68k.org, isabbasso@riseup.net, linux-mm@kvack.org, lkp@intel.com, mm-commits@vger.kernel.org, rodrigosiqueiramelo@gmail.com, skhan@linuxfoundation.org, torvalds@linux-foundation.org Subject: [patch 28/55] lib/Kconfig.debug: properly split hash test kernel entries Message-ID: <20220120020912.-NS2X1Va2%akpm@linux-foundation.org> In-Reply-To: <20220119180714.9e187ce100e4510de3cd9f7d@linux-foundation.org> User-Agent: s-nail v14.8.16 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: B6F364003F X-Stat-Signature: qh8gxqc6xxi4chged1gsthk39disjqin Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=He7yJZ2S; spf=pass (imf12.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam07 X-HE-Tag: 1642644555-154688 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: =46rom: Isabella Basso Subject: lib/Kconfig.debug: properly split hash test kernel entries 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. Link: https://lkml.kernel.org/r/20211208183711.390454-5-isabbasso@riseup.net Reviewed-by: David Gow Tested-by: David Gow Signed-off-by: Isabella Basso Cc: Augusto Dur=C3=A3es Camargo Cc: Brendan Higgins Cc: Daniel Latypov Cc: Enzo Ferreira Cc: Geert Uytterhoeven Cc: kernel test robot Cc: Rodrigo Siqueira Cc: Shuah Khan Signed-off-by: Andrew Morton --- lib/Kconfig.debug | 14 +++++++++++--- lib/Makefile | 3 ++- 2 files changed, 13 insertions(+), 4 deletions(-) --- a/lib/Kconfig.debug~lib-kconfigdebug-properly-split-hash-test-kernel-en= tries +++ a/lib/Kconfig.debug @@ -2210,9 +2210,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). =20 This is intended to help people writing architecture-specific optimized versions. If unsure, say N. --- a/lib/Makefile~lib-kconfigdebug-properly-split-hash-test-kernel-entries +++ a/lib/Makefile @@ -61,7 +61,8 @@ obj-$(CONFIG_TEST_FIRMWARE) +=3D test_firm obj-$(CONFIG_TEST_BITOPS) +=3D test_bitops.o CFLAGS_test_bitops.o +=3D -Werror obj-$(CONFIG_TEST_SYSCTL) +=3D test_sysctl.o -obj-$(CONFIG_TEST_HASH) +=3D test_hash.o test_siphash.o +obj-$(CONFIG_TEST_SIPHASH) +=3D test_siphash.o +obj-$(CONFIG_TEST_HASH) +=3D test_hash.o obj-$(CONFIG_TEST_IDA) +=3D test_ida.o obj-$(CONFIG_KASAN_KUNIT_TEST) +=3D test_kasan.o CFLAGS_test_kasan.o +=3D -fno-builtin _