From: Andrew Lunn <andrew@lunn.ch>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: ibm/emac: Constify struct mii_phy_def
Date: Wed, 7 Aug 2024 15:57:22 +0200 [thread overview]
Message-ID: <02886a16-e37a-4d31-a98a-e101458ecdfd@lunn.ch> (raw)
In-Reply-To: <dfc7876d660d700a840e64c35de0a6519e117539.1723031352.git.christophe.jaillet@wanadoo.fr>
On Wed, Aug 07, 2024 at 01:50:31PM +0200, Christophe JAILLET wrote:
> 'struct mii_phy_def' are not modified in this driver.
>
> Constifying these structures moves some data to a read-only section, so
> increase overall security.
>
>
> On a x86_64, with allmodconfig:
> Before:
> ======
> 4901 464 0 5365 14f5 drivers/net/ethernet/ibm/emac/phy.o
>
> After:
> =====
> text data bss dec hex filename
> 5127 240 0 5367 14f7 drivers/net/ethernet/ibm/emac/phy.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
next prev parent reply other threads:[~2024-08-07 13:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-07 11:50 Christophe JAILLET
2024-08-07 13:57 ` Andrew Lunn [this message]
2024-08-07 23:00 ` kernel test robot
2024-08-08 6:32 ` Christophe JAILLET
2024-08-08 0:42 ` kernel test robot
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=02886a16-e37a-4d31-a98a-e101458ecdfd@lunn.ch \
--to=andrew@lunn.ch \
--cc=christophe.jaillet@wanadoo.fr \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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®