From: Andrew Morton sh allmodconfig: mm/page-writeback.c: In function `task_dirty_limit': mm/page-writeback.c:230: warning: comparison of distinct pointer types lacks a cast mm/page-writeback.c: In function `get_dirty_limits': mm/page-writeback.c:340: warning: comparison of distinct pointer types lacks a cast Cc: Peter Zijlstra Signed-off-by: Andrew Morton --- mm/page-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/page-writeback.c~mm-per-device-dirty-threshold-warning-fix mm/page-writeback.c --- a/mm/page-writeback.c~mm-per-device-dirty-threshold-warning-fix +++ a/mm/page-writeback.c @@ -291,7 +291,7 @@ get_dirty_limits(long *pbackground, long *pdirty = dirty; if (bdi) { - long long bdi_dirty = dirty; + u64 bdi_dirty = dirty; long numerator, denominator; /* _