Commit 231f88a6 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm: define PAGE_SIZE in zdtmtst.h

This patches fixes compilation on Raspberry Pi and
removes a few defines from tests.

msg.c: In function ‘test_msg’:
msg.c:41:11: error: ‘PAGE_SIZE’ undeclared (first use in this function)

CC: Alexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a66a06c7
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
#include <sys/types.h> #include <sys/types.h>
#ifndef PAGE_SIZE
# define PAGE_SIZE 4096
#endif
/* set up test */ /* set up test */
extern void test_ext_init(int argc, char **argv); extern void test_ext_init(int argc, char **argv);
extern void test_init(int argc, char **argv); extern void test_init(int argc, char **argv);
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include <linux/limits.h> #include <linux/limits.h>
#include "zdtmtst.h" #include "zdtmtst.h"
#define PAGE_SIZE 4096
#define MEM_SIZE (1L << 30) #define MEM_SIZE (1L << 30)
#define MEM_OFFSET (1L << 29) #define MEM_OFFSET (1L << 29)
#define MEM_OFFSET2 (MEM_SIZE - PAGE_SIZE) #define MEM_OFFSET2 (MEM_SIZE - PAGE_SIZE)
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include <linux/limits.h> #include <linux/limits.h>
#include "zdtmtst.h" #include "zdtmtst.h"
#define PAGE_SIZE 4096
#define MEM_SIZE (1L << 29) #define MEM_SIZE (1L << 29)
const char *test_doc = "Test big mappings"; const char *test_doc = "Test big mappings";
......
...@@ -11,7 +11,6 @@ const char *test_doc = "Check changing memory"; ...@@ -11,7 +11,6 @@ const char *test_doc = "Check changing memory";
const char *test_author = "Pavel Emelyanov <xemul@parallels.com>"; const char *test_author = "Pavel Emelyanov <xemul@parallels.com>";
#define MEM_PAGES 16 #define MEM_PAGES 16
#define PAGE_SIZE 4096
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment