From: Randy Dunlap <rdunlap@infradead.org>
To: Daniel Latypov <dlatypov@google.com>,
Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: Trent Piepho <tpiepho@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
andy@kernel.org, Andrew Morton <akpm@linux-foundation.org>,
oskar@scara.com, Yiyuan Guo <yguoaz@gmail.com>
Subject: Re: [PATCH] lib/math/rational.c: Fix divide by zero
Date: Mon, 24 May 2021 15:04:21 -0700 [thread overview]
Message-ID: <b5511f68-814b-1f8c-08d2-a7dbddce4e8d@infradead.org> (raw)
In-Reply-To: <CAGS_qxoKTyNBxoezkEVVrACGsFuzJwteepVpDzp+4KH+CgbMsw@mail.gmail.com>
On 5/24/21 9:55 AM, Daniel Latypov wrote:
> diff --git a/lib/math/Kconfig b/lib/math/Kconfig
> index f19bc9734fa7..20460b567493 100644
> --- a/lib/math/Kconfig
> +++ b/lib/math/Kconfig
> @@ -15,3 +15,14 @@ config PRIME_NUMBERS
>
> config RATIONAL
> bool
> +
> +config RATIONAL_KUNIT_TEST
> + tristate "KUnit test for rational number support" if !KUNIT_ALL_TESTS
> + # depends on KUNIT && RATIONAL # this is how it should work, but
> + depends on KUNIT
> + select RATIONAL # I don't grok kconfig enough to know why this
Only to set the symbol CONFIG_RATIONAL.
Then when 'make' descends into the lib/math/ subdir and looks at its Makefile,
it will decide to build the binary rational.o.
obj-$(CONFIG_RATIONAL) += rational.o
> is necessary
> + default KUNIT_ALL_TESTS
> + help
> + This builds unit tests for the rational number support.
> +
> + If unsure, say N.
--
~Randy
next prev parent reply other threads:[~2021-05-24 22:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-23 0:18 [PATCH] lib/math/rational.c: Fix divide by zero Trent Piepho
2021-05-24 10:51 ` Andy Shevchenko
2021-05-24 16:55 ` Daniel Latypov
2021-05-24 22:04 ` Randy Dunlap [this message]
2021-05-24 22:56 ` Daniel Latypov
2021-05-24 23:30 ` Randy Dunlap
2021-05-24 23:38 ` Daniel Latypov
2021-05-25 0:42 ` David Gow
2021-05-25 1:49 ` Randy Dunlap
2021-05-25 1:57 ` David Gow
2021-05-25 5:08 ` Trent Piepho
2021-05-24 20:17 ` Trent Piepho
2021-05-24 20:35 ` Daniel Latypov
2021-05-25 9:02 ` Andy Shevchenko
2021-05-25 9:21 ` Trent Piepho
2021-05-25 12:03 ` Andy Shevchenko
2021-05-25 17:10 ` Daniel Latypov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b5511f68-814b-1f8c-08d2-a7dbddce4e8d@infradead.org \
--to=rdunlap@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=dlatypov@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oskar@scara.com \
--cc=tpiepho@gmail.com \
--cc=yguoaz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).