From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
linux@weissschuh.net, rbm@suse.com,
Luis Felipe Hernandez <luis.hernandez093@gmail.com>
Subject: Re: [PATCH v2] macintosh: declare ctl_table as const
Date: Wed, 1 Jan 2025 14:38:31 +0530 [thread overview]
Message-ID: <173572211262.1875638.13600288150839690769.b4-ty@linux.ibm.com> (raw)
In-Reply-To: <20241217-constify_ctl_table-v1-1-402ebceaeb8e@gmail.com>
On Tue, 17 Dec 2024 21:55:41 -0500, Luis Felipe Hernandez wrote:
> Since commit 7abc9b53bd51 ("sysctl: allow registration of const struct
> ctl_table"), the sysctl registration API allows struct ctl_table variables
> to be placed into read-only memory.
>
> mac_hid_files is registered as a sysctl table and should be treated as
> read-only. By declaring the mac_hid_files structure as const, we ensure
> that it cannot be accidentally modified. This change improves safety.
>
> [...]
Applied to powerpc/next.
[1/1] macintosh: declare ctl_table as const
https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next&id=e834166822a3c9fb403411c898367df8dabf973c
Thanks
prev parent reply other threads:[~2025-01-01 9:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 2:55 Luis Felipe Hernandez
2025-01-01 9:08 ` Madhavan Srinivasan [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=173572211262.1875638.13600288150839690769.b4-ty@linux.ibm.com \
--to=maddy@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=luis.hernandez093@gmail.com \
--cc=rbm@suse.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
all inboxes | Powered by JetHome®