x86: add missing PAGE_ALIGN macro from page.h
The PAGE_ALIGN macro is present in all other page.h headers, including
the generic one.
This patch adds the missing PAGE_ALIGN macro to ib/x86/asm/page.h
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <20200622162141.279716-3-imbrenda@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/lib/x86/asm/page.h b/lib/x86/asm/page.h
index 073580a..7e2a3dd 100644
--- a/lib/x86/asm/page.h
+++ b/lib/x86/asm/page.h
@@ -19,6 +19,8 @@
#ifndef __ASSEMBLY__
+#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
+
#ifdef __x86_64__
#define LARGE_PAGE_SIZE (512 * PAGE_SIZE)
#else