Skip to contentSkip to conversation

net: phy: harmonize phy_id{,_mask} data type

PATCH RESEND Applied Richard Leitner 4 participants 4 messages Nov 27, 2017 – Nov 30, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index dc82a07cb4fd..e00fd9ce3bce 100644
@@ -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
maintainer
#1 lore raw
Quoted 5 lines · Richard Leitner

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.

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

#2 lore raw
Quoted 7 lines · Andrew Lunn
Quoted 5 lines · Richard Leitner

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.

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

maintainer Applied
#3 lore raw
In reply to Richard Leitner

From: Richard Leitner <[email protected]>
Date: Mon, 27 Nov 2017 08:16:45 +0100

Quoted 9 lines

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.

Applied.