Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'linux_kselftest-fixes-6.18-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest

Pull kselftest fixes from Shuah Khan:
"Fix build warning in cachestat found during clang build and add
tmpshmcstat to .gitignore"

* tag 'linux_kselftest-fixes-6.18-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
selftests: cachestat: Fix warning on declaration under label
selftests/cachestat: add tmpshmcstat file to .gitignore

+3 -2
+1
tools/testing/selftests/cachestat/.gitignore
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 test_cachestat 3 + tmpshmcstat
+2 -2
tools/testing/selftests/cachestat/test_cachestat.c
··· 226 226 int syscall_ret; 227 227 size_t compute_len = PS * 512; 228 228 struct cachestat_range cs_range = { PS, compute_len }; 229 - char *filename = "tmpshmcstat"; 229 + char *filename = "tmpshmcstat", *map; 230 230 struct cachestat cs; 231 231 bool ret = true; 232 232 int fd; ··· 257 257 } 258 258 break; 259 259 case FILE_MMAP: 260 - char *map = mmap(NULL, filesize, PROT_READ | PROT_WRITE, 260 + map = mmap(NULL, filesize, PROT_READ | PROT_WRITE, 261 261 MAP_SHARED, fd, 0); 262 262 263 263 if (map == MAP_FAILED) {