On 7/6/2020 6:49 PM, Andrew Lunn wrote: > By placing the GENMASK value into an unsigned int and then passing it > to PREF_FIELD, the type is reduces down from ULL. Given the reduced > size of the type, the range checks in PREP_FAIL() are always true, and > -Wtype-limits then gives a warning. > > By skipping the intermediate variable, the warning can be avoided. > > Reviewed-by: Jakub Kicinski <[email protected]> > Signed-off-by: Andrew Lunn <[email protected]> Reviwed-by: Florian Fainelli <[email protected]> -- Florian
- [PATCH net-next v2 0/7] drivers/net/phy C=1 W=1 fixes Andrew Lunn
- [PATCH net-next v2 7/7] net: phy: mdio-octeon: Clean... Andrew Lunn
- [PATCH net-next v2 1/7] net: phy: at803x: Avoid comp... Andrew Lunn
- Re: [PATCH net-next v2 1/7] net: phy: at803x: Av... Florian Fainelli
- [PATCH net-next v2 4/7] net: phy: Make phy_10gbit_f... Andrew Lunn
- [PATCH net-next v2 3/7] net: phy: Properly define ge... Andrew Lunn
- [PATCH net-next v2 5/7] net: phy: dp83640: Fixup cas... Andrew Lunn
- [PATCH net-next v2 2/7] net: phy: Fixup parameters i... Andrew Lunn
- [PATCH net-next v2 6/7] net: phy: cavium: Improve __... Andrew Lunn
- Re: [PATCH net-next v2 0/7] drivers/net/phy C=1 W=1 ... David Miller
