Skip to content

Commit e847f8c

Browse files
Chunyan Zhangakpm00
authored andcommitted
selftest/mm: fix typo in virtual_address_range
The function name should be *hint* address, so correct it. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Chunyan Zhang <[email protected]> Reviewed-by: Charlie Jenkins <[email protected]> Acked-by: Palmer Dabbelt <[email protected]> Cc: Alexandre Ghiti <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Shuah Khan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent d37da42 commit e847f8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/mm/virtual_address_range.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
#define NR_CHUNKS_HIGH NR_CHUNKS_384TB
6565
#endif
6666

67-
static char *hind_addr(void)
67+
static char *hint_addr(void)
6868
{
6969
int bits = HIGH_ADDR_SHIFT + rand() % (63 - HIGH_ADDR_SHIFT);
7070

@@ -185,7 +185,7 @@ int main(int argc, char *argv[])
185185
}
186186

187187
for (i = 0; i < NR_CHUNKS_HIGH; i++) {
188-
hint = hind_addr();
188+
hint = hint_addr();
189189
hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE,
190190
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
191191

0 commit comments

Comments
 (0)