[merged] 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 removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: tools/testing/selftests/ptrace/peeksiginfo.c: add PAGE_SIZE definition
has been removed from the -mm tree.  Its filename was
     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 was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Thierry Fauck <thierry@xxxxxxxxxxxxxxxxxx>
Subject: tools/testing/selftests/ptrace/peeksiginfo.c: add PAGE_SIZE definition

On IBM powerpc where multiple page size value are supported, current ppc64
and ppc64el distro don't define the PAGE_SIZE variable in /usr/include as
this is a dynamic value retrieved by the getpagesize() or sysconf()
defined in unistd.h.  The PAGE_SIZE variable sounds defined when only one
value is supported by the kernel.

As such, when the PAGE_SIZE definition doesn't exist system should
retrieve the dynamic value.

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

origin.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




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux