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

Reply via email to