From patchwork Tue Dec 8 15:35:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7799141 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5B87A9F387 for ; Tue, 8 Dec 2015 15:36:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 735B8204D6 for ; Tue, 8 Dec 2015 15:36:11 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 302D7203B7 for ; Tue, 8 Dec 2015 15:36:10 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D1264260464; Tue, 8 Dec 2015 16:36:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_LOW,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 32DA126043C; Tue, 8 Dec 2015 16:36:06 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7867E26043E; Tue, 8 Dec 2015 16:36:05 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) by alsa0.perex.cz (Postfix) with ESMTP id 6A646260431 for ; Tue, 8 Dec 2015 16:35:58 +0100 (CET) Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0MKt72-1a6KJ12kUK-0000Nl; Tue, 08 Dec 2015 16:35:55 +0100 From: Arnd Bergmann To: Mark Brown Date: Tue, 08 Dec 2015 16:35:51 +0100 Message-ID: <1625124.fpu6AsNAkc@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:wwyfyg1R2mF9ZsKrA9CA8Lbp0zHdk/Y2HdGWMR1ThO5yqpBBnZk I8jgoo3aLGUAyFUGdGMfeOVpKPqgZQeZf4mPfJBVQpDr9MaUNzD0ItinGRQKb5qPq31f48q /621Nu9NTC8TYJpJySt27NQSgUEwIB3jKU28kx+D9VCqxL1n/hva/ofRObTOUC3/bIqeIq+ SQYzQyqzcftNTNWGQuXJA== X-UI-Out-Filterresults: notjunk:1; V01:K0:HRSHuDzWuvE=:weTkNgxgJx4JeJXzcVAL2c 849+z0hWUnsJ+Yd1AityvuC/tJku4dPJIglxK52nEza8sOPz7aW0hvdFypsxSlMxZQyDRID+S NlogB6PKvpqG3lRLfdxY39jihcK4t9ignyA0EZBA5LkWEkj7iiTbhNWRsBHsCyTIELFCD2wZk /xT00qByb2ehIyJg23yVTxN0D8WID1EyvWZfcY/tyNt5w6VimxWwi5W5dyr2Pvqu8lY/2bw1Y HJSoyeEhmQNhx/GrWWi4lGkMSixNAIzEcJi3wS9TyoUJnonQceXjTpH3P8F7BWUr7CP8/KRkQ WioY8uR8bokDo3dMi3MTthBBOYzquMUlZPul7yMRq4h6rnccuGtDwszi/pnT2IpTAy7/ujE/g v6UQooPADwgAz5Ha3ffVu7+S2KV+mMx57z5ovTr8ZL31HiO0TyrDUIB+oNTkCoJjpifs3c2qi VR3V4F6NVoFUy9KYP40lW6gTG2IVYdqj1+4N13IlU+VRZAHm4A4i3lFARnja/xAmMMg89CAen 8j0Zdquzzb+Rmp/cH4GBV7lRfDt3+I2TE+5MahSHsFfaXuFHpWxHTGu1QK8Ef53N3an1x3ric 3EbszY6aRgbUaAdAcF6iNiSPaH8ZqlWSMo7yiwljjMmqrPv9xsBEI6JIe0HW4EMyeKb5Z4xWX UEnRsAqTpN1mDbejzXhI8Yr87ofsixdhlgXBHJCfvCf2VNKfdvz9/D1t25I4N02am1U0AeWBe IJvnItpM71nWIIPp Cc: alsa-devel@alsa-project.org, Xiubo Li , linux-kernel@vger.kernel.org, Liam Girdwood , Timur Tabi , Nicolin Chen , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: fsl: use correct format string for dma_addr_t X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP We get a warning for the imx-pcm-fiq driver when CONFIG_LPAE is enabled on ARM, because dma_addr_t is 64-bit then: sound/soc/fsl/imx-pcm-fiq.c: In function 'snd_imx_pcm_mmap': sound/soc/fsl/imx-pcm-fiq.c:223:107: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=] This changes the printk to use the correct format string for printing a dma_addr_t. Signed-off-by: Arnd Bergmann --- sound/soc/fsl/imx-pcm-fiq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 7abf6a079574..49d7513f429e 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c @@ -220,9 +220,9 @@ static int snd_imx_pcm_mmap(struct snd_pcm_substream *substream, ret = dma_mmap_writecombine(substream->pcm->card->dev, vma, runtime->dma_area, runtime->dma_addr, runtime->dma_bytes); - pr_debug("%s: ret: %d %p 0x%08x 0x%08x\n", __func__, ret, + pr_debug("%s: ret: %d %p %pad 0x%08x\n", __func__, ret, runtime->dma_area, - runtime->dma_addr, + &runtime->dma_addr, runtime->dma_bytes); return ret; }