Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758929AbZIGDNa (ORCPT ); Sun, 6 Sep 2009 23:13:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758900AbZIGDNV (ORCPT ); Sun, 6 Sep 2009 23:13:21 -0400 Received: from BISCAYNE-ONE-STATION.MIT.EDU ([18.7.7.80]:61245 "EHLO biscayne-one-station.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758897AbZIGDNT (ORCPT ); Sun, 6 Sep 2009 23:13:19 -0400 From: Tim Abbott To: Linux Kernel Mailing List Cc: Sam Ravnborg , Tim Abbott , Hirokazu Takata Subject: [PATCH 1/6] m32r: make PAGE_SIZE available to assembly. Date: Sun, 6 Sep 2009 23:12:54 -0400 Message-Id: <1252293179-13382-1-git-send-email-tabbott@ksplice.com> X-Mailer: git-send-email 1.6.3.3 X-Spam-Flag: NO X-Spam-Score: 0.00 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1137 Lines: 35 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 Cc: Hirokazu Takata --- arch/m32r/include/asm/page.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/m32r/include/asm/page.h b/arch/m32r/include/asm/page.h index 11777f7..725ede8 100644 --- a/arch/m32r/include/asm/page.h +++ b/arch/m32r/include/asm/page.h @@ -1,9 +1,11 @@ #ifndef _ASM_M32R_PAGE_H #define _ASM_M32R_PAGE_H +#include + /* PAGE_SHIFT determines the page size */ #define PAGE_SHIFT 12 -#define PAGE_SIZE (1UL << PAGE_SHIFT) +#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) #ifndef __ASSEMBLY__ -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/