Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1892544pxb; Sat, 2 Oct 2021 00:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+aKv67BjgMrdJLd8jQGFImngkrWuvfl1zYSzUzV2w9THfWEYZL6LAXrzxE3UUd2pBbD0w X-Received: by 2002:a17:90a:a386:: with SMTP id x6mr17955172pjp.56.1633159414022; Sat, 02 Oct 2021 00:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633159414; cv=none; d=google.com; s=arc-20160816; b=Plri/Tm5CeE9T5tosXlyVxCrHKJrVzRuB2Q49fQlowo6Odk1EfAjM0aw2Ah0l/nZAx XrB1Rdq4BEAkBMNaLZezo9EppkQP5P8QE7QEE7728UrVby1F4300PN7/p+oz4K+klZoP IRhXWJlWmLZB08eXc9rQz81Duj4sjpBkl7dXTN4E/H+DkmSKTclwdB1J60DMICNM0ZA4 5sgJL0Qj3880YageC5VKHBMB75Bl5WD8Qd95pWCiGIC0XfT0dfNt+kicdYUS73b3DvVz dMlLdvBchNtfAwZbfmI+9nmQKevg29EIFV+Z/QksH8Yx1Y1CrFIKEJhKyZzcWVlqbw// RZGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eVE5mCzreyEWGRuGyfDzHoON1VOHz9px/MQbnjXolqk=; b=BIqtN/Hpyui0xVeXwLrIQiLe6J+0jzHS1bIG8MS6LLF/0Eg3RaFlstQCaUpi2gE1KH ZAgrXrCBN6MeNWg2vWfCtkHodYhJryn5YJb/kPMtiC8Ou+55VgzzEkOCOHQ9Citxr0KB gYEIIUNpYw+frP6GXCXgpl8gS0xoIrzq9P6BuFgkNgCTGAyCbCPNtS7vvfbQH8bduTm7 kDYZ6XN+ju+GH2Q48qxQJSB/LcIk1Tvc+RNTYXFHFGvRmJgz5L98LjNdehqkzhrMlvG1 5aXAxsWQRSS4dn1PUYqHAstDAAlFBOZaozwvjT5ovSnRAPTH61J2vXEv73+8e/sT0l2J ZFYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=PE76Mrd4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si11908073pjj.23.2021.10.02.00.23.21; Sat, 02 Oct 2021 00:23:34 -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=@google.com header.s=20210112 header.b=PE76Mrd4; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232545AbhJBHYB (ORCPT + 99 others); Sat, 2 Oct 2021 03:24:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232546AbhJBHYA (ORCPT ); Sat, 2 Oct 2021 03:24:00 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF897C061775 for ; Sat, 2 Oct 2021 00:22:14 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id u18so19033023wrg.5 for ; Sat, 02 Oct 2021 00:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eVE5mCzreyEWGRuGyfDzHoON1VOHz9px/MQbnjXolqk=; b=PE76Mrd4XLkHhLo7gm5RN08TMW3EumkhFgrjcbHDo+BybVsqV//xg+Tt1lxRiD/W+V bjvyW6sGdoMYthMrCaO4ZgH2B7lNX4jEwrpYBppQ/2A3bwuLvQQZXsXOOfaBjKgyq3MM 5CRTFr8xM+5lWU6+AMjk2y0naDUlUZII3VAr3r1wRtbY93SiBs6ALjek22O/JD6vhmYe W7COvN0/JYYOPC1WHRUc+XxGNWK5vEieJ76maYRqMbF2D3U02lgn2AmADZn6l5hPUTRq H8/n7SMjPK+IRYLIWhlpYoWJbgm9MVx9JwhLmb2YNocLJsy17XJp9PIKQ48P3UX7/a6c 8m0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eVE5mCzreyEWGRuGyfDzHoON1VOHz9px/MQbnjXolqk=; b=pPAgI85iKYjl3fbBwc0PxCsp60yIYaOmFnUsACtxSdgfTQ6Elb9Jan/zI2fqlIeTXb Mg3zBFbe6brMn8BzN2olprc717igkitbGmwZhyln29BC+CK/bm41l2k3dcH9hiQ8sq6V dYIvUFFTB220Lc/Kh8cvsdNM1xPz9OrD2ju45Ubp/ASKTazGMmqhvDKN+UxbVOVHUYki P5VODJ1y4DRmkH6y7Enddf8z28LfkyFyvhL8GKn7A7spPQK88Sv02twNQJdqyqAxFuhX Ln3WWAoZ27CcsK3Hssjn4n8QqY1nIRA0/AdSsCOZb5a8AH/MKu2IiyWAU2Ix7gzGf85W 3mIw== X-Gm-Message-State: AOAM531vz46Hkph1YJI51qKvR7/IWcerIDt+ksghImnASx0hZYpBV0Pc gOknUexXmY/Bg1AssCq3TKLRLObQJGmNKQkmzdPIGg== X-Received: by 2002:adf:f6c7:: with SMTP id y7mr2089772wrp.44.1633159333231; Sat, 02 Oct 2021 00:22:13 -0700 (PDT) MIME-Version: 1.0 References: <20210926223322.848641-1-isabellabdoamaral@usp.br> <20210926223322.848641-5-isabellabdoamaral@usp.br> In-Reply-To: <20210926223322.848641-5-isabellabdoamaral@usp.br> From: David Gow Date: Sat, 2 Oct 2021 15:22:02 +0800 Message-ID: Subject: Re: [PATCH v2 4/5] lib/Kconfig.debug: properly split hash test kernel entries To: Isabella Basso Cc: Geert Uytterhoeven , ferreiraenzoa@gmail.com, augusto.duraes33@gmail.com, Brendan Higgins , Daniel Latypov , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , KUnit Development , ~lkcamp/patches@lists.sr.ht, rodrigosiqueiramelo@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 27, 2021 at 6:33 AM Isabella Basso wrote: > > 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 > --- Looks good to me. Reviewed-by: David Gow Cheers, -- David > 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 >