[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140806130647.5f94c95c9621dc7d69501641@linux-foundation.org>
Date: Wed, 6 Aug 2014 13:06:47 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Thierry FAUCK - IBM LTC <thierry@...ux.vnet.ibm.com>
Cc: avagin@...nvz.org, paulmck@...ux.vnet.ibm.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] 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().
On Wed, 6 Aug 2014 13:34:26 +0200 Thierry FAUCK - IBM LTC <thierry@...ux.vnet.ibm.com> wrote:
> --- a/tools/testing/selftests/ptrace/peeksiginfo.c
> +++ b/tools/testing/selftests/ptrace/peeksiginfo.c
> @@ -31,6 +31,10 @@ static int sys_ptrace(int request, pid_t pid, void *addr, void *data)
> #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, \
More details, please. What are "some systems"?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists