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

selftest/mm: fix typo in virtual_address_range

The function name should be *hint* address, so correct it.

Link: https://lkml.kernel.org/r/20241008094141.549248-4-zhangchunyan@iscas.ac.cn
Signed-off-by: Chunyan Zhang <zhangchunyan@iscas.ac.cn>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Chunyan Zhang and committed by
Andrew Morton
e847f8cd d37da422

+2 -2
+2 -2
tools/testing/selftests/mm/virtual_address_range.c
··· 64 64 #define NR_CHUNKS_HIGH NR_CHUNKS_384TB 65 65 #endif 66 66 67 - static char *hind_addr(void) 67 + static char *hint_addr(void) 68 68 { 69 69 int bits = HIGH_ADDR_SHIFT + rand() % (63 - HIGH_ADDR_SHIFT); 70 70 ··· 185 185 } 186 186 187 187 for (i = 0; i < NR_CHUNKS_HIGH; i++) { 188 - hint = hind_addr(); 188 + hint = hint_addr(); 189 189 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, 190 190 MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); 191 191