Re: [PATCH net-next] net: ibm/emac: Constify struct mii_phy_def

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

    Andrew




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux