Skip to contentSkip to conversation

usb: musb: dsps: fix build on i386 when COMPILE_TEST is set

PATCH In review Tony Lindgren 3 participants 3 messages Mar 25, 2015 – Apr 3, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: musb: dsps: fix build on i386 when COMPILE_TEST is set

Commit 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps") fixed a USB error on dm816x, but introduced a new build error on i386 when COMPILE_TEST is set:

drivers/usb/musb/musb_dsps.c: In function ‘dsps_read_fifo32’:
drivers/usb/musb/musb_dsps.c:624:3: error: implicit declaration of function ‘readsl’ [-Werror=implicit-function-declaration]
readsl(fifo, dst, len >> 2);

Let's fix this by using ioread32_rep() instead of readsl() as that's more portable.

Fixes 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
Cc Bin Liu <[email protected]>
Cc Brian Hutchinson <[email protected]>
Cc George Cherian <[email protected]>
Cc Sergei Shtylyov <[email protected]>
---
 drivers/usb/musb/musb_dsps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/musb/musb_dsps.c +1 -1
index 2c0750e..8e089c1 100644
@@ -661,7 +661,7 @@ static void dsps_read_fifo32(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
 	void __iomem *fifo = hw_ep->fifo;
 
 	if (len >= 4) {
-		readsl(fifo, dst, len >> 2);
+		ioread32_rep(fifo, dst, len >> 2);
 		dst += len & ~0x03;
 		len &= 0x03;
 	}
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

Hi Greg,

Quoted 12 lines · Tony Lindgren

Commit 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps") fixed a USB error on dm816x, but introduced a new build error on i386 when COMPILE_TEST is set:

drivers/usb/musb/musb_dsps.c: In function ‘dsps_read_fifo32’:
drivers/usb/musb/musb_dsps.c:624:3: error: implicit declaration of function ‘readsl’ [-Werror=implicit-function-declaration]
readsl(fifo, dst, len >> 2);

Let's fix this by using ioread32_rep() instead of readsl() as that's more portable.

Quoted 6 lines
Fixes 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
Cc Bin Liu <[email protected]>
Cc Brian Hutchinson <[email protected]>
Cc Sergei Shtylyov <[email protected]>

Can you apply this one directly ? It fixes a build error on i386.

Quoted 20 lines
---
 drivers/usb/musb/musb_dsps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/musb/musb_dsps.c +1 -1
index 2c0750e..8e089c1 100644
@@ -661,7 +661,7 @@ static void dsps_read_fifo32(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
 	void __iomem *fifo = hw_ep->fifo;
 
 	if (len >= 4) {
-		readsl(fifo, dst, len >> 2);
+		ioread32_rep(fifo, dst, len >> 2);
 		dst += len & ~0x03;
 		len &= 0x03;
 	}
Signature · 1 line
2.1.4
Signature · 1 line
balbi
maintainer
#2 lore raw
Quoted 22 lines · Felipe Balbi

Hi Greg,

Quoted 12 lines · Tony Lindgren

Commit 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps") fixed a USB error on dm816x, but introduced a new build error on i386 when COMPILE_TEST is set:

drivers/usb/musb/musb_dsps.c: In function ‘dsps_read_fifo32’:
drivers/usb/musb/musb_dsps.c:624:3: error: implicit declaration of function ‘readsl’ [-Werror=implicit-function-declaration]
readsl(fifo, dst, len >> 2);

Let's fix this by using ioread32_rep() instead of readsl() as that's more portable.

Quoted 6 lines
Fixes 3e457371f436 ("usb: musb: Fix fifo reads for dm816x with musb_dsps")
Cc Bin Liu <[email protected]>
Cc Brian Hutchinson <[email protected]>
Cc Sergei Shtylyov <[email protected]>
Quoted 3 lines

Can you apply this one directly ? It fixes a build error on i386.

Now queued up, thanks.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html