All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 01/13] usb: xhci-pci: Fix compiler warning
Date: Sun,  3 Jun 2018 19:04:14 -0700	[thread overview]
Message-ID: <1528077866-2850-2-git-send-email-bmeng.cn@gmail.com> (raw)
In-Reply-To: <1528077866-2850-1-git-send-email-bmeng.cn@gmail.com>

This fixes the following compiler warning:

  "warning: cast from pointer to integer of different size
  [-Wpointer-to-int-cast]"

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 drivers/usb/host/xhci-pci.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index e8fd6bf..b995aef 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -23,9 +23,8 @@ static void xhci_pci_init(struct udevice *dev, struct xhci_hccr **ret_hccr,
 	hcor = (struct xhci_hcor *)((uintptr_t) hccr +
 			HC_LENGTH(xhci_readl(&hccr->cr_capbase)));
 
-	debug("XHCI-PCI init hccr 0x%x and hcor 0x%x hc_length %d\n",
-	      (u32)hccr, (u32)hcor,
-	      (u32)HC_LENGTH(xhci_readl(&hccr->cr_capbase)));
+	debug("XHCI-PCI init hccr %p and hcor %p hc_length %d\n",
+	      hccr, hcor, (u32)HC_LENGTH(xhci_readl(&hccr->cr_capbase)));
 
 	*ret_hccr = hccr;
 	*ret_hcor = hcor;
-- 
2.7.4

  reply	other threads:[~2018-06-04  2:04 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-04  2:04 [U-Boot] [PATCH 00/13] x86: ivybridge: cougarcanyon2: Various enhancements Bin Meng
2018-06-04  2:04 ` Bin Meng [this message]
2018-06-07 20:29   ` [U-Boot] [PATCH 01/13] usb: xhci-pci: Fix compiler warning Simon Glass
2018-06-12  1:53     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 02/13] x86: ivybridge: Imply USB_XHCI_HCD Bin Meng
2018-06-07 20:30   ` Simon Glass
2018-06-12  1:53     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 03/13] x86: cougarcanyon2: Update dts for SPI lock down Bin Meng
2018-06-07 20:31   ` Simon Glass
2018-06-12  1:53     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 04/13] x86: cougarcanyon2: Remove CONFIG_HAVE_INTEL_ME Bin Meng
2018-06-07 20:31   ` Simon Glass
2018-06-12  1:53     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 05/13] x86: ivybridge: Enable 206ax cpu driver for FSP build Bin Meng
2018-06-07 20:31   ` Simon Glass
2018-06-12  1:53     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 06/13] x86: ivybridge: Drop CONFIG_USBDEBUG Bin Meng
2018-06-07 20:32   ` Simon Glass
2018-06-12  1:53     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 07/13] x86: chromebook_link: Remove dm-pre-reloc property in the cpu nodes Bin Meng
2018-06-07 20:33   ` Simon Glass
2018-06-12  1:54     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 08/13] x86: cougarcanyon2: Enable CPU driver and SMP support Bin Meng
2018-06-07 20:32   ` Simon Glass
2018-06-12  1:54     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 09/13] x86: irq: Remove chipset specific irq router drivers Bin Meng
2018-06-07 20:33   ` Simon Glass
2018-06-12  1:54     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 10/13] x86: irq: Change LINK_V2N and LINK_N2V to inline functions Bin Meng
2018-06-07 20:33   ` Simon Glass
2018-06-12  1:54     ` Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 11/13] x86: irq: Introduce CONFIG_DISCRETE_PIRQ_ROUT Bin Meng
2018-06-07 20:34   ` Simon Glass
2018-06-04  2:04 ` [U-Boot] [PATCH 12/13] x86: ivybridge: Implement IvyBridge-specific IRQ converting logic Bin Meng
2018-06-04  2:04 ` [U-Boot] [PATCH 13/13] x86: cougarcanyon2: Add missing chipset interrupt information Bin Meng
2018-06-07 20:34   ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1528077866-2850-2-git-send-email-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.