Skip to content

Commit 8b1c9be

Browse files
Tim Abbotthtakata
authored andcommitted
m32r: make PAGE_SIZE available to assembly.
page.h includes ifndef __ASSEMBLY__ guards, but PAGE_SIZE is defined using "1UL", which the assembler does not support. Use the _AC macro from const.h to make it available to assembly (and linker scripts). Signed-off-by: Tim Abbott <tabbott@ksplice.com> Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
1 parent 43c1266 commit 8b1c9be

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎arch/m32r/include/asm/page.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#ifndef _ASM_M32R_PAGE_H
22
#define _ASM_M32R_PAGE_H
33

4+
#include <linux/const.h>
5+
46
/* PAGE_SHIFT determines the page size */
57
#define PAGE_SHIFT 12
6-
#define PAGE_SIZE (1UL << PAGE_SHIFT)
8+
#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
79
#define PAGE_MASK (~(PAGE_SIZE-1))
810

911
#ifndef __ASSEMBLY__

0 commit comments

Comments
 (0)