[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-usb
Subject: [PATCH 23/33] USB: xhci: fix some compiler warnings in xhci.h
From: Sarah Sharp <sarah.a.sharp () linux ! intel ! com>
Date: 2009-04-30 2:12:44
Message-ID: 20090430021244.GA31315 () gamba ! jf ! intel ! com
[Download RAW message or body]
This fixes the warning:
drivers/usb/host/xhci.h:1083: warning: passing argument 1 of ‘xhci_to_hcd' discards \
qualifiers from pointer target type drivers/usb/host/xhci.h:1083: warning: passing \
argument 1 of ‘xhci_to_hcd' discards qualifiers from pointer target type
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
Rework of Greg's cleanup patch to make the compiler warning go away for
me. Greg says his original patch removed the warnings, but they still
showed up for me.
drivers/usb/host/xhci.h | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index e57a609..13c9166 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1068,12 +1068,13 @@ static inline unsigned int xhci_readl(const struct xhci_hcd \
*xhci, {
return readl(regs);
}
-static inline void xhci_writel(const struct xhci_hcd *xhci,
+static inline void xhci_writel(struct xhci_hcd *xhci,
const unsigned int val, __u32 __iomem *regs)
{
if (!in_interrupt())
- xhci_dbg(xhci, "`MEM_WRITE_DWORD(3'b000, 32'h%0x, 32'h%0x, 4'hf);\n",
- (unsigned int) regs, val);
+ xhci_dbg(xhci,
+ "`MEM_WRITE_DWORD(3'b000, 32'h%p, 32'h%0x, 4'hf);\n",
+ regs, val);
writel(val, regs);
}
--
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic