linux-next: build failure after merge of the akpm-current tree
Subsystems (2)
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (arm defconfig) failed like this:
In file included from /scratch/sfr/next/arch/arm/mm/dma-mapping.c:29:0:
/scratch/sfr/next/include/linux/cma.h:8:28: error: 'CONFIG_CMA_AREAS' undeclared here (not in a function)
#define MAX_CMA_AREAS (1 + CONFIG_CMA_AREAS)
^
/scratch/sfr/next/arch/arm/mm/dma-mapping.c:434:54: note: in expansion of macro 'MAX_CMA_AREAS'
static struct dma_contig_early_reserve dma_mmu_remap[MAX_CMA_AREAS] __initdata;
^Caused by commit f495d267b2e0 ("CMA: generalize CMA reserved area management functionality").
I have reverted that commit and these commits that depend on it
57d551e70a38 ("mm, CMA: clean-up log message")d75ab106aef5 ("mm, CMA: change cma_declare_contiguous() to obey coding convention") f693a5424631 ("mm, CMA: clean-up CMA allocation error path") e58e263e5254 ("PPC, KVM, CMA: use general CMA reserved area management framework")
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 16 lines · Stephen Rothwell
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (arm defconfig) failed like this:
In file included from /scratch/sfr/next/arch/arm/mm/dma-mapping.c:29:0:
/scratch/sfr/next/include/linux/cma.h:8:28: error: 'CONFIG_CMA_AREAS' undeclared here (not in a function)#define MAX_CMA_AREAS (1 + CONFIG_CMA_AREAS) ^ /scratch/sfr/next/arch/arm/mm/dma-mapping.c:434:54: note: in expansion of macro 'MAX_CMA_AREAS' static struct dma_contig_early_reserve dma_mmu_remap[MAX_CMA_AREAS] __initdata; ^Caused by commit
f495d267b2e0("CMA: generalize CMA reserved area management functionality").
Quoted 7 lines
I have reverted that commit and these commits that depend on it
57d551e70a38("mm, CMA: clean-up log message")d75ab106aef5("mm, CMA: changecma_declare_contiguous()to obey coding convention")f693a5424631("mm, CMA: clean-up CMA allocation error path")e58e263e5254("PPC, KVM, CMA: use general CMA reserved area management framework")
Hello,
If below patch fixes above problem, is it possible to retain above patches in linux-next?
Thanks.
---------8<----------------
Quoted 1 line
From
e5c519c4b74914067e43cb55e232f19de9967324Mon Sep 17 00:00:00 2001
From: Joonsoo Kim <[email protected]>
Date: Fri, 20 Jun 2014 13:30:56 +0900
Subject: [PATCH] CMA: fix ARM build failure related to MAX_CMA_AREAS
definition
If CMA is disabled, CONFIG_CMA_AREAS isn't defined so compile error happens. To fix it, define MAX_CMA_AREAS if CONFIG_CMA_AREAS isn't defined.
include/linux/cma.h +6 -0
@@ -5,8 +5,14 @@* There is always at least global CMA area and a few optional * areas configured in kernel .config. */ +#ifdef CONFIG_CMA_AREAS #define MAX_CMA_AREAS (1 + CONFIG_CMA_AREAS) +#else +#define MAX_CMA_AREAS (0) + +#endif +struct cma ;extern phys_addr_t cma_get_base (struct cma *cma);
Signature · 1 line
1.7.9.5