Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2150068ybl; Thu, 15 Aug 2019 07:19:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqybtE6Cg/Q59RBtOCB3OgvZdjJQkpu+pwX8zFhKrmtdI+lEw4N60+1j6dkZa2qQaBdg2BYW X-Received: by 2002:a17:902:b497:: with SMTP id y23mr4597257plr.68.1565878757914; Thu, 15 Aug 2019 07:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565878757; cv=none; d=google.com; s=arc-20160816; b=d0v1kJYcNwbXPvbCI2XUonBkXpqov9NA4+To6XD1ava8ImXUf8z6Mdcu0HqRUdbHUW XfbYC34nvO1JkYACXKtiZfK66/HHZZTlJVBdvQswwHIGhH+IKjVM4Br6bKoULNCvxDhx LEjYv06A55787vQ0WOP5LKYCSa7fxVsrBVwERCD5bt/oemzK2TGAR4h8QSkmp0/0HFuQ DOidjbr10ujy9Ww/BV5627mgVJ6oxMc6w7kmQ3QEF6fZjpChch1WsT3UfDI3wnwApMX2 kKCN0+NQy/eCy3ItIRu6ETDBSA3WRss42u3n4l/UFIcgSqDBBqP7vw1ZmJy/BUgE8Ttv n69A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject; bh=3BiIZUU8bKEp8URPs8IrYH2nRVanGWJoo21V9pw5uMs=; b=D9OorBlK59dTE86Z1ISHSIFBY3Btnp/t/yN9X7sQGSJNfXs8owUPy4f3uE32Gq+NT1 y8zdfh1ZIxBH8SmNfoN8dNCaV2wf/dn5rwL1Pj6l4xXYvGABQc2Egzym/LNAgEEdJbu0 AyyRdm/DH7dK8EHBjURbhnMvueONRsp9p82hkoivUGSr3T8+hqAN0gECXVsfVZvbKypx KBJbR7rqt3oDRj1JxmwDMbf4aUP7FC57s+21x7TXVaUA2hRR9rrYuW7Hodj3TJIhBCGi dyR/nE+bEDvFHDlEU6KgtYuDGW2EujOjJ+h8c6CnlnqEIX2otSOSR+tpLKPB8YYYdzNq E5jQ== 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 v19si1011951pjn.96.2019.08.15.07.18.59; Thu, 15 Aug 2019 07:19:17 -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 S1732635AbfHOOR7 (ORCPT + 99 others); Thu, 15 Aug 2019 10:17:59 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4716 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732816AbfHOOR7 (ORCPT ); Thu, 15 Aug 2019 10:17:59 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id D944B868952EBB349EBB for ; Thu, 15 Aug 2019 22:17:40 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Thu, 15 Aug 2019 22:17:37 +0800 Subject: Re: crypto: hisilicon - Fix warning on printing %p with dma_addr_t To: Herbert Xu , References: <20190815120313.GA29253@gondor.apana.org.au> From: Zhou Wang Message-ID: <5D556981.2080309@hisilicon.com> Date: Thu, 15 Aug 2019 22:17:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20190815120313.GA29253@gondor.apana.org.au> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2019/8/15 20:03, Herbert Xu wrote: > 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); Thanks. However, to be honest I can't get why we fix it like this. Can you give me a clue? > > mailbox.w0 = cmd | > (op ? 0x1 << QM_MB_OP_SHIFT : 0) | >