On Wed, Jun 24, 2020 at 5:07 PM Lee Jones <[email protected]> wrote:
> Smatch reports: > > drivers/mfd/ab8500-debugfs.c:1804:20: error: incompatible types in > comparison expression (different type sizes): > drivers/mfd/ab8500-debugfs.c:1804:20: unsigned int * > drivers/mfd/ab8500-debugfs.c:1804:20: unsigned long * > > This is due to mixed types being compared in a min() comparison. Fix > this by treating values as signed and casting them to the same type > as the receiving variable. > > Cc: <[email protected]> > Cc: Linus Walleij <[email protected]> > Signed-off-by: Lee Jones <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Yours, Linus Walleij

