Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tim Abbott and committed by
Hirokazu Takata
8b1c9bef 43c1266c

+3 -1
+3 -1
arch/m32r/include/asm/page.h
··· 1 1 #ifndef _ASM_M32R_PAGE_H 2 2 #define _ASM_M32R_PAGE_H 3 3 4 + #include <linux/const.h> 5 + 4 6 /* PAGE_SHIFT determines the page size */ 5 7 #define PAGE_SHIFT 12 6 - #define PAGE_SIZE (1UL << PAGE_SHIFT) 8 + #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) 7 9 #define PAGE_MASK (~(PAGE_SIZE-1)) 8 10 9 11 #ifndef __ASSEMBLY__