public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: usbip: Fix build on Debian ppc
@ 2013-09-19  8:39 Dominik Paulus
  2013-09-19  8:55 ` Tobias Polzer
  0 siblings, 1 reply; 6+ messages in thread
From: Dominik Paulus @ 2013-09-19  8:39 UTC (permalink / raw)
  To: usbip-devel
  Cc: linux-kernel, Tobias Polzer, Dominik Paulus, Greg Kroah-Hartman,
	Stefan Reif, Anthony Foiani, linux-usb, devel, linux-kernel

From: Tobias Polzer <tobias.polzer@fau.de>

One missing include was added.

Signed-off-by: Dominik Paulus <dominik.paulus@fau.de>
Signed-off-by: Tobias Polzer <tobias.polzer@fau.de>
---
 drivers/staging/usbip/userspace/src/usbip_network.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/staging/usbip/userspace/src/usbip_network.c b/drivers/staging/usbip/userspace/src/usbip_network.c
index f5955c2..799a68f 100644
--- a/drivers/staging/usbip/userspace/src/usbip_network.c
+++ b/drivers/staging/usbip/userspace/src/usbip_network.c
@@ -31,6 +31,10 @@
 #include <gnutls/gnutls.h>
 #endif
 
+#ifdef HAVE_LIBWRAP
+#include <tcpd.h>
+#endif
+
 #include "usbip_common.h"
 #include "usbip_network.h"
 
-- 
1.8.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* Re: [PATCH] staging: usbip: Fix build on Debian ppc
@ 2013-09-19 11:28 navin patidar
  0 siblings, 0 replies; 6+ messages in thread
From: navin patidar @ 2013-09-19 11:28 UTC (permalink / raw)
  To: Dominik Paulus
  Cc: Tobias Polzer, Anthony Foiani, devel, linux-kernel,
	Greg Kroah-Hartman, usbip-devel, Tobias Polzer, linux-kernel,
	Dominik Paulus, Stefan Reif, linux-usb

On September 19, 2013 at 3:40 PM Dominik Paulus <dominik@d-paulus.de> wrote:
> On Thu, Sep 19, 2013 at 12:12:44PM +0300, Dan Carpenter wrote:
> > On Thu, Sep 19, 2013 at 10:55:18AM +0200, Tobias Polzer wrote:
> > > When testing usbip under powerpc, it (unexpectedly) worked, but only after
> > > removing the following lines from vhch_hcd.c:
> > >
> > > 1004 /* will be removed */
> > > 1005 if (pdev->dev.dma_mask) {
> > > 1006 dev_info(&pdev->dev, "vhci_hcd DMA not supported\n");
> > > 1007 return -EINVAL;
> > > 1008 }
> > >
> > > We encountered no problems without those lines. Is it safe to remove this
> > > check?
> >
> > Hehe. No.
> >
> > Also which vhch_hcd.c are you talking about? "find -name vhch_hcd.c"
> > doesn't show anything.
>
> Sorry for the typo, we meant vhci_hcd.c in
> drivers/staging/usbip/vhci_hcd.c.
>
> > What the error message?
>
> When modprobing vhci_hcd.ko, vhci_hcd_probe() fails and returns -EINVAL,
> resulting in this error message:
>
> [ 592.623292] vhci_hcd vhci_hcd: vhci_hcd DMA not supported
> [ 592.624031] vhci_hcd: probe of vhci_hcd failed with error -22
>
> This leads to the virtual host controller device (vhci) not being
> created, so usbip cannot work.
> It works after removing the codeblock mentioned above.
>
> We did some research and discovered that dma_mask is only set on PowerPC
> at the moment (in arch/powerpc/kernel/setup-common.c,
> arch_setup_pdev_archdata()).
>
> All of our testing was done in QEMU emulating Debian on POWER7.
>

I have already submitted a patch to remove mentioned code block.
patch link : https://lkml.org/lkml/2013/9/10/26


regards,
--navin-patidar

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-19 11:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19  8:39 [PATCH] staging: usbip: Fix build on Debian ppc Dominik Paulus
2013-09-19  8:55 ` Tobias Polzer
2013-09-19  9:12   ` Dan Carpenter
2013-09-19 10:10     ` Dominik Paulus
2013-09-19 11:40       ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2013-09-19 11:28 navin patidar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox