Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e53f517f authored by Sachin Kamat's avatar Sachin Kamat Committed by Marek Szyprowski
Browse files

ARM: dma-mapping: Add missing static storage class specifier



Fixes the following sparse warnings:
arch/arm/mm/dma-mapping.c:231:15: warning: symbol 'consistent_base' was not
declared. Should it be static?
arch/arm/mm/dma-mapping.c:326:8: warning: symbol 'coherent_pool_size' was not
declared. Should it be static?

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
parent cfaf0251
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -228,7 +228,7 @@ static pte_t **consistent_pte;


#define DEFAULT_CONSISTENT_DMA_SIZE SZ_2M
#define DEFAULT_CONSISTENT_DMA_SIZE SZ_2M


unsigned long consistent_base = CONSISTENT_END - DEFAULT_CONSISTENT_DMA_SIZE;
static unsigned long consistent_base = CONSISTENT_END - DEFAULT_CONSISTENT_DMA_SIZE;


void __init init_consistent_dma_size(unsigned long size)
void __init init_consistent_dma_size(unsigned long size)
{
{
@@ -321,7 +321,7 @@ static struct arm_vmregion_head coherent_head = {
	.vm_list	= LIST_HEAD_INIT(coherent_head.vm_list),
	.vm_list	= LIST_HEAD_INIT(coherent_head.vm_list),
};
};


size_t coherent_pool_size = DEFAULT_CONSISTENT_DMA_SIZE / 8;
static size_t coherent_pool_size = DEFAULT_CONSISTENT_DMA_SIZE / 8;


static int __init early_coherent_pool(char *p)
static int __init early_coherent_pool(char *p)
{
{