Skip to content

Commit e53f517

Browse files
Sachin Kamatmszyprow
authored andcommitted
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: Sachin Kamat <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]>
1 parent cfaf025 commit e53f517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mm/dma-mapping.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static pte_t **consistent_pte;
228228

229229
#define DEFAULT_CONSISTENT_DMA_SIZE SZ_2M
230230

231-
unsigned long consistent_base = CONSISTENT_END - DEFAULT_CONSISTENT_DMA_SIZE;
231+
static unsigned long consistent_base = CONSISTENT_END - DEFAULT_CONSISTENT_DMA_SIZE;
232232

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

324-
size_t coherent_pool_size = DEFAULT_CONSISTENT_DMA_SIZE / 8;
324+
static size_t coherent_pool_size = DEFAULT_CONSISTENT_DMA_SIZE / 8;
325325

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

0 commit comments

Comments
 (0)