From patchwork Wed Sep 7 03:34:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neal Liu X-Patchwork-Id: 12968464 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 4225CC38145 for ; Wed, 7 Sep 2022 06:04:56 +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=tme7C5oglC/u2/me0ItQ/TksAaCvoHmcJkvQZ4GmCMc=; b=5Djc6G6XjCbuFZ TctvcHMiT6v//jzNLo2eG3D7frL8VEP+KI88fuigph8qwXqWxdpupDZrnmpMAuoKnrHIP87qXiF6g DjCGXH+CXPWfHnBww4vQopS9bSpsBDK2BVUOGvXa9KoTkeSeFB1J0r4TP7gijvSFpyF/YLrsgPWyA QfcHszsbp4JUABM/KjIoKg/4QvvT80Fwvu5lxEXvu3qm7vUffwaaw3u8wiroeUvodJ7lJDmPU/rhc gglI7J0cTvLu93LYTVsp/Ni3jbIQAwwU0hCTwJr4INb9oBifGn0v0w6wr98KV7kjIdW/8geKyo2aK UCDQT9hNCN6RXuxl/PGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVo9o-0032ZN-Er; Wed, 07 Sep 2022 06:03:28 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVo9m-0032Xg-Gr for linux-arm-kernel@bombadil.infradead.org; Wed, 07 Sep 2022 06:03:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=G9oReKNnU+Y1HjDZPzGAzQfaPU0xd0P7wKHdzR+pB7A=; b=puMZwxAOkDWrW+ZebomrB0b/YM FTtALzZ96GNmL9djnzWuMaah65JoeuBE7SbywuJXoWTZBWJ3y/oW7ibNMy3mBmQJQizpAj/YOIvRP 7pVAlCV36mAzpgYFMrQrqzBtirHMUO1zgbipznunQh9JEQ7zy7Bo8/Nv8y6WjOX6pVZhlZStVhlj4 57wk+bgGTGBW5HMSOZCRDVXyINu6iUSe8ALJEkAMiozTwetZH8TqTYOBjOoeFsPPb22VgK7C2jyZK MhOt450T7FQYBfP7FEZR+PsfoYcGei9SiOomDxyAV+8/jM9ifueiyqWewPhN1TI3IXFosQ7B4Kmor DPQj3F7g==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVlrH-00ALeY-9B for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2022 03:36:13 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2873EYr7015668; Wed, 7 Sep 2022 11:14:34 +0800 (GMT-8) (envelope-from neal_liu@aspeedtech.com) Received: from localhost.localdomain (192.168.10.10) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Sep 2022 11:34:35 +0800 From: Neal Liu To: Randy Dunlap , Herbert Xu , "David S . Miller" , Joel Stanley , Andrew Jeffery CC: , , , , , kernel test robot Subject: [PATCH v3] crypto: aspeed: fix format unexpected build warning Date: Wed, 7 Sep 2022 11:34:31 +0800 Message-ID: <20220907033431.402208-1-neal_liu@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [192.168.10.10] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 2873EYr7015668 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220907_043612_293827_EC2EBFF2 X-CRM114-Status: UNSURE ( 9.81 ) 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 This fixes the following similar build warning when enabling compile test: aspeed-hace-hash.c:188:9: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] Reported-by: kernel test robot Signed-off-by: Neal Liu Acked-by: Randy Dunlap --- v3: Use "%pad" to print dma_addr_t type. v2: Use "%zu" format to print size_t. drivers/crypto/aspeed/aspeed-hace-hash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/aspeed/aspeed-hace-hash.c b/drivers/crypto/aspeed/aspeed-hace-hash.c index 0a44ffc0e13b..5a8a3a611dd4 100644 --- a/drivers/crypto/aspeed/aspeed-hace-hash.c +++ b/drivers/crypto/aspeed/aspeed-hace-hash.c @@ -185,7 +185,7 @@ static int aspeed_ahash_dma_prepare_sg(struct aspeed_hace_dev *hace_dev) remain = (rctx->total + rctx->bufcnt) % rctx->block_size; length = rctx->total + rctx->bufcnt - remain; - AHASH_DBG(hace_dev, "%s:0x%x, %s:0x%x, %s:0x%x, %s:0x%x\n", + AHASH_DBG(hace_dev, "%s:0x%x, %s:%zu, %s:0x%x, %s:0x%x\n", "rctx total", rctx->total, "bufcnt", rctx->bufcnt, "length", length, "remain", remain); @@ -324,8 +324,8 @@ static int aspeed_hace_ahash_trigger(struct aspeed_hace_dev *hace_dev, struct ahash_request *req = hash_engine->req; struct aspeed_sham_reqctx *rctx = ahash_request_ctx(req); - AHASH_DBG(hace_dev, "src_dma:0x%x, digest_dma:0x%x, length:0x%x\n", - hash_engine->src_dma, hash_engine->digest_dma, + AHASH_DBG(hace_dev, "src_dma:%pad, digest_dma:%pad, length:%zu\n", + &hash_engine->src_dma, &hash_engine->digest_dma, hash_engine->src_length); rctx->cmd |= HASH_CMD_INT_ENABLE;