diff options
| author | Anshuman Khandual <[email protected]> | 2025-04-09 09:50:06 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-04-12 00:32:41 +0000 |
| commit | 92868577d05ff75f9f38c6345ed275203827faba (patch) | |
| tree | 4acc73b53d38d0caf2fc1e437d4574149429538d /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | alloc_tag: handle incomplete bulk allocations in vm_module_tags_populate (diff) | |
| download | kernel-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/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions
