net: phy: harmonize phy_id{,_mask} data type
Subsystems (3)
PATCH RESEND 1/1 net: phy: harmonize phy_id{,_mask} data type
From: Richard Leitner <[email protected]>
Previously phy_id was u32 and phy_id_mask was unsigned int. As the phy_id_mask defines the important bits of the phy_id (and is therefore the same size) these two variables should be the same data type.
---
RESEND as suggested by Andrew Lunn
--- include/linux/phy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/phy.h +1 -1
@@ -509,7 +509,7 @@ struct phy_driver {struct mdio_driver_common mdiodrv;u32 phy_id;char *name; -unsigned int phy_id_mask; +u32 phy_id_mask;u32 features;u32 flags;const void *driver_data;
Signature · 1 line
2.11.0
Andrew Lunn
maintainerQuoted 5 lines · Richard Leitner
From: Richard Leitner <[email protected]>
Previously
phy_idwas u32 andphy_id_maskwas unsigned int. As thephy_id_maskdefines the important bits of thephy_id(and is therefore the same size) these two variables should be the same data type.
Hi Richard
It is normal to put inside the [] of the subject line which of the two trees this patch is for. In this case net-next.
No need to resend, but please try to do this for your the next networking patch.
Andrew
Quoted 7 lines · Andrew Lunn
Quoted 5 lines · Richard Leitner
From: Richard Leitner <[email protected]>
Previously
phy_idwas u32 andphy_id_maskwas unsigned int. As thephy_id_maskdefines the important bits of thephy_id(and is therefore the same size) these two variables should be the same data type.
Quoted 7 lines
Hi Richard
It is normal to put inside the [] of the subject line which of the two trees this patch is for. In this case net-next.
No need to resend, but please try to do this for your the next networking patch.
Ok. Thank you for the information. Just saw that it's described in netdev-FAQ.txt. Sorry for not reading that in advance!
Quoted 3 lines
Andrew
From: Richard Leitner <[email protected]>
Date: Mon, 27 Nov 2017 08:16:45 +0100
Quoted 9 lines
From: Richard Leitner <[email protected]>
Previously
phy_idwas u32 andphy_id_maskwas unsigned int. As thephy_id_maskdefines the important bits of thephy_id(and is therefore the same size) these two variables should be the same data type.Signed-off-by Richard Leitner <[email protected]>Reviewed-by Florian Fainelli <[email protected]>Reviewed-by Andrew Lunn <[email protected]>
Applied.