aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorSidharth Seela <[email protected]>2025-09-29 11:54:06 +0000
committerShuah Khan <[email protected]>2025-10-22 15:23:18 +0000
commit920aa3a7705a061cb3004572d8b7932b54463dbf (patch)
tree19e041b098ac153bf3ec259169e996d5ce11c527 /lib/mpi/mpi-mod.c
parentselftests/cachestat: add tmpshmcstat file to .gitignore (diff)
downloadkernel-920aa3a7705a061cb3004572d8b7932b54463dbf.tar.gz
kernel-920aa3a7705a061cb3004572d8b7932b54463dbf.zip
selftests: cachestat: Fix warning on declaration under label
Fix warning caused from declaration under a case label. The proper way is to declare variable at the beginning of the function. The warning came from running clang using LLVM=1; and is as follows: -test_cachestat.c:260:3: warning: label followed by a declaration is a C23 extension [-Wc23-extensions] 260 | char *map = mmap(NULL, filesize, PROT_READ | PROT_WRITE, | Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sidharth Seela <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Reviewed-by: wang lian <[email protected]> Reviewed-by: Dev Jain <[email protected]> Acked-by: Shuah Khan <[email protected]> Acked-by: Nhat Pham <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions