On Fri, Jun 20, 2014 at 10:53:45AM +0800, kbuild test robot wrote: > tree: git://git.cmpxchg.org/linux-mmotm.git master > head: df25ba7db0775d87018e2cd92f26b9b087093840 > commit: a93b0a43ec6787c98ac94f4d391069dddc006ce9 [108/230] CMA: generalize CMA reserved area management functionality > config: arm-sa1100 (attached as .config) > > All error/warnings: > > >> arch/arm/mm/dma-mapping.c:434:54: error: 'CONFIG_CMA_AREAS' undeclared here (not in a function) > arch/arm/mm/dma-mapping.c:434:40: warning: 'dma_mmu_remap' defined but not used [-Wunused-variable] > Hello, There is a mistake. Here goes the fix. Thanks. -------------------8<--------------- >From e5c519c4b74914067e43cb55e232f19de9967324 Mon Sep 17 00:00:00 2001 From: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> 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. Reported-by: kbuild test robot <fengguang.wu@xxxxxxxxx> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@xxxxxxx> diff --git a/include/linux/cma.h b/include/linux/cma.h index 32cab7a..371b930 100644 --- a/include/linux/cma.h +++ b/include/linux/cma.h @@ -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); -- 1.7.9.5 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>