From: Greg KH <gregkh@linuxfoundation.org>
To: Thomas Thanner <e580@thomasthanner.de>
Cc: rust-for-linux@vger.kernel.org
Subject: Re: Error building sample modules
Date: Wed, 26 May 2021 20:38:55 +0200 [thread overview]
Message-ID: <YK6Vv0fIsSRz8hLR@kroah.com> (raw)
In-Reply-To: <269315c9-56af-6914-2315-b1248519a737@thomasthanner.de>
On Wed, May 26, 2021 at 08:22:22PM +0200, Thomas Thanner wrote:
> Hi Miguel,
>
> yes, thanks, that worked.
>
> Now I have two built-in rust modules. And two loadable modules.
>
> I have to compare that to normal linux modules. The built-in rust_minimal
> doesn't show up in /sys/module. If I do insmod rust_minimal.ko then it shows
> up. I have to do that a bit more systematically with the four modules.
If you module has no parameters or options, then building it into the
kernel will not cause it to show up in /sys/modules/ as what is there to
show in that location for it?
If you load it as a module, there is stuff to show (memory maps and the
like), so it makes sense it shows up then.
Try it with a .c module to see if it does the same thing.
thanks,
greg k-h
prev parent reply other threads:[~2021-05-26 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-25 17:46 Error building sample modules Thomas Thanner
2021-05-25 18:52 ` Miguel Ojeda
2021-05-26 2:21 ` Miguel Ojeda
2021-05-26 18:22 ` Thomas Thanner
2021-05-26 18:38 ` Greg KH [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=YK6Vv0fIsSRz8hLR@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=e580@thomasthanner.de \
--cc=rust-for-linux@vger.kernel.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 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).