dmabuf-heaps/dmabuf-heap.c: Initialize features variable to avoid compiler warning
Subsystems (2)
PATCH 1/1 dmabuf-heaps/dmabuf-heap.c: Initialize features variable to avoid compiler warning
Reported-by kernel test robot <[email protected]>
Signed-off-by Xiao Yang <[email protected]>
--- tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c +1 -1
@@ -154,7 +154,7 @@ static int do_test(char *heap_name)int heap_fd =-1 , dmabuf_fd =-1 , importer_fd =-1 ;uint32_t handle =0 ;void *p =NULL ; -unsigned long long features; +unsigned long long features =0 ;int ret;printf ("Testing heap: %s\n" , heap_name);
Signature · 1 line
2.21.0
shuah
maintainerQuoted 2 lines · Xiao Yang
Reported-by kernel test robot <[email protected]>Signed-off-by Xiao Yang <[email protected]>
Missing commit log. Please add one to show the compiler warn you are fixing.
Quoted 10 lines
--- tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c +0
-0
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c static int do_test(char *heap_name) · line 160
Quoted 8 lines
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c +1
-1@@ -154,7 +154,7 @@ static int do_test(char *heap_name)int heap_fd =-1 , dmabuf_fd =-1 , importer_fd =-1 ;uint32_t handle =0 ;void *p =NULL ; -unsigned long long features; +unsigned long long features =0 ;int ret;printf ("Testing heap: %s\n" , heap_name);
thanks,
-- Shuah
Quoted 6 lines · shuah
Quoted 2 lines · Xiao Yang
Reported-by kernel test robot <[email protected]>Signed-off-by Xiao Yang <[email protected]>Missing commit log. Please add one to show the compiler warn you are fixing.
Shuah's feedback is good advice for future patches, but I wanted to clarify that I've dropped the affected code, so there's no reason to respin this patch.
thanks
-john