From: Luis Felipe Hernandez <luis.hernandez093@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>,
brendan.higgins@linux.dev, davidgow@google.com,
linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com,
ricardo@marliere.net,
linux-kernel-mentees@lists.linuxfoundation.org,
andriy.shevchenko@linux.intel.com
Subject: Re: [PATCH v3] lib/math: Add int_sqrt test suite
Date: Fri, 1 Nov 2024 17:01:28 -0400 [thread overview]
Message-ID: <ZyVBqEgX-z3flsDT@x13> (raw)
In-Reply-To: <20241031173941.3487ccbfd7421d81d9b0cb97@linux-foundation.org>
On Thu, Oct 31, 2024 at 05:39:41PM -0700, Andrew Morton wrote:
> > > --- a/lib/math/Makefile
> > > +++ b/lib/math/Makefile
> > > @@ -9,3 +9,4 @@ obj-$(CONFIG_INT_POW_TEST) += tests/int_pow_kunit.o
> > > obj-$(CONFIG_TEST_DIV64) += test_div64.o
> > > obj-$(CONFIG_TEST_MULDIV64) += test_mul_u64_u64_div_u64.o
> > > obj-$(CONFIG_RATIONAL_KUNIT_TEST) += rational-test.o
> > > +obj-y += tests/
>
> What's this change about? It seems somewhat unrelated to adding a
> single test. I mean, there's an unrelated test listed in
> lib/math/tests/Makefile so what change does this patch have upon that
> one?
>
Hello Andrew, I apologize about the late response. I made this change in
order to try and stay aligned with this previous patch moving all
lib/math/ kunit tests into lib/math/tests/: https://lore.kernel.org/all/20241005222446.10471-1-luis.hernandez093@gmail.com/
From my understanding, kbuild wouldn't pick up the entry if it
was just specified in lib/math/tests/Makefile without a reference to it in
it's parent lib/math/Makefile. I didn't want to this
patch to end up in a situation where it would introduce an explicit
object entry in lib/math/Makefile pointing to
obj-$(CONFIG_INT_SQRT_KUNIT_TEST) += tests/int_sqrt_kunit.o
as is the case in mainline at the moment: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib/math/Makefile?h=v6.12-rc5#n8
This would in a sense introduce a regression in the organization of
the Makefile in lib/math/.
I apologize for not adding the reasoning behind the change in the
original patch.
Best,
Felipe
next prev parent reply other threads:[~2024-11-01 21:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-30 13:43 [PATCH v3] lib/math: Add int_sqrt test suite Luis Felipe Hernandez
2024-10-31 17:50 ` Shuah Khan
2024-11-01 0:39 ` Andrew Morton
2024-11-01 2:25 ` Shuah Khan
2024-11-01 2:28 ` Andrew Morton
2024-11-01 4:27 ` Andrew Morton
2024-11-01 21:01 ` Luis Felipe Hernandez [this message]
2024-11-11 3:39 ` Luis Felipe Hernandez
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=ZyVBqEgX-z3flsDT@x13 \
--to=luis.hernandez093@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=brendan.higgins@linux.dev \
--cc=davidgow@google.com \
--cc=kunit-dev@googlegroups.com \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=ricardo@marliere.net \
--cc=skhan@linuxfoundation.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.