Commit 9d51c16
committed
selftests/mm: fix guard-pages build
JIRA: https://issues.redhat.com/browse/RHEL-78135
Upstream Status: RHEL only
The tools/testing/selftests/mm/guard-pages.c build was br0ken in v6.13:
"""
guard-pages.c: In function ‘guard_pages_process_madvise’:
guard-pages.c:422:17: warning: implicit declaration of function ‘process_madvise’; did you mean ‘SYS_process_madvise’? [-Wimplicit-function-declaration]
422 | count = process_madvise(pidfd, vec, 6, MADV_GUARD_INSTALL, 0);
| ^~~~~~~~~~~~~~~
| SYS_process_madvise
/usr/bin/ld: /tmp/ccLfVeGh.o: in function `guard_pages_process_madvise':
guard-pages.c:(.text+0x5c54): undefined reference to `process_madvise'
/usr/bin/ld: guard-pages.c:(.text+0x629c): undefined reference to `process_madvise'
collect2: error: ld returned 1 exit status
make: *** [../lib.mk:222: /home/luizcap/src/linux/tools/testing/selftests/mm/guard-pages] Error 1
"""
This is fixed in upstream commit 19b65ff ("selftests/mm: add fork
CoW guard page test"). Now, the problem is that that commit was merged
in v6.14-rc1 and it adds a new test too so I can't tell if the new test
is supported in v6.13. To be safe, do a partial backport of the build
fix only.
Signed-off-by: Luiz Capitulino <luizcap@redhat.com>1 parent 7fd921d commit 9d51c16
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| |||
419 | 425 | | |
420 | 426 | | |
421 | 427 | | |
422 | | - | |
| 428 | + | |
423 | 429 | | |
424 | 430 | | |
425 | 431 | | |
| |||
440 | 446 | | |
441 | 447 | | |
442 | 448 | | |
443 | | - | |
| 449 | + | |
444 | 450 | | |
445 | 451 | | |
446 | 452 | | |
| |||
0 commit comments