Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: mii: constify advertising mask

Constify the advertising mask to linkmode functions that only read from
the advertising mask.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Russell King (Oracle) and committed by
David S. Miller
aa9fbc5d 4efee05f

+4 -3
+4 -3
include/linux/mii.h
··· 140 140 * settings to phy autonegotiation advertisements for the 141 141 * MII_ADVERTISE register. 142 142 */ 143 - static inline u32 linkmode_adv_to_mii_adv_t(unsigned long *advertising) 143 + static inline u32 linkmode_adv_to_mii_adv_t(const unsigned long *advertising) 144 144 { 145 145 u32 result = 0; 146 146 ··· 215 215 * settings to phy autonegotiation advertisements for the 216 216 * MII_CTRL1000 register when in 1000T mode. 217 217 */ 218 - static inline u32 linkmode_adv_to_mii_ctrl1000_t(unsigned long *advertising) 218 + static inline u32 219 + linkmode_adv_to_mii_ctrl1000_t(const unsigned long *advertising) 219 220 { 220 221 u32 result = 0; 221 222 ··· 454 453 * A small helper function that translates linkmode advertising to LVL 455 454 * pause capabilities. 456 455 */ 457 - static inline u32 linkmode_adv_to_lcl_adv_t(unsigned long *advertising) 456 + static inline u32 linkmode_adv_to_lcl_adv_t(const unsigned long *advertising) 458 457 { 459 458 u32 lcl_adv = 0; 460 459