linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Vegard Nossum <vegard.nossum@oracle.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: user-mode-linux-devel@lists.sourceforge.net,
	Richard Weinberger <richard@nod.at>,
	James McMechan <James_McMechan@hotmail.com>,
	linux-usb@vger.kernel.org, Alan Stern <stern@rowland.harvard.edu>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: Re: [uml-devel] [PATCH 02/21] usb: add HAS_IOMEM dependency to USB_NET2272
Date: Wed, 10 Feb 2016 17:28:10 +0100	[thread overview]
Message-ID: <56BB651A.7030107@oracle.com> (raw)
In-Reply-To: <20160210161536.GA11999@kroah.com>

On 02/10/2016 05:15 PM, Greg Kroah-Hartman wrote:
> On Wed, Feb 10, 2016 at 03:29:37PM +0100, Vegard Nossum wrote:
>> drivers/usb/gadget/udc/net2272.c: In function ‘net2272_remove’:
>> drivers/usb/gadget/udc/net2272.c:2232:2: error: implicit declaration of function ‘iounmap’ [-Werror=implicit-function-declaration]
>>    iounmap(dev->base_addr);
>>    ^
>> drivers/usb/gadget/udc/net2272.c: In function ‘net2272_plat_probe’:
>> drivers/usb/gadget/udc/net2272.c:2650:2: error: implicit declaration of function ‘ioremap_nocache’ [-Werror=implicit-function-declaration]
>>    dev->base_addr = ioremap_nocache(base, len);
>>    ^
>> drivers/usb/gadget/udc/net2272.c:2650:17: warning: assignment makes pointer from integer without a cast [enabled by default]
>>    dev->base_addr = ioremap_nocache(base, len);
>>                   ^
>>
>> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
>> ---
>>   drivers/usb/gadget/udc/Kconfig | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig
>> index 753c29b..ca19f6f 100644
>> --- a/drivers/usb/gadget/udc/Kconfig
>> +++ b/drivers/usb/gadget/udc/Kconfig
>> @@ -287,6 +287,7 @@ config USB_FSL_QE
>>   	   dynamically linked module called "fsl_qe_udc".
>>
>>   config USB_NET2272
>> +	depends on HAS_IOMEM
>
> Why not fix the root of the problem and provide the correct functions
> for this when HAS_IOMEM is not enabled?

I don't think there is a "correct function" for when HAS_IOMEM is not
enabled. There is no IO address space on UML, so it doesn't make sense
to compile these drivers in the first place.

Or do you mean to use the dummy implementation from asm-generic/io.h? (I
have to admit I don't know how that would work.)


Vegard

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2016-02-10 16:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-10 14:29 [uml-devel] [PATCH 01/21] usb: add HAS_IOMEM dependency to USB_ISP116X_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 02/21] usb: add HAS_IOMEM dependency to USB_NET2272 Vegard Nossum
2016-02-10 16:15   ` Greg Kroah-Hartman
2016-02-10 16:28     ` Vegard Nossum [this message]
2016-02-10 16:32       ` Richard Weinberger
2016-02-10 14:29 ` [uml-devel] [PATCH 03/21] usb: Add HAS_IOMEM dependency to USB_M66592 Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 04/21] usb: add HAS_IOMEM dependency to USB_XHCI_MVEBU Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 05/21] usb: add HAS_IOMEM dependency to USB_R8A66597_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 06/21] usb: add HAS_IOMEM dependency to USB_MUSB_TUSB6010 Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 07/21] usb: add HAS_IOMEM dependency to USB_C67X00_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 08/21] usb: add HAS_IOMEM dependency to USB_SL811_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 09/21] usb: add HAS_IOMEM dependency to USB_DWC2 Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 10/21] usb: add HAS_IOMEM dependency to USB_EHCI_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 11/21] usb: add HAS_IOMEM dependency to USB_XHCI_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 12/21] usb: add HAS_IOMEM dependency to USB_FOTG210_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 13/21] usb: add HAS_IOMEM dependency to USB_MUSB_HDRC Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 14/21] usb: add HAS_IOMEM dependency to USB_PXA25X Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 15/21] usb: add HAS_IOMEM dependency to USB_APPLEDISPLAY Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 16/21] usb: add HAS_IOMEM dependency to USB_OHCI_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 17/21] usb: add HAS_IOMEM dependency to USB_PXA27X Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 18/21] usb: add HAS_IOMEM dependency to USB_OXU210HP_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 19/21] usb: add HAS_IOMEM dependency to USB_ISP1362_HCD Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 20/21] usb: support building without CONFIG_HAS_DMA Vegard Nossum
2016-02-15  1:09   ` Greg Kroah-Hartman
2016-02-15  4:48     ` Vegard Nossum
2016-02-10 14:29 ` [uml-devel] [PATCH 21/21] usb: remove HAS_IOMEM dependency from USB_SUPPORT Vegard Nossum
2016-02-10 14:35   ` Richard Weinberger
2016-02-10 14:39     ` Anton Ivanov
2016-02-10 14:45     ` Vegard Nossum

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=56BB651A.7030107@oracle.com \
    --to=vegard.nossum@oracle.com \
    --cc=James_McMechan@hotmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=richard@nod.at \
    --cc=schwidefsky@de.ibm.com \
    --cc=stern@rowland.harvard.edu \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).