From patchwork Thu Jun 9 18:43:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Martin_Povi=C5=A1er?= X-Patchwork-Id: 12875909 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 15C93C43334 for ; Thu, 9 Jun 2022 18:44:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=OGVi3SktH0rz9O9TVvJKu7L6C9Mo6F/3ZlBC5/Bk3bw=; b=Ujy5cHEBAz5kK1 Uq9fKtAv0ipVvI2r7Qke9sRAxMEXPqZLr2L44H6GnlPu5tdHHy0ewvya2SSSZk2unvTt5LwTmu6LZ t91kUFbgD0qrIN9YAANaIx1nDzmHBT2rluE2GuH3sa5NwAXE1JSbTKUvh7AU4Kw1SxCP0Vzqwjq1n saVYIQWtPIPv6g60VDD6SxXH37ZahDtDwzPp70XnQgvS8ezojfZoRncSSRKbD5MeMrIx5X3AaIrDV maE/kEVgDAtfcGPSEnrcBjNIXbKIrs6at2ZS4t0rw8aVGb4ZSn7rXRL/gSQQHmXxMIjMGopcdUpIo Mja6qxZvOkbegNvV+fOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzN7m-003gdN-ES; Thu, 09 Jun 2022 18:43:18 +0000 Received: from [2a03:3b40:fe:f0::1] (helo=hutie.ust.cz) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzN7i-003gWG-2n for linux-arm-kernel@lists.infradead.org; Thu, 09 Jun 2022 18:43:16 +0000 From: =?utf-8?q?Martin_Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1654800181; bh=8ZEDC9HewScHp00W0Vw5klKniAEYKDjKhKDVNSK6OOU=; h=From:To:Cc:Subject:Date; b=px6qoy7FiskG+Z3anl7TxNFwGF7UnJqjxDERfyPLa+fTPdkDH8JfmC+vIye5H6rTA +1m+jcZxGTjemXB7pbrLxQJ23S7F86hlk265VE3UEM32dudovgOOKaxzy7uYJQvGtf W3x5Pnu3Uwz2RiqajIpkAEy0dIdvAzl1dLZd0mzo= To: Vinod Koul Cc: Hector Martin , Sven Peter , Alyssa Rosenzweig , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, =?utf-8?q?Martin_Povi?= =?utf-8?q?=C5=A1er?= Subject: [PATCH] dmaengine: apple-admac: Fix compile warning Date: Thu, 9 Jun 2022 20:43:01 +0200 Message-Id: <20220609184301.8242-1-povik+lin@cutebit.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220609_114314_308365_6CF67FA2 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix a warning of bad format specifier: drivers/dma/apple-admac.c: In function 'admac_cyclic_write_one_desc': drivers/dma/apple-admac.c:209:26: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'long unsigned int' [-Wformat=] 209 | dev_dbg(ad->dev, "ch%d descriptor: addr=0x%pad len=0x%zx flags=0x%x\n", Reported-by: kernel test robot Signed-off-by: Martin PoviĊĦer --- Follow-up to the recent ADMAC series, feel free to squash: https://lore.kernel.org/asahi/20220531213615.7822-1-povik+lin@cutebit.org/T/#t drivers/dma/apple-admac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/apple-admac.c b/drivers/dma/apple-admac.c index 2425069c186d..c502f8c3aca7 100644 --- a/drivers/dma/apple-admac.c +++ b/drivers/dma/apple-admac.c @@ -206,7 +206,7 @@ static void admac_cyclic_write_one_desc(struct admac_data *ad, int channo, /* If happens means we have buggy code */ WARN_ON_ONCE(addr + tx->period_len > tx->buf_end); - dev_dbg(ad->dev, "ch%d descriptor: addr=0x%pad len=0x%zx flags=0x%x\n", + dev_dbg(ad->dev, "ch%d descriptor: addr=0x%pad len=0x%zx flags=0x%lx\n", channo, &addr, tx->period_len, FLAG_DESC_NOTIFY); writel_relaxed(addr, ad->base + REG_DESC_WRITE(channo));