* [PATCH 1/1] ARM: dma-mapping: Add missing static storage class specifier
@ 2012-06-04 10:18 Sachin Kamat
2012-06-11 12:27 ` Marek Szyprowski
0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-06-04 10:18 UTC (permalink / raw)
To: linux-arm-kernel
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 <sachin.kamat@linaro.org>
---
arch/arm/mm/dma-mapping.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index ea6b431..788acb7 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -228,7 +228,7 @@ static pte_t **consistent_pte;
#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)
{
@@ -323,7 +323,7 @@ static struct arm_vmregion_head coherent_head = {
.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)
{
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/1] ARM: dma-mapping: Add missing static storage class specifier
2012-06-04 10:18 [PATCH 1/1] ARM: dma-mapping: Add missing static storage class specifier Sachin Kamat
@ 2012-06-11 12:27 ` Marek Szyprowski
0 siblings, 0 replies; 2+ messages in thread
From: Marek Szyprowski @ 2012-06-11 12:27 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
On Monday, June 04, 2012 12:18 PM Sachin Kamat wrote:
> 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 <sachin.kamat@linaro.org>
Thanks for the patch. I've applied it to my dma-mapping fixes branch.
> ---
> arch/arm/mm/dma-mapping.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
> index ea6b431..788acb7 100644
> --- a/arch/arm/mm/dma-mapping.c
> +++ b/arch/arm/mm/dma-mapping.c
> @@ -228,7 +228,7 @@ static pte_t **consistent_pte;
>
> #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)
> {
> @@ -323,7 +323,7 @@ static struct arm_vmregion_head coherent_head = {
> .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)
> {
Best regards
--
Marek Szyprowski
Samsung Poland R&D Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-11 12:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-04 10:18 [PATCH 1/1] ARM: dma-mapping: Add missing static storage class specifier Sachin Kamat
2012-06-11 12:27 ` Marek Szyprowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).