Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754883AbZIRUd1 (ORCPT ); Fri, 18 Sep 2009 16:33:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758211AbZIRUdV (ORCPT ); Fri, 18 Sep 2009 16:33:21 -0400 Received: from BISCAYNE-ONE-STATION.MIT.EDU ([18.7.7.80]:62019 "EHLO biscayne-one-station.mit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752529AbZIRUdO (ORCPT ); Fri, 18 Sep 2009 16:33:14 -0400 From: Tim Abbott To: Hirokazu Takata Cc: linux-m32r@ml.linux-m32r.org, Linux Kernel Mailing List , Sam Ravnborg , Tim Abbott , Hirokazu Takata Subject: [PATCH v2 1/6] m32r: make PAGE_SIZE available to assembly. Date: Fri, 18 Sep 2009 16:32:44 -0400 Message-Id: <1253305969-6948-2-git-send-email-tabbott@ksplice.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1253305969-6948-1-git-send-email-tabbott@ksplice.com> References: <1253305969-6948-1-git-send-email-tabbott@ksplice.com> 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/