From patchwork Thu May 28 14:52:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu \(Google\)" X-Patchwork-Id: 208459 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham 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 93BDCC433DF for ; Thu, 28 May 2020 14:52:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6AB102089D for ; Thu, 28 May 2020 14:52:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590677532; bh=1cwsza4VkPxnPZPr6rqv9W6jMJ44T2SV2cjU4ztOO2c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=vI8R1lm7S/3GZExaqnI1cvw4W0ml7DRh0VQfZMZex9yWk5EMzOjIJ5p1p210R0+yG jOhaAVmnIPJMY7cuxlKKrA2Y4muv12tZiMvyUiQd+0Ti20S0by3wscDUN8xEexRTPl kdgawBL/KJnCYKHMNJ09tNsZqYEGBVSvpadM5LKk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391310AbgE1OwM (ORCPT ); Thu, 28 May 2020 10:52:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:40408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391291AbgE1OwL (ORCPT ); Thu, 28 May 2020 10:52:11 -0400 Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 983312075F; Thu, 28 May 2020 14:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590677530; bh=1cwsza4VkPxnPZPr6rqv9W6jMJ44T2SV2cjU4ztOO2c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x6wcvMPybdFAQWcmnzUNfQ6HQZDJbJyFsxlcjw9VUd4HQ1NKvhXllAHFgbQiVC/qW JWOHijBEUx7SX/8u+frag7vEBpyQDaoGOKgVT+2cbTRNPLBDOdB02A+WIBOO5na149 7+wJ2AFmUymBaCTKP0nAbVTU0n2j5xzwolfdQjq0= From: Masami Hiramatsu To: Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Masami Hiramatsu , "Luis R . Rodriguez" , Chris Wilson , Joonas Lahtinen , Kees Cook , Masami Hiramatsu Subject: [PATCH 1/4] lib: Make prime number generator independently selectable Date: Thu, 28 May 2020 23:52:06 +0900 Message-Id: <159067752610.229397.10253900294111245982.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <159067751438.229397.6746886115540895104.stgit@devnote2> References: <159067751438.229397.6746886115540895104.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Make prime number generator independently selectable from kconfig. This allows us to enable CONFIG_PRIME_NUMBERS=m and run the tools/testing/selftests/lib/prime_numbers.sh without other DRM selftest modules. Signed-off-by: Masami Hiramatsu --- lib/math/Kconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/math/Kconfig b/lib/math/Kconfig index 15bd50d92308..f19bc9734fa7 100644 --- a/lib/math/Kconfig +++ b/lib/math/Kconfig @@ -6,7 +6,12 @@ config CORDIC calculations are in fixed point. Module will be called cordic. config PRIME_NUMBERS - tristate + tristate "Simple prime number generator for testing" + help + This option provides a simple prime number generator for test + modules. + + If unsure, say N. config RATIONAL bool