diff options
author | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2020-06-22 18:21:35 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-22 13:47:32 -0400 |
commit | 5b70cbdb7bc2ea65096b51565c75815cc95945b8 (patch) | |
tree | 456c649769b28fcfd0b15e481a918ea623741dbb | |
parent | cae10b5b5bdc53480bd2e985f1e43eb8910e40f8 (diff) | |
download | kvm-unit-tests-5b70cbdb7bc2ea65096b51565c75815cc95945b8.tar.gz |
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>
-rw-r--r-- | lib/x86/asm/page.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ typedef unsigned long pgd_t; #ifndef __ASSEMBLY__ +#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE) + #ifdef __x86_64__ #define LARGE_PAGE_SIZE (512 * PAGE_SIZE) #else |