Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp258680ybl; Thu, 15 Aug 2019 16:52:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQYXAZwke0qj8JFe+vXHoMYXXp6paiSd89AMZ5HU1EhprvKfMCb4ADjWBPbx8/GHym07cy X-Received: by 2002:a17:90a:2325:: with SMTP id f34mr4734708pje.128.1565913134091; Thu, 15 Aug 2019 16:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565913134; cv=none; d=google.com; s=arc-20160816; b=iBkA+9lW3kuAOSxR8hS+BB24DdUiUuiJBylCa93O5hs9wyb/FOlm6Q4zxLADrQDQex zd9fyZYW/Ma5rB1lZ+sSIRgJ0cEy1fSjx1t/u27XPjnkd2iGzNr0ogWp7ke/wTwMUjb+ JnLwbVEjmeSBz5+u4t68vTL4NKde3nb4Auw9eA31m8vNgrtQHSeaGk4xIQxXu+1ly1Io 8LuujIaLE9NFeLsuTIbF6lMKXOu9nx6RHcbxM8IPXL3jjN3nrommRgIFg/sRIZq1av4J 5fSKmSkPCuO0h9PhB4K3OW8/46fJZa2wIBWBpd8yWfQ1hVbLXcJEcrJSI+lbecPjhkxp 6sEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SoUdryC4mGFE3xRSPN6slSRaugUT/51ipIex6P+TvnQ=; b=BjpabRCHqsMQ4fjpl2y8c6k+2YHB9do4X+x5KRGjCyU0V9tMP/yEkkWJQ2ctRcW5hM OIrm6H0GHR+1mz1ri3mWf0kjgGTVQc6BQbuX0nbtxg1NNdklQfivEkZIXd7w1Hr4dXeH aUOB6PZkvUl4phOfgejAvE7b+HUKuwcsNLiuQdUL/l4scJ/VN2JndQK0mZZG4SC+elrq 4kWDGkLLyFR+PSx8XUhqopj58EgPhAPaA3MX6Hg+xlL4Y/aOsSR8qz5sOjMSlsD+dwEt nsIJ13c5tYpMui4mi9AQryFKC0XWp4i12Vz4KP9ZPMvpXOVoVbEuHec13eBR+RqjsWzz 70zw== 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 i2si2965226pfb.206.2019.08.15.16.52.00; Thu, 15 Aug 2019 16:52:14 -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 S1732335AbfHOWmL (ORCPT + 99 others); Thu, 15 Aug 2019 18:42:11 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:57358 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731244AbfHOWmL (ORCPT ); Thu, 15 Aug 2019 18:42:11 -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 1hyORd-0008M7-0C; Fri, 16 Aug 2019 08:42:09 +1000 Received: from herbert by gondolin.hengli.com.au with local (Exim 4.80) (envelope-from ) id 1hyORb-0000ny-7G; Fri, 16 Aug 2019 08:42:07 +1000 Date: Fri, 16 Aug 2019 08:42:07 +1000 From: Herbert Xu To: Zhou Wang Cc: linux-crypto@vger.kernel.org Subject: Re: crypto: hisilicon - Fix warning on printing %p with dma_addr_t Message-ID: <20190815224207.GA3047@gondor.apana.org.au> References: <20190815120313.GA29253@gondor.apana.org.au> <5D556981.2080309@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5D556981.2080309@hisilicon.com> 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 On Thu, Aug 15, 2019 at 10:17:37PM +0800, Zhou Wang wrote: > > > - 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? dma_addr_t is not a pointer. It's an integer type and therefore you need to print it out as such. Actually my patch is buggy too, on some architectures it can be a long long so we need to cast is such. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt