From patchwork Wed Oct 24 05:09:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1635561 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id E6F753FC36 for ; Wed, 24 Oct 2012 05:11:54 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TQtDZ-0000WM-EZ; Wed, 24 Oct 2012 05:09:25 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TQtDU-0000W0-Gk for linux-arm-kernel@lists.infradead.org; Wed, 24 Oct 2012 05:09:22 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCD00CJMSZC3II0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 24 Oct 2012 14:09:15 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-69-508777fa83c6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id BE.7C.12699.AF777805; Wed, 24 Oct 2012 14:09:15 +0900 (KST) Received: from DOJG1HAN02 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MCD003T7SZEQRG0@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 24 Oct 2012 14:09:14 +0900 (KST) From: Jingoo Han To: 'Marek Szyprowski' , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dma-mapping: fix build warning in __dma_alloc() Date: Wed, 24 Oct 2012 14:09:14 +0900 Message-id: <000f01cdb1a5$b6409b60$22c1d220$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac2xpbYhmQsmM3DDRkGpqBMJe18/Mw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCLMWRmVeSWpSXmKPExsVy+t9jAd3f5e0BBp9+sFpsenyN1YHRY/OS +gDGKC6blNSczLLUIn27BK6Mhcs+sBXcZKt4snE7awPjKdYuRg4OCQETiYmfHLsYOYFMMYkL 99azdTFycQgJLGKUmHmhixXCWcwksfrQRhaQKjYBNYkvXw6zg9giAuUSb77dBoszC/hI/Jq2 ixXEFhZwlTi4bREbiM0ioCox98UKsHpeAVuJ27NWs0DYghI/Jt+D6tWSWL/zOBOELS+xec1b Zojj1CUe/dWFWKUn8b5jAjNEiYjEvhfvGCcwCsxCMmkWkkmzkEyahaRlASPLKkbR1ILkguKk 9FwjveLE3OLSvHS95PzcTYzgsHwmvYNxVYPFIUYBDkYlHt7EE20BQqyJZcWVuYcYJTiYlUR4 J98FCvGmJFZWpRblxxeV5qQWH2KU5mBREudt9kgJEBJITyxJzU5NLUgtgskycXBKNTDKbk2P qitqXaBRoDUr48qjtNiq73pJc1tf2sefCtipbZy6ovzEoZwnj8S/edy5LJ8UGpFwNMfhdEP8 ocLt3bsNqhLqArctfVk17WDTfvcV/2OOTrplPs8/0t1mdhmDo0668j/VVNf/9/SLtibn7Lsv 0BT9eoujxPS30UffvDIt3+3zVoyRbZ8SS3FGoqEWc1FxIgD8w+SfRwIAAA== X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.5 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers Cc: 'Russell King' , 'Arnd Bergmann' X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix build warning in __dma_alloc() as below: arch/arm/mm/dma-mapping.c: In function '__dma_alloc': arch/arm/mm/dma-mapping.c:653:29: warning: 'page' may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Jingoo Han --- arch/arm/mm/dma-mapping.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 477a2d2..58bc3e4 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -610,7 +610,7 @@ static void *__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, gfp_t gfp, pgprot_t prot, bool is_coherent, const void *caller) { u64 mask = get_coherent_dma_mask(dev); - struct page *page; + struct page *page = NULL; void *addr; #ifdef CONFIG_DMA_API_DEBUG