We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b4bab commit c240c4dCopy full SHA for c240c4d
1 file changed
stress-pagescatter.c
@@ -102,6 +102,8 @@ static void *stress_pagescatter_mmap(
102
#if defined(MAP_POPULATE)
103
if (populate)
104
flags |= MAP_POPULATE;
105
+#else
106
+ (void)populate;
107
#endif
108
109
/* random address hint */
@@ -119,7 +121,7 @@ static void *stress_pagescatter_mmap(
119
121
errno = 0;
120
122
123
/* if page is resident, it's mapped, try again */
- if (mincore((void *)addr, page_size, vec) == 0)
124
+ if (shim_mincore((void *)addr, page_size, vec) == 0)
125
continue;
126
/* if addr can be madvised then it's mapped, try again */
127
if (madvise((void *)addr, page_size, MADV_NORMAL) == 0)
0 commit comments