From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Namjae Jeon <linkinjeon@kernel.org>,
Steve French <smfrench@gmail.com>,
Sergey Senozhatsky <senozhatsky@chromium.org>,
Tom Talpey <tom@talpey.com>,
linux-cifs@vger.kernel.org, Rosen Penev <rosenp@gmail.com>
Subject: Re: [PATCH v2] RFC: ksmbd: Create module_kobject if builtin
Date: Fri, 24 Oct 2025 08:37:49 +0200 [thread overview]
Message-ID: <2025102434-wasting-hurler-be60@gregkh> (raw)
In-Reply-To: <CACRpkdb7puCMh4VdhcwL1kkwEAsU0e6S=4ZvL-LoXav_Xvu6kg@mail.gmail.com>
On Fri, Oct 24, 2025 at 08:05:29AM +0200, Linus Walleij wrote:
> On Fri, Oct 24, 2025 at 7:08 AM Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
>
> > > Since I actually turn off modules and compile all my modules
> > > into the kernel, I can't change the script to just check
> > > cat /lib/modules/$(uname -r)/modules.builtin | grep ksmbd
> > > either: no /lib/modules directory.
> >
> > Then do something else to determine if ksmbd is in the running kernel,
> > don't rely on a modules sysfs file like that.
>
> There really isn't a good way for a script to detect if a module is
> compiled-in that I know of.
That should be a per-feature type of thing. Surely ksmbd has some sort
of user/kernel api that can be tested if it is present or not?
> You did suggest simply create this file also for compiled-in
> module, always:
> https://lore.kernel.org/all/2025060254-unscathed-junior-1b43@gregkh/
>
> It just seemed a bit cluttery, but maybe the $subject approach
> is even more cluttery by creating special cases.
Yes, let's not special-case this, either make it so that every module
name shows up in sysfs (if it has a parameter or not), or keep it as-is.
Don't do module-specific hacks like you are proposing here.
thanks,
greg k-h
prev parent reply other threads:[~2025-10-24 6:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-23 22:49 [PATCH v2] RFC: ksmbd: Create module_kobject if builtin Linus Walleij
2025-10-24 5:08 ` Greg Kroah-Hartman
2025-10-24 6:05 ` Linus Walleij
2025-10-24 6:37 ` Greg Kroah-Hartman [this message]
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=2025102434-wasting-hurler-be60@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=linkinjeon@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-cifs@vger.kernel.org \
--cc=rosenp@gmail.com \
--cc=senozhatsky@chromium.org \
--cc=smfrench@gmail.com \
--cc=tom@talpey.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