[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNARGJ8UMaiGC71f_wfk5ZqwhV2WD_Zf3NsQuS-+u_uT-iA@mail.gmail.com>
Date: Fri, 27 Dec 2024 15:49:20 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Matthew Maurer <mmaurer@...gle.com>
Cc: Michael Ellerman <mpe@...erman.id.au>, Nicholas Piggin <npiggin@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>, Naveen N Rao <naveen@...nel.org>,
Madhavan Srinivasan <maddy@...ux.ibm.com>, Luis Chamberlain <mcgrof@...nel.org>,
Petr Pavlu <petr.pavlu@...e.com>, Sami Tolvanen <samitolvanen@...gle.com>,
Daniel Gomez <da.gomez@...sung.com>, Nathan Chancellor <nathan@...nel.org>,
Nicolas Schier <nicolas@...sle.eu>, Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Jonathan Corbet <corbet@....net>, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org, linux-modules@...r.kernel.org,
linux-kbuild@...r.kernel.org, rust-for-linux@...r.kernel.org,
linux-doc@...r.kernel.org
Subject: Re: [PATCH v11 3/5] modules: Allow extended modversions without basic MODVERSIONS
On Tue, Dec 24, 2024 at 5:13 AM Matthew Maurer <mmaurer@...gle.com> wrote:
>
> If you know that your kernel modules will only ever be loaded by a newer
> kernel, you can disable BASIC_MODVERSIONS to save space. This also
> allows easy creation of test modules to seee how tooling will respond to
seee -> see
> modules that only have the new format.
>
> Signed-off-by: Matthew Maurer <mmaurer@...gle.com>
> ---
> kernel/module/Kconfig | 15 +++++++++++++++
> scripts/Makefile.modpost | 1 +
> scripts/mod/modpost.c | 19 +++++++++++--------
> 3 files changed, 27 insertions(+), 8 deletions(-)
>
> diff --git a/kernel/module/Kconfig b/kernel/module/Kconfig
> index 9568b629a03ce8289d3f3597eefc66fc96445720..5f701391ab12c7d1b3ca496c9b3443c5a76a8745 100644
> --- a/kernel/module/Kconfig
> +++ b/kernel/module/Kconfig
> @@ -217,6 +217,21 @@ config EXTENDED_MODVERSIONS
> The most likely reason you would enable this is to enable Rust
> support. If unsure, say N.
>
> +config BASIC_MODVERSIONS
> + bool "Basic Module Versioning Support"
> + depends on MODVERSIONS
> + default MODVERSIONS
Nit:
default y
is simpler.
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists