Re: [PATCH] dmabuf-heaps/dmabuf-heap.c: Initialize features variable to avoid compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/5/19 2:40 AM, Xiao Yang wrote:
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: Xiao Yang <ice_yangxiao@xxxxxxx>

Missing commit log. Please add one to show the compiler warn you are
fixing.

---
  tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
index ec47901ef2e2..5e3eeec299b2 100644
--- a/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
+++ b/tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
@@ -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



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux