The patch titled Subject: tools/testing/selftests/ptrace/peeksiginfo.c: add PAGE_SIZE definition has been added to the -mm tree. Its filename is some-systems-have-a-dynamic-page_size-value-and-do-not-add-a-definition-for-page_size-this-value-will-have-to-be-retrieved-using-getpagesize-or-sysconf.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/some-systems-have-a-dynamic-page_size-value-and-do-not-add-a-definition-for-page_size-this-value-will-have-to-be-retrieved-using-getpagesize-or-sysconf.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/some-systems-have-a-dynamic-page_size-value-and-do-not-add-a-definition-for-page_size-this-value-will-have-to-be-retrieved-using-getpagesize-or-sysconf.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Thierry Fauck <thierry@xxxxxxxxxxxxxxxxxx> Subject: tools/testing/selftests/ptrace/peeksiginfo.c: add PAGE_SIZE definition Some systems have a dynamic PAGE_SIZE value and do not add a definition for PAGE_SIZE. This value will have to be retrieved using getpagesize() or sysconf(). Signed-off-by: Thierry Fauck <thierry@xxxxxxxxxxxxxxxxxx> Cc: Andrey Vagin <avagin@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- tools/testing/selftests/ptrace/peeksiginfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN tools/testing/selftests/ptrace/peeksiginfo.c~some-systems-have-a-dynamic-page_size-value-and-do-not-add-a-definition-for-page_size-this-value-will-have-to-be-retrieved-using-getpagesize-or-sysconf tools/testing/selftests/ptrace/peeksiginfo.c --- a/tools/testing/selftests/ptrace/peeksiginfo.c~some-systems-have-a-dynamic-page_size-value-and-do-not-add-a-definition-for-page_size-this-value-will-have-to-be-retrieved-using-getpagesize-or-sysconf +++ a/tools/testing/selftests/ptrace/peeksiginfo.c @@ -31,6 +31,10 @@ static int sys_ptrace(int request, pid_t #define TEST_SICODE_PRIV -1 #define TEST_SICODE_SHARE -2 +#ifndef PAGE_SIZE +#define PAGE_SIZE sysconf(_SC_PAGESIZE) +#endif + #define err(fmt, ...) \ fprintf(stderr, \ "Error (%s:%d): " fmt, \ _ Patches currently in -mm which might be from thierry@xxxxxxxxxxxxxxxxxx are some-systems-have-a-dynamic-page_size-value-and-do-not-add-a-definition-for-page_size-this-value-will-have-to-be-retrieved-using-getpagesize-or-sysconf.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html