aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorLee Jones <[email protected]>2020-06-23 11:05:23 +0100
committerLee Jones <[email protected]>2020-07-06 08:31:55 +0100
commitddb6b26c4102aab886277b2ca3c027b4976d819b (patch)
tree5faa77d90f7b5c59be21913fdc6f13d5e7187f77 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent54daa5d47c47662067115a78dd317fba3de9e828 (diff)
mfd: ab8500-debugfs: Fix incompatible types in comparison expression issue
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: Linus Walleij <[email protected]> Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions