From 62915524f173b77e99e0e85dbcfb61aab69eefd8 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 15 Aug 2017 13:49:35 +0300 Subject: [PATCH] db/kernel.return_fixes: add dma_fence_wait_timeout() The dma_fence_wait_timeout() returns either a negative error code or a positive value which represents the time remaining in jiffies. Smatch was saying that it returned numbers as low as s64min and it all becomes confusing if you are expecting to hold the negative return codes in an integer type. Signed-off-by: Dan Carpenter --- smatch_data/db/kernel.return_fixes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smatch_data/db/kernel.return_fixes b/smatch_data/db/kernel.return_fixes index cf90147e..13271eca 100644 --- a/smatch_data/db/kernel.return_fixes +++ b/smatch_data/db/kernel.return_fixes @@ -17,3 +17,5 @@ simple_write_to_buffer s64min-s64max 0-s32max[<=$1] atomic_read s32min-s32max s32min-s32max[==$0->counter] notifier_to_errno (-2147483646)-(-1) (-4095)-(-1) mc_status_to_error s32min-s32max (-4095)-0 +dma_fence_wait_timeout s64min-s64max (-4095)-s64max +dma_fence_wait_timeout s32min-s32max (-4095)-s32max -- 2.11.4.GIT