From: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
To: lucas.demarchi@intel.com
Cc: emil.velikov@collabora.com, gustavo.sousa@intel.com,
jtornosm@redhat.com, linux-modules@vger.kernel.org,
mcgrof@kernel.org, md@linux.it
Subject: Re: [PATCH v2 patch] libkmod: add weak dependecies
Date: Thu, 9 May 2024 11:57:11 +0200 [thread overview]
Message-ID: <20240509095717.94830-1-jtornosm@redhat.com> (raw)
In-Reply-To: <7dttsdaxjsxr5dk5ki5mgasqrihobioyyn44l54k5jmf6ijspv@lodmzcimdin7>
>> kmod_config_add_weakdep ...
> this is a long function that we may eventually break in smaller pieces
> and share with the softdep parser.
>> weakdep_to_char ...
> ditto for this one
> I'd keep this in a separate patch, but ok.
> things look good here, thanks for doing this
Ok, let me have a look to get more modular functions in a later patch.
> I think next step would be to add some tests to our testsuite to make
> sure we are parsing things correctly. Could you take a look in in
> `git grep softdep` testsuite/ to take inspiration on how to write one
> for weakdep? it seems we only have 1 test for a failure scenrario, but
> we could add more too.
>
>Tests I'm looking for:
>
> 1) make sure we don't load a module due to being a weakdep
> 2) make sure depmod outputs the weakdep correctly
> 3) make sure the weakdep is parsed correctly from the conf file
Ok, I will complete with some tests as you comment in another later patch.
I will try to cover at least what you say.
Regarding the necessary kernel patch I will re-submit it, adding that
the weak procedure is already included in kmod.
Thank you
Best regards
José Ignacio
next prev parent reply other threads:[~2024-05-09 9:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 16:15 [PATCH kmod] libkmod: add user soft dependecies Jose Ignacio Tornos Martinez
2024-03-20 7:16 ` Lucas De Marchi
2024-03-20 9:05 ` Jose Ignacio Tornos Martinez
2024-03-20 13:57 ` Lucas De Marchi
2024-03-20 14:48 ` Jose Ignacio Tornos Martinez
2024-03-27 14:11 ` [PATCH v2 patch] libkmod: add weak dependecies Jose Ignacio Tornos Martinez
2024-04-09 15:10 ` Lucas De Marchi
2024-04-09 15:50 ` Jose Ignacio Tornos Martinez
2024-05-06 12:36 ` Jose Ignacio Tornos Martinez
2024-05-09 4:22 ` Lucas De Marchi
2024-05-09 4:41 ` Lucas De Marchi
2024-05-09 9:57 ` Jose Ignacio Tornos Martinez [this message]
2024-03-27 14:13 ` [PATCH v2 kmod] " Jose Ignacio Tornos Martinez
2024-03-27 14:18 ` [PATCH] module: create " Jose Ignacio Tornos Martinez
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=20240509095717.94830-1-jtornosm@redhat.com \
--to=jtornosm@redhat.com \
--cc=emil.velikov@collabora.com \
--cc=gustavo.sousa@intel.com \
--cc=linux-modules@vger.kernel.org \
--cc=lucas.demarchi@intel.com \
--cc=mcgrof@kernel.org \
--cc=md@linux.it \
/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).