aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-region-test.c
diff options
context:
space:
mode:
authorAnshuman Khandual <[email protected]>2025-04-09 09:50:06 +0000
committerAndrew Morton <[email protected]>2025-04-12 00:32:41 +0000
commit92868577d05ff75f9f38c6345ed275203827faba (patch)
tree4acc73b53d38d0caf2fc1e437d4574149429538d /drivers/fpga/tests/fpga-region-test.c
parentalloc_tag: handle incomplete bulk allocations in vm_module_tags_populate (diff)
downloadkernel-92868577d05ff75f9f38c6345ed275203827faba.tar.gz
kernel-92868577d05ff75f9f38c6345ed275203827faba.zip
selftests/mm: fix compiler -Wmaybe-uninitialized warning
Following build warning comes up for cow test as 'transferred' variable has not been initialized. Fix the warning via zero init for the variable. CC cow cow.c: In function `do_test_vmsplice_in_parent': cow.c:365:61: warning: `transferred' may be used uninitialized [-Wmaybe-uninitialized] 365 | cur = read(fds[0], new + total, transferred - total); | ~~~~~~~~~~~~^~~~~~~ cow.c:296:29: note: `transferred' was declared here 296 | ssize_t cur, total, transferred; | ^~~~~~~~~~~ CC compaction_test CC gup_longterm Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Anshuman Khandual <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Anshuman Khandual <[email protected]> Cc: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-region-test.c')
0 files changed, 0 insertions, 0 deletions