diff options
| author | Sukrut Heroorkar <[email protected]> | 2025-08-04 22:56:14 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-08-12 06:00:59 +0000 |
| commit | ab5ac789efa985e42bdb5b5e8a7a4ad84935d44e (patch) | |
| tree | dba553be1ed7f53ddec853424d50cee552a08684 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | fs/proc/task_mmu: hold PTL in pagemap_hugetlb_range and gather_hugetlb_stats (diff) | |
| download | kernel-ab5ac789efa985e42bdb5b5e8a7a4ad84935d44e.tar.gz kernel-ab5ac789efa985e42bdb5b5e8a7a4ad84935d44e.zip | |
selftests/proc: fix string literal warning in proc-maps-race.c
This change resolves non literal string format warning invoked for
proc-maps-race.c while compiling.
proc-maps-race.c:205:17: warning: format not a string literal and no format arguments [-Wformat-security]
205 | printf(text);
| ^~~~~~
proc-maps-race.c:209:17: warning: format not a string literal and no format arguments [-Wformat-security]
209 | printf(text);
| ^~~~~~
proc-maps-race.c: In function `print_last_lines':
proc-maps-race.c:224:9: warning: format not a string literal and no format arguments [-Wformat-security]
224 | printf(start);
| ^~~~~~
Add string format specifier %s for the printf calls in both
print_first_lines() and print_last_lines() thus resolving the warnings.
The test executes fine after this change thus causing no effect to the
functional behavior of the test.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: aadc099c480f ("selftests/proc: add verbose mode for /proc/pid/maps tearing tests")
Signed-off-by: Sukrut Heroorkar <[email protected]>
Acked-by: Suren Baghdasaryan <[email protected]>
Cc: David Hunter <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
