zdump: zg.h: consolidate PAGE_SIZE macros

Reuse `PAGE_SIZE` defined in `boot/s390.h`.

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2022-10-21 11:19:24 +00:00
committed by Jan Höppner
parent 2025cf751f
commit 6cbd81f997

View File

@@ -25,6 +25,7 @@
#include <sys/types.h>
#include <unistd.h>
#include "boot/s390.h"
#include "lib/util_base.h"
#include "lib/zt_common.h"
@@ -95,7 +96,6 @@ void zg_stdout(const char *fmt, ...);
/*
* Misc
*/
#define PAGE_SIZE 4096UL
#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
static inline u32 zg_csum_partial(const void *buf, int len, u32 sum)