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 X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 D6C4DC4320A for ; Thu, 26 Aug 2021 01:26:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C0398610A1 for ; Thu, 26 Aug 2021 01:26:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237345AbhHZB1m (ORCPT ); Wed, 25 Aug 2021 21:27:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237224AbhHZB1k (ORCPT ); Wed, 25 Aug 2021 21:27:40 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91834C0613CF for ; Wed, 25 Aug 2021 18:26:53 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id y144so1633448qkb.6 for ; Wed, 25 Aug 2021 18:26:53 -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=BggQHky/pXzcE7QiPL5k7sg98dxSxMdww6ldwaEmBp0=; b=QYwdlB6TuvVHIuEIo3d5yH6CEF8VK3DovhMjsqFmowpcsebJsFZrYUE9Qjo+ro84+e 3STTCnrcyVs5gAXLLArT6woMh7WmW6fAk93Kfvv/ztAkqse76GWaF8T7XonkHjmxTzwc b17pvPQgIivZGYT6E6/3h0iar2sv1gf+hEDSpwt8YL8C9w3q56DXpUdPgf5qce5YdTVs ekfZ1CtCmcJnw31dB3NOkaKtTagdyfcUlAO+d8GXuUJucUPEk+UkPLcixqLQOIA1QrA5 Ky8yntLCI3npiZiC/fT8Hphn5OF96ScGzSiFpgi6PGJSZrGoxDPdskt6s80DuRknd6qX FdaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BggQHky/pXzcE7QiPL5k7sg98dxSxMdww6ldwaEmBp0=; b=ExhdjZV/Mz9cxIljjdBiUc5iELu+YvkQCttAqlnBrzxaOMKUZfvnpZWXzD7vrdszkp r2YWqSU4Tn0HtbRbV+IIxYvCxXQRRCHEwbcLZRQ5kfJfYBSc7Xei72vE1vJ+zjReQP35 nM2hnVV7247/lB4c5XIUYerrE8c/GEBboY5etdkzNpkCBOvppdYwd/gU5+7sl2Ir6lP6 1LZ63vuRfoil4I4/pTpEF5z4LMTlyI8y8ZrHgCB/S7Rd9X1RLEMipSuv+D7doiZmwl0V 3JbHAvpK8nQtIWRw/SycUmDHW6DUwMF+ax0y5DOQSsG5iQKCcDYkpjVFAHqq7S0TwC+I OZ+A== X-Gm-Message-State: AOAM532+Xik4i4KfnhkpGfBPKDyQN5Zqni3enChmd2EmGwFy8dFpk6Cw Xs5NtfgABqIhov68UBaQKiQxSw== X-Google-Smtp-Source: ABdhPJxvxpmP8WmwImn9XK+xFbumd3Wt4ZiDhUg321z4BDq7FLla6lPBXnL8Uvp6FFbA14cpd8Fntg== X-Received: by 2002:a05:620a:21dc:: with SMTP id h28mr1494397qka.198.1629941212717; Wed, 25 Aug 2021 18:26:52 -0700 (PDT) Received: from aehse.localdomain (177-209-76-11.user3p.veloxzone.com.br. [177.209.76.11]) by smtp.gmail.com with ESMTPSA id p123sm1375053qke.94.2021.08.25.18.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 18:26:52 -0700 (PDT) From: Isabella Basso To: linux@sciencehorizons.net, 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 5/6] lib/Kconfig.debug: properly split hash test kernel entries Date: Wed, 25 Aug 2021 22:26:25 -0300 Message-Id: <20210826012626.1163705-6-isabellabdoamaral@usp.br> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210826012626.1163705-1-isabellabdoamaral@usp.br> References: <20210826012626.1163705-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. 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 5ddd575159fb..5e5894d98c50 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2224,9 +2224,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