summaryrefslogtreecommitdiff
path: root/drivers/mfd/altera-a10sr.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-11-07 14:03:38 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-11-07 17:50:32 +0000
commit1a1f12872edcd5e425b668a35fb23548cfa918ef (patch)
tree492e14afda47c3da74b3be8c31cb0190eb13a52d /drivers/mfd/altera-a10sr.c
parent0e870bf872929a026c58a74608734b89a95dda74 (diff)
drm/i915: Prevent unbounded wm results in g4x_compute_wm()
Smatch warns of drivers/gpu/drm/i915/intel_pm.c:1161 g4x_compute_wm() warn: signedness bug returning '(-33554430)' which is a result of it believing that wm may be INT_MAX following g4x_tlb_miss_wa(). Just declaring g4x_tlb_miss_wa() as returning an unsigned integer is not sufficient, we need to tell smatch that wm itself is unsigned for it to not worry. So mark up the locals we expect to be non-negative, and so silence smatch. v2: Mark up vlv_compute_wm_level() as unsigned similarly. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> #v1 Link: https://patchwork.freedesktop.org/patch/msgid/20171107140338.13748-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/mfd/altera-a10sr.c')
0 files changed, 0 insertions, 0 deletions