Patchwork UBUNTU: SAUCE: Fix a buidling error when turn off CONFIG_SMP

login
register
mail settings
Submitter Bryan Wu
Date Sept. 26, 2010, 3:27 a.m.
Message ID <1285471678-5983-2-git-send-email-bryan.wu@canonical.com>
Download mbox | patch
Permalink /patch/65770/
State Accepted
Delegated to: Tim Gardner
Headers show

Comments

Bryan Wu - Sept. 26, 2010, 3:27 a.m.
BugLink: http://bugs.launchpad.net/bugs/647890

Commit bde95e1bcf0b39b06c365e509dc4e11bfcbb54e5 introduced a building
error:
--
/opt/git/Ubuntu/roc/ubuntu-maverick/arch/arm/mm/ioremap.c: In function '__arm_multi_strided_ioremap':
/opt/git/Ubuntu/roc/ubuntu-maverick/arch/arm/mm/ioremap.c:437: error: 'size' undeclared (first use in this function)
/opt/git/Ubuntu/roc/ubuntu-maverick/arch/arm/mm/ioremap.c:437: error: (Each undeclared identifier is reported only once
/opt/git/Ubuntu/roc/ubuntu-maverick/arch/arm/mm/ioremap.c:437: error: for each function it appears in.)
make[3]: *** [arch/arm/mm/ioremap.o] Error 1
make[2]: *** [arch/arm/mm] Error 2
make[2]: *** Waiting for unfinished jobs....
--

This patch fixed this.

Cc: Lajos Molnar <molnar@ti.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
---
 arch/arm/mm/ioremap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c
index a6cdb4e..e66004b 100644
--- a/arch/arm/mm/ioremap.c
+++ b/arch/arm/mm/ioremap.c
@@ -434,7 +434,7 @@  __arm_multi_strided_ioremap(int sections,
 							~SUPERSECTION_MASK)) {
 				area->flags |= VM_ARM_SECTION_MAPPING;
 				err = remap_area_supersections(addr_i, pfns[i],
-								size[i], type);
+							phys_size[i], type);
 			} else if (!((__pfn_to_phys(pfns[i]) | vstride | addr_i)
 								& ~PMD_MASK)) {
 				area->flags |= VM_ARM_SECTION_MAPPING;