* [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it
@ 2020-10-19 11:32 Geert Uytterhoeven
2020-10-19 15:47 ` Matthieu Baerts
0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2020-10-19 11:32 UTC (permalink / raw)
To: Paolo Abeni, Matthieu Baerts, Mat Martineau, David S . Miller,
Jakub Kicinski
Cc: netdev, mptcp, linux-kernel, Geert Uytterhoeven
MPTCP_KUNIT_TESTS selects MPTCP, thus enabling an optional feature the
user may not want to enable. Fix this by making the test depend on
MPTCP instead.
Fixes: a00a582203dbc43e ("mptcp: move crypto test to KUNIT")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
net/mptcp/Kconfig | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/net/mptcp/Kconfig b/net/mptcp/Kconfig
index 698bc35251609755..abb0a992d4a0855a 100644
--- a/net/mptcp/Kconfig
+++ b/net/mptcp/Kconfig
@@ -22,11 +22,8 @@ config MPTCP_IPV6
select IPV6
default y
-endif
-
config MPTCP_KUNIT_TESTS
tristate "This builds the MPTCP KUnit tests" if !KUNIT_ALL_TESTS
- select MPTCP
depends on KUNIT
default KUNIT_ALL_TESTS
help
@@ -39,3 +36,4 @@ config MPTCP_KUNIT_TESTS
If unsure, say N.
+endif
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it
2020-10-19 11:32 [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it Geert Uytterhoeven
@ 2020-10-19 15:47 ` Matthieu Baerts
2020-10-19 20:38 ` Geert Uytterhoeven
2020-10-20 23:55 ` Jakub Kicinski
0 siblings, 2 replies; 6+ messages in thread
From: Matthieu Baerts @ 2020-10-19 15:47 UTC (permalink / raw)
To: Geert Uytterhoeven, Paolo Abeni, Mat Martineau, David S . Miller,
Jakub Kicinski
Cc: netdev, mptcp, linux-kernel
Hi Geert,
Thank you for the patch!
On 19/10/2020 13:32, Geert Uytterhoeven wrote:
> MPTCP_KUNIT_TESTS selects MPTCP, thus enabling an optional feature the
> user may not want to enable. Fix this by making the test depend on
> MPTCP instead.
I think the initial intension was to select MPTCP to have an easy way to
enable all KUnit tests. We imitated what was and is still done in
fs/ext4/Kconfig.
But it probably makes sense to depend on MPTCP instead of selecting it.
So that's fine for me. But then please also send a patch to ext4
maintainer to do the same there.
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Cheers,
Matt
--
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it
2020-10-19 15:47 ` Matthieu Baerts
@ 2020-10-19 20:38 ` Geert Uytterhoeven
2020-10-20 7:40 ` Geert Uytterhoeven
2020-10-20 23:55 ` Jakub Kicinski
1 sibling, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2020-10-19 20:38 UTC (permalink / raw)
To: Matthieu Baerts
Cc: Paolo Abeni, Mat Martineau, David S . Miller, Jakub Kicinski,
netdev, mptcp, Linux Kernel Mailing List
Hi Matthieu,
On Mon, Oct 19, 2020 at 5:47 PM Matthieu Baerts
<matthieu.baerts@tessares.net> wrote:
> On 19/10/2020 13:32, Geert Uytterhoeven wrote:
> > MPTCP_KUNIT_TESTS selects MPTCP, thus enabling an optional feature the
> > user may not want to enable. Fix this by making the test depend on
> > MPTCP instead.
>
> I think the initial intension was to select MPTCP to have an easy way to
> enable all KUnit tests. We imitated what was and is still done in
> fs/ext4/Kconfig.
>
> But it probably makes sense to depend on MPTCP instead of selecting it.
> So that's fine for me. But then please also send a patch to ext4
> maintainer to do the same there.
Thanks, good point. I didn't notice, as I did have ext4 enabled anyway.
Will send a patch for ext4. Looks like ext4 and MPTCP where the only
test modules selecting their dependencies.
> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it
2020-10-19 20:38 ` Geert Uytterhoeven
@ 2020-10-20 7:40 ` Geert Uytterhoeven
2020-10-20 9:27 ` Matthieu Baerts
0 siblings, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2020-10-20 7:40 UTC (permalink / raw)
To: Matthieu Baerts
Cc: Paolo Abeni, Mat Martineau, David S . Miller, Jakub Kicinski,
netdev, mptcp, Linux Kernel Mailing List
On Mon, Oct 19, 2020 at 10:38 PM Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Mon, Oct 19, 2020 at 5:47 PM Matthieu Baerts
> <matthieu.baerts@tessares.net> wrote:
> > On 19/10/2020 13:32, Geert Uytterhoeven wrote:
> > > MPTCP_KUNIT_TESTS selects MPTCP, thus enabling an optional feature the
> > > user may not want to enable. Fix this by making the test depend on
> > > MPTCP instead.
> >
> > I think the initial intension was to select MPTCP to have an easy way to
> > enable all KUnit tests. We imitated what was and is still done in
> > fs/ext4/Kconfig.
> >
> > But it probably makes sense to depend on MPTCP instead of selecting it.
> > So that's fine for me. But then please also send a patch to ext4
> > maintainer to do the same there.
>
> Thanks, good point. I didn't notice, as I did have ext4 enabled anyway.
> Will send a patch for ext4. Looks like ext4 and MPTCP where the only
> test modules selecting their dependencies.
FTR, "[PATCH] ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead
of selecting it"
https://lore.kernel.org/lkml/20201020073740.29081-1-geert@linux-m68k.org/
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it
2020-10-20 7:40 ` Geert Uytterhoeven
@ 2020-10-20 9:27 ` Matthieu Baerts
0 siblings, 0 replies; 6+ messages in thread
From: Matthieu Baerts @ 2020-10-20 9:27 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Paolo Abeni, Mat Martineau, David S . Miller, Jakub Kicinski,
netdev, mptcp, Linux Kernel Mailing List
Hi Geert,
On 20/10/2020 09:40, Geert Uytterhoeven wrote:
> On Mon, Oct 19, 2020 at 10:38 PM Geert Uytterhoeven
> <geert@linux-m68k.org> wrote:
>> On Mon, Oct 19, 2020 at 5:47 PM Matthieu Baerts
>> <matthieu.baerts@tessares.net> wrote:
>>> On 19/10/2020 13:32, Geert Uytterhoeven wrote:
>>>> MPTCP_KUNIT_TESTS selects MPTCP, thus enabling an optional feature the
>>>> user may not want to enable. Fix this by making the test depend on
>>>> MPTCP instead.
>>>
>>> I think the initial intension was to select MPTCP to have an easy way to
>>> enable all KUnit tests. We imitated what was and is still done in
>>> fs/ext4/Kconfig.
>>>
>>> But it probably makes sense to depend on MPTCP instead of selecting it.
>>> So that's fine for me. But then please also send a patch to ext4
>>> maintainer to do the same there.
>>
>> Thanks, good point. I didn't notice, as I did have ext4 enabled anyway.
>> Will send a patch for ext4. Looks like ext4 and MPTCP where the only
>> test modules selecting their dependencies.
>
> FTR, "[PATCH] ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead
> of selecting it"
> https://lore.kernel.org/lkml/20201020073740.29081-1-geert@linux-m68k.org/
Thank you for having sent this other patch and shared the link here!
Groetjes,
Matt
--
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it
2020-10-19 15:47 ` Matthieu Baerts
2020-10-19 20:38 ` Geert Uytterhoeven
@ 2020-10-20 23:55 ` Jakub Kicinski
1 sibling, 0 replies; 6+ messages in thread
From: Jakub Kicinski @ 2020-10-20 23:55 UTC (permalink / raw)
To: Matthieu Baerts
Cc: Geert Uytterhoeven, Paolo Abeni, Mat Martineau, David S . Miller,
netdev, mptcp, linux-kernel
On Mon, 19 Oct 2020 17:47:20 +0200 Matthieu Baerts wrote:
> On 19/10/2020 13:32, Geert Uytterhoeven wrote:
> > MPTCP_KUNIT_TESTS selects MPTCP, thus enabling an optional feature the
> > user may not want to enable. Fix this by making the test depend on
> > MPTCP instead.
>
> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Applied, thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-10-20 23:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19 11:32 [PATCH] mptcp: MPTCP_KUNIT_TESTS should depend on MPTCP instead of selecting it Geert Uytterhoeven
2020-10-19 15:47 ` Matthieu Baerts
2020-10-19 20:38 ` Geert Uytterhoeven
2020-10-20 7:40 ` Geert Uytterhoeven
2020-10-20 9:27 ` Matthieu Baerts
2020-10-20 23:55 ` Jakub Kicinski
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).