Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2019813ybl; Thu, 15 Aug 2019 05:17:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqybV7TjvZ5Ds9hhnlMPOd1zzLSWODMrDstDHUIv4r4JLTGOshkO2rnAoU3lX/l5bQEW3uID X-Received: by 2002:a63:eb51:: with SMTP id b17mr3188797pgk.384.1565871422873; Thu, 15 Aug 2019 05:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565871422; cv=none; d=google.com; s=arc-20160816; b=OxwDet7+Cf8q6SITjR/xOibUZQKPrHe9jdegUEoJxziRG8iiZiAvWW2Ce3awqs4ChE qdRtyKYXWdaA+jAwdp+z2MPvsaJqxSDshCUjOpJOscZ6SupF03TcispDGCH9AdCCrd8C UEqgWAou+QbBGrpol0XHLrb1D6eW9/7gcl6hdyfR73VFcPmChzFYhbadVTTNsC5G95d6 CpAYejc+R3T9mQShP/gkUfw8oOoD9kMLzJ9eUeQNwgj+L8GcRp3qLNTZjMM3JLe4Wqtf nVb8Dh6ibrq9f4mwXTLXSW7TGqe2/L0Yl0JO+AvKvFS2YlTinamq8e+GbQSvHJYe55Sz WrKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date; bh=/dlH4gaCv99bBN0UEwSfr+FQH7ulIxlz4E5IsUjNsZo=; b=W5OxJZaSjy2KgrCevXvfCTWHJn6wJNTVQtTS2tnL9BQ33foT7mqQXzKGzuNbx1n9lz oeUam1C3HXuWTQl7CvQfsRKuZ3fqYvtPTk2L7XnyGu2eOLeQf+Rd3wQudUev1RpTHgV6 ZLTVmtKIv6lQmdB+JwpyiBhfz+SDyh4HpYxP0HQFHe5Mdc4URRIdr3uuVUhC9upVNRu4 nj1yeVTl4cA+MaCxBkvIb97DZgh1d1SDkB2JOTNHRy8snvoyv+sN0bd/jgkINzHJoPL6 jmJiY5axegGnAKyGluw+xrmZqe+X4hVLRZaFG5M7OQKwtkvYPLn9vYj0vta0Mk7QLpP5 Glwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z72si1725177pgd.34.2019.08.15.05.16.38; Thu, 15 Aug 2019 05:17:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730621AbfHOMDT (ORCPT + 99 others); Thu, 15 Aug 2019 08:03:19 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:57182 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfHOMDS (ORCPT ); Thu, 15 Aug 2019 08:03:18 -0400 Received: from gondolin.me.apana.org.au ([192.168.0.6] helo=gondolin.hengli.com.au) by fornost.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hyETL-0003EU-Pk; Thu, 15 Aug 2019 22:03:15 +1000 Received: from herbert by gondolin.hengli.com.au with local (Exim 4.80) (envelope-from ) id 1hyETK-0007cn-0U; Thu, 15 Aug 2019 22:03:14 +1000 Date: Thu, 15 Aug 2019 22:03:13 +1000 From: Herbert Xu To: Zhou Wang , linux-crypto@vger.kernel.org Subject: crypto: hisilicon - Fix warning on printing %p with dma_addr_t Message-ID: <20190815120313.GA29253@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This patch fixes a printk format warning by replacing %p with %#lx for dma_addr_t. Signed-off-by: Herbert Xu diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index d72e062..3095284 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -347,8 +347,8 @@ static int qm_mb(struct hisi_qm *qm, u8 cmd, dma_addr_t dma_addr, u16 queue, struct qm_mailbox mailbox; int ret = 0; - dev_dbg(&qm->pdev->dev, "QM mailbox request to q%u: %u-%pad\n", queue, - cmd, dma_addr); + dev_dbg(&qm->pdev->dev, "QM mailbox request to q%u: %u-%#lxad\n", + queue, cmd, (unsigned long)dma_addr); mailbox.w0 = cmd | (op ? 0x1 << QM_MB_OP_SHIFT : 0) | -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt