Linux Modules
 help / color / mirror / Atom feed
From: Petr Pavlu <petr.pavlu@suse.com>
To: Chris Zankel <chris@zankel.net>,
	Max Filippov <jcmvbkbc@gmail.com>,
	Luis Chamberlain <mcgrof@kernel.org>,
	Daniel Gomez <da.gomez@kernel.org>,
	Sami Tolvanen <samitolvanen@google.com>
Cc: Aaron Tomlin <atomlin@atomlin.com>,
	Matthew Wood <thepacketgeek@gmail.com>,
	linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] module: Remove unnecessary module::args
Date: Thu, 9 Jul 2026 11:02:27 +0200	[thread overview]
Message-ID: <837ef587-c8aa-479a-9b20-597fb987d051@suse.com> (raw)
In-Reply-To: <20260604110455.1608038-1-petr.pavlu@suse.com>

On 6/4/26 1:04 PM, Petr Pavlu wrote:
> Historically, various parameter-handling code kept pointers into
> module::args, most notably the charp support. However, in 2009,
> commit e180a6b7759a ("param: fix charp parameters set via sysfs") changed
> charp parameters to kstrdup() the input string as well. As a result,
> module::args now mostly wastes memory.
> 
> Reviewing all kernel_param_ops and module_param_call instances shows that
> the last code still relying on module::args remaining valid for the
> module's lifetime is simdisk_param_ops_filename. Update it to use kstrdup()
> and then remove module::args.
> 
> Petr Pavlu (2):
>   xtensa/simdisk: Avoid referring to module::args
>   module: Remove unnecessary module::args
> 
>  arch/xtensa/platforms/iss/simdisk.c | 38 +++++++++++++++++++++++++----
>  include/linux/module.h              |  4 ---
>  kernel/module/main.c                | 15 ++++++------
>  3 files changed, 41 insertions(+), 16 deletions(-)
> 
> 
> base-commit: e43ffb69e0438cddd72aaa30898b4dc446f664f8

Thanks Max and Aaron for the review. Queued now on modules-next for
v7.3-rc1.

-- Petr

      parent reply	other threads:[~2026-07-09  9:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-04 11:04 [PATCH 0/2] module: Remove unnecessary module::args Petr Pavlu
2026-06-04 11:04 ` [PATCH 1/2] xtensa/simdisk: Avoid referring to module::args Petr Pavlu
2026-06-04 11:18   ` sashiko-bot
2026-06-07 20:44   ` Max Filippov
2026-06-04 11:04 ` [PATCH 2/2] module: Remove unnecessary module::args Petr Pavlu
2026-06-04 13:25   ` Aaron Tomlin
2026-07-09  9:02 ` Petr Pavlu [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=837ef587-c8aa-479a-9b20-597fb987d051@suse.com \
    --to=petr.pavlu@suse.com \
    --cc=atomlin@atomlin.com \
    --cc=chris@zankel.net \
    --cc=da.gomez@kernel.org \
    --cc=jcmvbkbc@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-modules@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=samitolvanen@google.com \
    --cc=thepacketgeek@gmail.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