drivers/net/tulip/* - compile warning
Subsystems (2)
PATCH 10/21 drivers/net/tulip/* - compile warning
Description: compile warning cleanup - cast pointer arguments to correct pointer type to silence compiler warning
Signed-off-by Stephen Biggs <[email protected]>
drivers/net/tulip/dmfe.c +2 -2
@@ -1806,7 +1806,7 @@ static void dmfe_parse_srom(struct dmfe_if ( ( (int ) srom[18 ] &0xff ) ==SROM_V41_CODE ) {/* SROM V4.01 */ /* Get NIC support media mode */ - db->NIC_capability =le16_to_cpup (srom +34 ); + db->NIC_capability =le16_to_cpup ((const __le16 *)(srom +34 )); db->PHY_reg4 =0 ;for (tmp_reg =1 ; tmp_reg <0x10 ; tmp_reg <<=1 ) {switch ( db->NIC_capability & tmp_reg ) {
@@ -1818,7 +1818,7 @@ static void dmfe_parse_srom(struct dmfe_ }/* Media Mode Force or not check */ - dmfe_mode =le32_to_cpup (srom +34 ) &le32_to_cpup (srom +36 ); + dmfe_mode =le32_to_cpup ((const __le32 *)(srom +34 )) &le32_to_cpup ((const __le32 *)(srom +36 ));switch (dmfe_mode) {case 0x4 : dmfe_media_mode =DMFE_100MHF ;break ;/* 100MHF */ case 0x2 : dmfe_media_mode =DMFE_10MFD ;break ;/* 10MFD */
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors