From patchwork Mon Jun 4 10:18:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9096 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 5B26C23E57 for ; Mon, 4 Jun 2012 10:29:12 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 18CBAA185E9 for ; Mon, 4 Jun 2012 10:29:12 +0000 (UTC) Received: by yhpp61 with SMTP id p61so3075158yhp.11 for ; Mon, 04 Jun 2012 03:29:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=eXsk/nzr/sBWleVuow2gvLWTF98SAULeByoWI/rYQco=; b=B13SO2fDamHILS/mqGiV4of2dbayio2iWPo8hTjkt8M9i7QBmLWnJyM1eak/QuKZAZ ctoiueY7P1/QoF1oBxmneNQaYm4gKyTcRqHutTCuN7DojmvziLp3JDr171L+WLojedEs o20fxz3LM3MitjSPrYjJAcG5bwmVivamaOmzbrlTTvpdS9KvdlCB+UV1xMeVIUGlUZNb WowhYMidgyY/HmUj5WN1FxvdqLfXBYWpY5hY9fZIethNuzGuEs73+QEueellEZ+4j68g /F0gsaA1OFG70/DOXXNMxRmMXOy/aZIh2qvF3xkVhRD3imkfFWkMQOFU6LIbuB/X5Bm0 o+KQ== Received: by 10.50.87.227 with SMTP id bb3mr7304455igb.57.1338805751277; Mon, 04 Jun 2012 03:29:11 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp98736ibb; Mon, 4 Jun 2012 03:29:10 -0700 (PDT) Received: by 10.68.190.131 with SMTP id gq3mr38561820pbc.17.1338805750534; Mon, 04 Jun 2012 03:29:10 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id ts4si806698pbc.2.2012.06.04.03.29.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jun 2012 03:29:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by danh15 with SMTP id h15so6605627dan.37 for ; Mon, 04 Jun 2012 03:29:10 -0700 (PDT) Received: by 10.68.242.7 with SMTP id wm7mr38015556pbc.98.1338805750223; Mon, 04 Jun 2012 03:29:10 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id x1sm12859291pbp.50.2012.06.04.03.29.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jun 2012 03:29:09 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Cc: m.szyprowski@samsung.com, arnd@arndb.de, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] ARM: dma-mapping: Add missing static storage class specifier Date: Mon, 4 Jun 2012 15:48:12 +0530 Message-Id: <1338805092-892-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQlNUacJez8oZ/tcGRS6u2aCirqYLaC1hbRzT66vixhXs0GgBpE/9J8car3aO0vE+x1B1/8/ 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 --- 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) {