public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michal Simek <monstr@monstr.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] usb: udc: Fix warnings on 64-bit builds
Date: Mon, 7 Dec 2015 13:01:48 +0100	[thread overview]
Message-ID: <5665752C.5030105@monstr.eu> (raw)
In-Reply-To: <20151103111400.041b6a86@amdc2363>

Hi Marek and Lukasz,

On 3.11.2015 11:14, Lukasz Majewski wrote:
> Hi Michal,
> 
>> Cast u32 bit value to 64bit before recasting to 64bit pointer to avoid
>> pointer from integer cast size mismatch warnings.
>>
>> Warning log:
>> +../drivers/usb/gadget/udc/udc-core.c: In function
>> ?usb_gadget_unmap_request?:
>> +../drivers/usb/gadget/udc/udc-core.c:68:19: warning: cast to pointer
>> from integer of different size [-Wint-to-pointer-cast]
>>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>> ---
>>
>>  drivers/usb/gadget/udc/udc-core.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/usb/gadget/udc/udc-core.c
>> b/drivers/usb/gadget/udc/udc-core.c index 875e998a82e3..326757b547fa
>> 100644 --- a/drivers/usb/gadget/udc/udc-core.c
>> +++ b/drivers/usb/gadget/udc/udc-core.c
>> @@ -65,7 +65,7 @@ void usb_gadget_unmap_request(struct usb_gadget
>> *gadget, if (req->length == 0)
>>  		return;
>>  
>> -	dma_unmap_single((void *)req->dma, req->length,
>> +	dma_unmap_single((void *)(uintptr_t)req->dma, req->length,
>>  			 is_in ? DMA_TO_DEVICE : DMA_FROM_DEVICE);
>>  }
>>  EXPORT_SYMBOL_GPL(usb_gadget_unmap_request);
> 
> Acked-by: Lukasz Majewski <l.majewski@samsung.com>
> 

Is this patch in any of your queue?

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151207/e0e1431b/attachment.sig>

  reply	other threads:[~2015-12-07 12:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-30 15:21 [U-Boot] [PATCH] usb: udc: Fix warnings on 64-bit builds Michal Simek
2015-11-03 10:14 ` Lukasz Majewski
2015-12-07 12:01   ` Michal Simek [this message]
2015-12-08  6:59     ` Lukasz Majewski
2015-12-08  7:18       ` Michal Simek
2015-12-09  9:33     ` Lukasz Majewski
2015-12-09  9:40       ` Michal Simek

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=5665752C.5030105@monstr.eu \
    --to=monstr@monstr.eu \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox