From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
matthias.bgg@gmail.com, fparent@baylibre.com,
fchiby@baylibre.com, s.hauer@pengutronix.de
Cc: linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 2/4] soc: mediatek: pwrap: Constify some struct int[]
Date: Wed, 3 Jul 2024 15:02:07 +0200 [thread overview]
Message-ID: <59b24780-3c17-4e1a-ae3c-14584f9f5101@collabora.com> (raw)
In-Reply-To: <626783bb264a8b3b0c8cd7e1d9f9b241f0a494b6.1719652155.git.christophe.jaillet@wanadoo.fr>
Il 29/06/24 11:19, Christophe JAILLET ha scritto:
> These arrays are not modified in this driver.
>
> Constifying this structure moves some data to a read-only section, so
> increase overall security.
>
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
> text data bss dec hex filename
> 45528 8532 16 54076 d33c drivers/soc/mediatek/mtk-pmic-wrap.o
>
> After:
> =====
> text data bss dec hex filename
> 52664 1384 16 54064 d330 drivers/soc/mediatek/mtk-pmic-wrap.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
next prev parent reply other threads:[~2024-07-03 13:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-29 9:19 [PATCH 0/4] soc: mediatek: pwrap: Constify some data and other improvements Christophe JAILLET
2024-06-29 9:19 ` [PATCH 1/4] soc: mediatek: pwrap: Constify struct pmic_wrapper_type Christophe JAILLET
2024-07-03 13:02 ` AngeloGioacchino Del Regno
2024-06-29 9:19 ` [PATCH 2/4] soc: mediatek: pwrap: Constify some struct int[] Christophe JAILLET
2024-07-03 13:02 ` AngeloGioacchino Del Regno [this message]
2024-06-29 9:19 ` [PATCH 3/4] soc: mediatek: pwrap: Use devm_clk_get_[optional_]enabled() Christophe JAILLET
2024-07-03 13:02 ` AngeloGioacchino Del Regno
2024-06-29 9:19 ` [PATCH 4/4] soc: mediatek: pwrap: Simplify some error messages Christophe JAILLET
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=59b24780-3c17-4e1a-ae3c-14584f9f5101@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=fchiby@baylibre.com \
--cc=fparent@baylibre.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=s.hauer@pengutronix.de \
/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®